unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: compile.el: kill always anyway
Date: Fri, 30 Jan 2004 15:55:04 -0700	[thread overview]
Message-ID: <401AE0C8.8060705@yahoo.com> (raw)
In-Reply-To: mailman.1532.1075333723.928.bug-gnu-emacs@gnu.org

Dan Jacobson wrote:

>>>I see there is no option to turn this question off:
>>>(yes-or-no-p
>>>(format "A %s process is running; kill it? "
> 
> K> Good.
> 
> Bad, because one might be rapid prototyping (compile "sleep 55555"),
> and would like emacs to kill each former compile without asking, as
> whih PID to kill only emacs knows best.

Sigh.

*** emacs-21.3/lisp/progmodes/compile.el.orig	Fri Jan 17 06:45:11 2003
--- emacs-21.3/lisp/progmodes/compile.el	Fri Jan 30 15:51:16 2004
***************
*** 706,711 ****
--- 706,719 ----
     :version "20.3"
     :group 'compilation)

+ (defcustom compile-kill-running-process nil
+   "*If non-nil, \\[compile] kills a running compilation process without asking.
+
+ This also affects \\[recompile], \\[grep], \\[revert-buffer] in a
+ compilation buffer, and any other commands that call `compile-internal'."
+   :type 'boolean
+   :group 'compilation)
+
   (defun compile-internal (command error-message
   		 
	 &optional name-of-mode parser
   		 
	 error-regexp-alist name-function
***************
*** 744,749 ****
--- 752,758 ----
         (let ((comp-proc (get-buffer-process (current-buffer))))
   	(if comp-proc
   	    (if (or (not (eq (process-status comp-proc) 'run))
+                     compile-kill-running-process
   		    (yes-or-no-p
   		     (format "A %s process is running; kill it? "
   			     name-of-mode)))

-- 
Kevin Rodgers

  parent reply	other threads:[~2004-01-30 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1316.1075047167.928.bug-gnu-emacs@gnu.org>
2004-01-26 19:29 ` compile.el: kill always anyway Kevin Rodgers
2004-01-28 21:30   ` Dan Jacobson
     [not found]   ` <mailman.1532.1075333723.928.bug-gnu-emacs@gnu.org>
2004-01-30 22:55     ` Kevin Rodgers [this message]
2004-01-25  4:35 Dan Jacobson

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=401AE0C8.8060705@yahoo.com \
    --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).