From: Juri Linkov <juri@jurta.org>
Subject: Re: grep-use-null-device
Date: Tue, 30 Aug 2005 01:43:48 +0300 [thread overview]
Message-ID: <87ll2kiczv.fsf@jurta.org> (raw)
In-Reply-To: <uzmrcx0fi.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 Aug 2005 15:22:41 +0300")
>> 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?
>
> Done.
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(#<process grep>)
compilation-start("grep -inH -e search file" grep-mode nil nil)
grep("grep -inH -e search file")
call-interactively(grep)
execute-extended-command(nil)
call-interactively(execute-extended-command)
`compilation-start' needs to check if the process is running
before calling `process-send-eof':
Index: lisp/progmodes/compile.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/compile.el,v
retrieving revision 1.378
diff -c -r1.378 compile.el
*** lisp/progmodes/compile.el 27 Aug 2005 14:38:21 -0000 1.378
--- lisp/progmodes/compile.el 29 Aug 2005 22:18:30 -0000
***************
*** 1032,1038 ****
outbuf command))))
;; Make the buffer's mode line show process state.
(setq mode-line-process '(":%s"))
! (when compilation-disable-input
(process-send-eof proc))
(set-process-sentinel proc 'compilation-sentinel)
(set-process-filter proc 'compilation-filter)
--- 1032,1039 ----
outbuf command))))
;; Make the buffer's mode line show process state.
(setq mode-line-process '(":%s"))
! (when (and compilation-disable-input
! (eq (process-status proc) 'run))
(process-send-eof proc))
(set-process-sentinel proc 'compilation-sentinel)
(set-process-filter proc 'compilation-filter)
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2005-08-29 22:43 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 15:41 grep-use-null-device Emilio Lopes
2005-08-16 2:25 ` grep-use-null-device Richard M. Stallman
2005-08-16 11:46 ` grep-use-null-device Karl Chen
2005-08-16 16:20 ` grep-use-null-device Emilio Lopes
2005-08-17 6:25 ` grep-use-null-device Richard M. Stallman
2005-08-20 12:22 ` grep-use-null-device Eli Zaretskii
2005-08-27 1:30 ` "^D^H^H" in process output on Darwin (Was Re: grep-use-null-device) YAMAMOTO Mitsuharu
2005-08-29 13:56 ` "^D^H^H" in process output on Darwin Stefan Monnier
2005-09-13 8:21 ` Nozomu Ando
2005-09-17 1:33 ` YAMAMOTO Mitsuharu
2005-08-29 22:43 ` Juri Linkov [this message]
2005-08-30 10:30 ` grep-use-null-device Richard M. Stallman
2005-08-31 2:31 ` grep-use-null-device Stefan Monnier
2005-08-31 6:02 ` grep-use-null-device Juri Linkov
2005-09-01 14:59 ` grep-use-null-device Stefan Monnier
2005-09-01 16:16 ` grep-use-null-device David Kastrup
2005-09-01 18:18 ` grep-use-null-device Stefan Monnier
2005-09-03 1:43 ` grep-use-null-device Richard M. Stallman
2005-08-16 7:15 ` grep-use-null-device Emilio Lopes
2005-08-16 9:26 ` grep-use-null-device David Kastrup
2005-08-16 16:29 ` grep-use-null-device Emilio Lopes
2005-08-16 9:45 ` grep-use-null-device Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ll2kiczv.fsf@jurta.org \
--to=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.