unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* compile.el: kill always anyway
@ 2004-01-25  4:35 Dan Jacobson
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Jacobson @ 2004-01-25  4:35 UTC (permalink / raw)


I see there is no option to turn this question off:
	    (yes-or-no-p
	     (format "A %s process is running; kill it? "

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compile.el: kill always anyway
       [not found] <mailman.1316.1075047167.928.bug-gnu-emacs@gnu.org>
@ 2004-01-26 19:29 ` Kevin Rodgers
  2004-01-28 21:30   ` Dan Jacobson
       [not found]   ` <mailman.1532.1075333723.928.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Rodgers @ 2004-01-26 19:29 UTC (permalink / raw)


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? "

Good.


-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compile.el: kill always anyway
  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>
  1 sibling, 0 replies; 4+ messages in thread
From: Dan Jacobson @ 2004-01-28 21:30 UTC (permalink / raw)


>> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compile.el: kill always anyway
       [not found]   ` <mailman.1532.1075333723.928.bug-gnu-emacs@gnu.org>
@ 2004-01-30 22:55     ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2004-01-30 22:55 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-30 22:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2004-01-25  4:35 Dan Jacobson

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).