From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: grep /dev/null
Date: Wed, 09 Feb 2005 10:06:14 -0700 [thread overview]
Message-ID: <cudfra$spi$1@sea.gmane.org> (raw)
In-Reply-To: <E1Cymw1-0005TE-6E@fencepost.gnu.org>
Richard Stallman wrote:
> With respect to compile, I posted a patch back in October 1996 that
> defines a new variable (compile-disable-input) and sends an EOF
to the
> compilation process if it is non-nil (which it is, by default).
I also
> posted a compilation-mode-hook function (compile-enable-input) that
> allows the user to run compilations that require input by emulating
> comint-mode in the *compilation* buffer.
>
> Could you adapt these to the current version of compile.el?
Sure, here's the first part:
2005-02-09 Kevin Rodgers <ihs_4664@yahoo.com>
* progmodes/compile.el (compilation-disable-input): New option.
(compilation-start): If it's non-nil, send an EOF to the process.
*** compile.el~ Wed Feb 9 09:41:47 2005
--- compile.el Wed Feb 9 09:56:59 2005
***************
*** 860,865 ****
--- 860,873 ----
(compilation-start command nil name-function highlight-regexp)))
(make-obsolete 'compile-internal 'compilation-start)
+ (defcustom compilation-disable-input t
+ "*If non-nil, send end-of-file as compilation process input.
+ This only affects platforms that support asynchronous processes (see
+ start-process); synchronous compilation processes never accept input."
+ :type 'boolean
+ :group 'compilation
+ :version "22.1")
+
(defun compilation-start (command &optional mode name-function
highlight-regexp)
"Run compilation command COMMAND (low level interface).
If COMMAND starts with a cd command, that becomes the
`default-directory'.
***************
*** 974,979 ****
--- 982,989 ----
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)
(set-marker (process-mark proc) (point) outbuf)
--
Kevin Rodgers
next prev parent reply other threads:[~2005-02-09 17:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 5:20 grep /dev/null Karl Chen
2005-02-07 19:36 ` Kevin Rodgers
2005-02-07 21:38 ` Andreas Schwab
2005-02-09 8:10 ` Richard Stallman
2005-02-09 17:06 ` Kevin Rodgers [this message]
2005-02-10 18:41 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='cudfra$spi$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).