[darcs-users] darcs patch: Re-enable haskeline by default (and 1 more)
Trent W. Buck
trentbuck at gmail.com
Fri Sep 19 00:43:00 UTC 2008
Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> writes:
> [...] I only cared about the behavior ctrl-C and not about ctrl-D once
> the code was in darcs :-/
I care about correct handling of ^D, particularly because of the
following use case:
In Emacs' directory editor (dired), I put the cursor over a modified
file, type ! (to run a command on the selected file), and then type
darcs rec -m Typo.
instead of
darcs rec -am Typo.
Generally this happens when I'm bouncing between VCSs, because some
other VCSs just imply -a.
Importantly, the dired-do-shell-command function of Emacs connects the
shell's input to /dev/null, and all of Emacs blocks until the command
terminates. If ^D isn't handled correctly and just loops forever, the
result is 100% CPU usage and a hung Emacs until I realize something is
wrong and terminate the process.
I don't remember if darcs currently has this problem; I noticed it
recently with either unzip or unrar-nonfree. With darcs 2.0.2 on
Debian, both of these commands hang forever with 0% CPU, where foo is a
file with unrecorded changes:
darcs rec </dev/null foo
darcs rec <. foo
More information about the darcs-users
mailing list