From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: compilation-ask-about-kill Date: Tue, 5 Jan 2010 16:46:07 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1262708370 15981 80.91.229.12 (5 Jan 2010 16:19:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2010 16:19:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 05 17:19:23 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NSC7u-0005CM-I1 for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2010 17:19:22 +0100 Original-Received: from localhost ([127.0.0.1]:49566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSC7s-0008NX-AI for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2010 11:19:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSC5d-00067W-9g for emacs-devel@gnu.org; Tue, 05 Jan 2010 11:17:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSC5Y-00061z-R1 for emacs-devel@gnu.org; Tue, 05 Jan 2010 11:17:00 -0500 Original-Received: from [199.232.76.173] (port=57524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSC5Y-00061k-Hv for emacs-devel@gnu.org; Tue, 05 Jan 2010 11:16:56 -0500 Original-Received: from www.eitan.edu ([199.203.54.24]:38368 helo=eitan.edu) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NSAft-0005gc-Ah for emacs-devel@gnu.org; Tue, 05 Jan 2010 09:46:21 -0500 Original-Received: (qmail 28030 invoked from network); 5 Jan 2010 14:46:07 -0000 Original-Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 5 Jan 2010 14:46:07 -0000 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119446 Archived-At: 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