Re: grep-use-null-device

2005-09-02 Thread Richard M. Stallman
I think it is the wrong fix to just ignore an error which should not occur in the first place. Rather process-send-eof should be fixed not to throw an error as long as the process is not considered dead from Emacs' point of view. That there is nobody to actually look at the eo

Re: grep-use-null-device

2005-09-01 Thread Stefan Monnier
>> + (when compilation-disable-input >> +(condition-case nil >> +(process-send-eof proc) >> + ;; The process may have exited already. >> + (error nil))) >> (setq compilation-in-progress >> (cons proc compilation-in-progr

Re: grep-use-null-device

2005-09-01 Thread David Kastrup
Stefan Monnier <[EMAIL PROTECTED]> writes: `compilation-start' needs to check if the process is running before calling `process-send-eof': >>> >>> That's odd. AFAICT no blobking operation takes place between the >>> start-process and the process-send-eof, so the process-status should s

Re: grep-use-null-device

2005-09-01 Thread Stefan Monnier
>>> `compilation-start' needs to check if the process is running >>> before calling `process-send-eof': >> >> That's odd. AFAICT no blobking operation takes place between the >> start-process and the process-send-eof, so the process-status should still >> be `run' no matter how quickly the proces

Re: grep-use-null-device

2005-08-30 Thread Juri Linkov
>> `compilation-start' needs to check if the process is running >> before calling `process-send-eof': > > That's odd. AFAICT no blobking operation takes place between the > start-process and the process-send-eof, so the process-status should still > be `run' no matter how quickly the process exits

Re: grep-use-null-device

2005-08-30 Thread Stefan Monnier
> With this change, when grep finishes too quickly (for example, after > searching in a nonexistent file), `process-send-eof' fails with the > following error: > Debugger entered--Lisp error: (error "Process grep not running") > process-send-eof(#) > compilation-start("grep -inH -e search file

Re: grep-use-null-device

2005-08-30 Thread Richard M. Stallman
`compilation-start' needs to check if the process is running before calling `process-send-eof': Please install your patch--and thanks. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: grep-use-null-device

2005-08-29 Thread Juri Linkov
>> Thanks for posting the URL, though it seems that the web interface at >> lists.gnu.org eats multiple spaces. Here is the Gmane URL for the >> original post from Kevin Rodgers with correct indentation: >> >>http://article.gmane.org/gmane.emacs.devel/33146 >> >> Can someone

"^D^H^H" in process output on Darwin (Was Re: grep-use-null-device)

2005-08-26 Thread YAMAMOTO Mitsuharu
> On Sat, 20 Aug 2005 15:22:41 +0300, Eli Zaretskii <[EMAIL PROTECTED]> > said: >> Thanks for posting the URL, though it seems that the web interface >> at lists.gnu.org eats multiple spaces. Here is the Gmane URL for >> the original post from Kevin Rodgers with correct indentation: >>

Re: grep-use-null-device

2005-08-20 Thread Eli Zaretskii
> From: "Richard M. Stallman" <[EMAIL PROTECTED]> > Date: Wed, 17 Aug 2005 02:25:39 -0400 > Cc: emacs-devel@gnu.org > > Thanks for posting the URL, though it seems that the web interface at > lists.gnu.org eats multiple spaces. Here is the Gmane URL for the > original post from Kevin

Re: grep-use-null-device

2005-08-16 Thread Richard M. Stallman
Thanks for posting the URL, though it seems that the web interface at lists.gnu.org eats multiple spaces. Here is the Gmane URL for the original post from Kevin Rodgers with correct indentation: http://article.gmane.org/gmane.emacs.devel/33146 Can someone please install it?

Re: grep-use-null-device

2005-08-16 Thread Emilio Lopes
Karl Chen writes: > Kevin Rodgers posted a patch that would allow `grep' to close stdin, > solving this annoyance, but it appears it was never followed up. > http://lists.gnu.org/archive/html/emacs-devel/2005-02/msg00452.html Yes, that's exactly what David Kastrup suggested in another reply. Th

Re: grep-use-null-device

2005-08-16 Thread Emilio Lopes
hat Kevin Rodgers already posted such a patch to this list. Here is the URL: http://article.gmane.org/gmane.emacs.devel/33146 I'll try his patch out. > grep-use-null-device is just for getting file names on matches, not > for dealing with bad commands. That was my confusion. It sav

Re: grep-use-null-device

2005-08-16 Thread Karl Chen
> On 2005-08-15 19:25 PDT, Richard M Stallman writes: rms> So, my grep program supports "-H" but it apparently rms> has not the expected semantics. rms> That is a very vague statement. It tells us nothing. Emilio is reiterating the same issue I raised on 2005-02-03 [1]:

Re: grep-use-null-device

2005-08-16 Thread Juri Linkov
> If the user forgets to provide a filename to "M-x grep" (as in > "grep -nH foo") it will run indefinitely waiting for input from > stdin until killed. In such cases it's useful to have `null-device' > appended, even if the grep program supports the option "-H" (which > has an other purpose anywa

Re: grep-use-null-device

2005-08-16 Thread David Kastrup
d be done is that standard input on the grep process gets closed. That requires no special options, and it will lead to a sensible result without obscure extra options. grep-use-null-device is just for getting file names on matches, not for dealing with bad commands. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: grep-use-null-device

2005-08-16 Thread Emilio Lopes
Emilio Lopes writes: > As a result, if I forget to provide a filename to "M-x grep" it will > run forever, waiting for me to kill it. Richard M Stallman writes: > So, my grep program supports "-H" but it apparently has not the > expected semantics. > That is a very vague statement. It

Re: grep-use-null-device

2005-08-15 Thread Richard M. Stallman
So, my grep program supports "-H" but it apparently has not the expected semantics. That is a very vague statement. It tells us nothing. Why don't you tell us what DOES happen, instead of just saying you think it is wrong somehow. Please read the Bugs section in the Emacs manual, which

grep-use-null-device

2005-08-15 Thread Emilio Lopes
The documentation of this variable says: grep-use-null-device's value is nil If t, append the value of `null-device' to `grep' commands. This is done to ensure that the output of grep includes the filename of any match in the case where only a single file is searched, and is not ne