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: Re: compilation-ask-about-kill Date: Tue, 12 Jan 2010 13:06:37 +0200 Message-ID: References: <87r5pwv6no.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1263294934 12399 80.91.229.12 (12 Jan 2010 11:15:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 11:15:34 +0000 (UTC) Cc: Juri Linkov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 12:15:27 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 1NUeic-0000vd-3m for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 12:15:26 +0100 Original-Received: from localhost ([127.0.0.1]:52097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUeib-0000Hh-Ow for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2010 06:15:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUeaD-0003Me-9F for emacs-devel@gnu.org; Tue, 12 Jan 2010 06:06:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUea8-0003Jc-UK for emacs-devel@gnu.org; Tue, 12 Jan 2010 06:06:44 -0500 Original-Received: from [199.232.76.173] (port=33123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUea8-0003JN-N4 for emacs-devel@gnu.org; Tue, 12 Jan 2010 06:06:40 -0500 Original-Received: from www.eitan.edu ([199.203.54.24]:44819 helo=eitan.edu) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NUea7-0004VQ-Rb for emacs-devel@gnu.org; Tue, 12 Jan 2010 06:06:40 -0500 Original-Received: (qmail 21685 invoked from network); 12 Jan 2010 11:06:37 -0000 Original-Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 12 Jan 2010 11:06:37 -0000 In-Reply-To: <87r5pwv6no.fsf@mail.jurta.org> 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:119867 Archived-At: Hi. On Mon, 11 Jan 2010, Juri Linkov wrote: > > 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. > > Instead of adding a new defcustom, it would be better to use the > existing feature created for this purpose. > > As the docstring of `compilation-start-hook' suggests using > the following code when you do not want a question about killing > the compilation: > > (add-hook 'compilation-start-hook > (lambda (process) > (set-process-query-on-exit-flag process nil))) > > I think a query in `compilation-start' should respect this user setting, I agree that compilation-start should respect this flag, but I am not sure whether this will allow non-elisp-enabled users to express a wish that they do not want compilation to ask about kill, whereas defcustom gives an easy to discover "GUI" access to this commonly-requested customization. -- Regards, ASK