[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile.el: kill always anyway

From: Kevin Rodgers
Subject: Re: compile.el: kill always anyway
Date: Fri, 30 Jan 2004 15:55:04 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Dan Jacobson wrote:

I see there is no option to turn this question off:
(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.


*** 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 
+ 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
                     (format "A %s process is running; kill it? "

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]