From: Alexander Klimov <alserkli@inbox.ru>
To: emacs-devel@gnu.org
Subject: compilation-ask-about-kill
Date: Tue, 5 Jan 2010 16:46:07 +0200 [thread overview]
Message-ID: <TheMailAgent.930c4ce113f7e4@bbce99704b02c6f1a64> (raw)
Hi.
It would be nice to allow recompilation with a single key stroke even
if the previous compilation hangs. With the following patch the user
can skip
`A ... process is running; kill it?'
if he set `compilation-ask-about-kill' to nil.
On 2006-05-04, Richard Stallman wrote:
> This is not an essential change, so we should not think about it
> now. We can think about this after the release.
Probably, enough time has passed since 2006 :-) The following patch is
adapted for the current version:
*** compile.el.~1~ 2010-01-05 16:22:55.983074000 +0200
--- compile.el 2010-01-05 16:25:53.882071000 +0200
***************
*** 580,583 ****
--- 580,590 ----
;;;###autoload
+ (defcustom compilation-ask-about-kill t
+ "Non-nil means \\[compile] asks permission to kill the running compilation.
+ Otherwise, it kills the previous compilation process without asking."
+ :type 'boolean
+ :group 'compilation)
+
+ ;;;###autoload
(defcustom compilation-search-path '(nil)
"List of directories to search for source files named in error messages.
***************
*** 1193,1199 ****
(if comp-proc
(if (or (not (eq (process-status comp-proc) 'run))
! (yes-or-no-p
! (format "A %s process is running; kill it? "
! name-of-mode)))
(condition-case ()
(progn
--- 1200,1207 ----
(if comp-proc
(if (or (not (eq (process-status comp-proc) 'run))
! (or (not compilation-ask-about-kill)
! (yes-or-no-p
! (format "A %s process is running; kill it? "
! name-of-mode))))
(condition-case ()
(progn
--
Regards,
ASK
next reply other threads:[~2010-01-05 14:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 14:46 Alexander Klimov [this message]
2010-01-05 22:28 ` compilation-ask-about-kill Kevin Ryde
2010-01-06 7:36 ` compilation-ask-about-kill Alexander Klimov
2010-01-06 20:28 ` compilation-ask-about-kill Juri Linkov
2010-01-09 0:09 ` compilation-ask-about-kill Kevin Ryde
2010-01-09 17:54 ` compilation-ask-about-kill Juri Linkov
2010-01-09 18:10 ` compilation-ask-about-kill David Kastrup
2010-01-10 23:02 ` compilation-ask-about-kill Kevin Ryde
2010-01-11 21:57 ` compilation-ask-about-kill Juri Linkov
2010-01-12 11:06 ` compilation-ask-about-kill Alexander Klimov
2010-01-13 22:01 ` compilation-ask-about-kill Kevin Ryde
-- strict thread matches above, loose matches on Subject: below --
2006-05-04 10:20 compilation-ask-about-kill Alexander Klimov
2006-05-04 14:22 ` compilation-ask-about-kill Burton Samograd
2006-05-04 19:42 ` compilation-ask-about-kill 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=TheMailAgent.930c4ce113f7e4@bbce99704b02c6f1a64 \
--to=alserkli@inbox.ru \
--cc=emacs-devel@gnu.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.