From unknown Fri Sep 05 08:44:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12288 <12288@debbugs.gnu.org> To: bug#12288 <12288@debbugs.gnu.org> Subject: Status: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Reply-To: bug#12288 <12288@debbugs.gnu.org> Date: Fri, 05 Sep 2025 15:44:32 +0000 retitle 12288 24.2.50; compilation-start: Query for killing existing compil= ation process only if query-on-exit-flag is non-nil reassign 12288 emacs submitter 12288 Christopher Schmidt severity 12288 wishlist tag 12288 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 27 10:57:51 2012 Received: (at submit) by debbugs.gnu.org; 27 Aug 2012 14:57:51 +0000 Received: from localhost ([127.0.0.1]:52537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T60lD-0001OR-6J for submit@debbugs.gnu.org; Mon, 27 Aug 2012 10:57:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41659) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T60lA-0001OK-9L for submit@debbugs.gnu.org; Mon, 27 Aug 2012 10:57:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T60kD-0003zf-Hw for submit@debbugs.gnu.org; Mon, 27 Aug 2012 10:56:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T60kD-0003zQ-Eu for submit@debbugs.gnu.org; Mon, 27 Aug 2012 10:56:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T60k3-0003vi-Dl for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 10:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T60jx-0003wA-Fy for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 10:56:39 -0400 Received: from ristopher.com ([146.185.21.93]:52737 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T60jx-0003vi-72 for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 10:56:33 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 6E91420CEC; Mon, 27 Aug 2012 15:56:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1346079391; bh=jiOiTC8CtHoHVSIX0D5N/sEo9r2y5UsT/xJKFink5Yw=; h=From:To:Subject:Message-ID:MIME-Version:Content-Type:Date; b=CYRbAAd9kL3sm5lZX/dxegfz81jbthGQ8rbPJEBky1NPZmHCZTrVTGWsMoAhuGtCP pA3lMZcpOjcKjNLJgmlH0QXhaOTwavEYiLt5grX3uXJDHVciyy0lnthxFQELwoG3VU ituiOD3V2mba92YUPTvIEQUAVm6zJ2ExkR3rJwhw= From: Christopher Schmidt To: bug-gnu-emacs@gnu.org Subject: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Message-ID: <87ehms759q@ch.ristopher.com> Mail-Followup-To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Mon, 27 Aug 2012 15:56:31 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --=-=-= Content-Type: text/plain Severity: wishlist I find it annoying that compilation-start always asks before killing the previous (running) compilation process. I think process-query-on-exit-flag should be taken into account here. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=compilation-start.diff === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-08-27 09:05:55 +0000 +++ lisp/ChangeLog 2012-08-27 14:48:56 +0000 @@ -1,3 +1,9 @@ +2012-08-27 Christopher Schmidt + + * progmodes/compile.el (compilation-start): Query for killing + existing compilation process only if query-on-exit-flag is non-nil + (Bug#). + 2012-08-27 Drew Adams * dired.el (dired-pop-to-buffer): Make window start at beginning === modified file 'lisp/progmodes/compile.el' --- lisp/progmodes/compile.el 2012-08-26 13:42:18 +0000 +++ lisp/progmodes/compile.el 2012-08-27 14:47:23 +0000 @@ -1537,6 +1537,7 @@ (let ((comp-proc (get-buffer-process (current-buffer)))) (if comp-proc (if (or (not (eq (process-status comp-proc) 'run)) + (not (process-query-on-exit-flag comp-proc)) (yes-or-no-p (format "A %s process is running; kill it? " name-of-mode))) --=-=-= Content-Type: text/plain Christopher --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 07:00:17 2012 Received: (at submit) by debbugs.gnu.org; 1 Sep 2012 11:00:18 +0000 Received: from localhost ([127.0.0.1]:60702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7lR3-0007j4-Ev for submit@debbugs.gnu.org; Sat, 01 Sep 2012 07:00:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46035) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7lR1-0007ix-Ac for submit@debbugs.gnu.org; Sat, 01 Sep 2012 07:00:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7lPh-0007ua-RM for submit@debbugs.gnu.org; Sat, 01 Sep 2012 06:58:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7lPh-0007uV-OH for submit@debbugs.gnu.org; Sat, 01 Sep 2012 06:58:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7lPh-0003Zc-0V for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 06:58:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7lPf-0007uC-Uc for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 06:58:52 -0400 Received: from ristopher.com ([146.185.21.93]:53902 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7lPf-0007u0-MM for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 06:58:51 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 9793020D26; Sat, 1 Sep 2012 11:58:49 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1346497129; bh=5PVVCfwaasI6jxwqg2ZzG7VUyZSBaJbzLykhlU87ppM=; h=From:To:Cc:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=tVtz7QSIig6rbN8cFRNsG0cLzeIiy8PvPlUifKToicXM4G7XlHhs3a9xgAuy6fkuI 4Xoq0J5cmXMc+YdpCZ9fh2w1sese9HVppq9lU2o5VooK8FVNYDxfI4kT4ZkvFAZdAx zua57iL3xO73A9OnQtpqNDioDKRDj03F3LyjT73g= From: Christopher Schmidt To: bug-gnu-emacs@gnu.org Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil In-Reply-To: <87ehms759q@ch.ristopher.com> (Christopher Schmidt's message of "Mon, 27 Aug 2012 15:56:31 +0100 (BST)") References: <87ehms759q@ch.ristopher.com> Message-ID: <874nnit3f9@ch.ristopher.com> Mail-Followup-To: bug-gnu-emacs@gnu.org, Martin Blais MIME-Version: 1.0 Content-Type: text/plain Date: Sat, 1 Sep 2012 11:58:49 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: Martin Blais X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Christopher Schmidt writes: > I find it annoying that compilation-start always asks before killing > the previous (running) compilation process. I think > process-query-on-exit-flag should be taken into account here. Revno 109813 introduces variable compilation-always-kill which, if non-nil, unconditionally removes the query for killing the compilation process. This variable does not help me as occasionally I want to be asked whether I would like to kill the compilation process. Can both compilation-always-kill and query-on-exit-flag be taken into account? Christopher From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 08:34:08 2012 Received: (at submit) by debbugs.gnu.org; 1 Sep 2012 12:34:08 +0000 Received: from localhost ([127.0.0.1]:60797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7mtr-00029w-My for submit@debbugs.gnu.org; Sat, 01 Sep 2012 08:34:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55345) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7mtp-00029o-DT for submit@debbugs.gnu.org; Sat, 01 Sep 2012 08:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7msV-0002Ou-JA for submit@debbugs.gnu.org; Sat, 01 Sep 2012 08:32:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7msV-0002Oq-G1 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 08:32:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7msU-0007YG-PH for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 08:32:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7msT-0002Og-VQ for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 08:32:42 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:43783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7msT-0002Oc-RM for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 08:32:41 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxKEe/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0BwsUGA2IQAW6CY0mgx4DozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="197241018" Received: from 69-196-161-30.dsl.teksavvy.com (HELO pastel.home) ([69.196.161.30]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Sep 2012 08:32:40 -0400 Received: by pastel.home (Postfix, from userid 20848) id 65AD359407; Sat, 1 Sep 2012 08:32:40 -0400 (EDT) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Message-ID: References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> Date: Sat, 01 Sep 2012 08:32:40 -0400 In-Reply-To: <874nnit3f9@ch.ristopher.com> (Christopher Schmidt's message of "Sat, 1 Sep 2012 11:58:49 +0100 (BST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit Cc: Martin Blais X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > This variable does not help me as occasionally I want to be asked > whether I would like to kill the compilation process. Would setting the variable buffer-locally solve that problem? Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 08:46:37 2012 Received: (at 12288-done) by debbugs.gnu.org; 1 Sep 2012 12:46:37 +0000 Received: from localhost ([127.0.0.1]:60808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7n5w-0002SR-Ij for submit@debbugs.gnu.org; Sat, 01 Sep 2012 08:46:37 -0400 Received: from ristopher.com ([146.185.21.93]:51088 helo=saturn.ch.ristopher.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7n5t-0002SJ-4e for 12288-done@debbugs.gnu.org; Sat, 01 Sep 2012 08:46:34 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id D178920D26; Sat, 1 Sep 2012 13:45:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1346503510; bh=OYBFO/cpCWpXzsd5dUeyzhqrzP9SyedTleMwH0MZKBY=; h=From:To:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=tntdrUfj1Q2YOLP1qmwvTjS4OSX4feVAa/swiBhUTGbA/TUD32e60YxwtpCQo2At9 2nbXn7ZDoYqWD/HRlh2TEXIjE/aQSjXMxny/we2gVCmTvUaSqqX32Z1g1kaYGkJ1am aKaOy0c2j7GRz0C43foLbjL4xQzakcJIIuWAKyuY= From: Christopher Schmidt To: 12288-done@debbugs.gnu.org Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil In-Reply-To: (Stefan Monnier's message of "Sat, 01 Sep 2012 08:32:40 -0400") References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> Message-ID: <877gsdap4c@ch.ristopher.com> MIME-Version: 1.0 Content-Type: text/plain Date: Sat, 1 Sep 2012 13:45:10 +0100 (BST) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 12288-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) Stefan Monnier writes: >> This variable does not help me as occasionally I want to be asked >> whether I would like to kill the compilation process. > > Would setting the variable buffer-locally solve that problem? It does. Christopher From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 11:12:32 2012 Received: (at submit) by debbugs.gnu.org; 1 Sep 2012 15:12:32 +0000 Received: from localhost ([127.0.0.1]:32985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7pNA-0005iC-H1 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:12:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50384) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7pN8-0005i5-Rm for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:12:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7pLo-0004vs-2H for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:11:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7pLn-0004vo-Ux for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:11:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7pLn-0003nP-0O for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 11:11:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7pLk-0004tE-9x for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 11:11:06 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7pLk-0004oQ-5P for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 11:11:04 -0400 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3A1D52117B; Sat, 1 Sep 2012 11:11:01 -0400 (EDT) Received: from betaweb1.nyi.mail.srv.osa ([10.202.2.10]) by compute2.internal (MEProxy); Sat, 01 Sep 2012 11:11:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=9iHQr5dDNN7C9n6UL6YLDshCjXQ=; b=sror/ cv60UYkglTITZjdsYZ1HmhvTc7hfZqnzK5UTiDXDWMZoeg9kAjb2LWpXxJgkTG4x N4E18PfoIklYBEY9yDywL5M7BqpnfTCFgSxR+a2lssmfQGhpCUJSCADPh4pHRIxk 8+m6Ak5wuFiQh9thv5Z3rBI7WCJ4WwsH7HivF8= Received: by betaweb1.nyi.mail.srv.osa (Postfix, from userid 99) id ADCB162B379; Sat, 1 Sep 2012 11:11:01 -0400 (EDT) Message-Id: <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> X-Sasl-Enc: 23AdhkoXT8A2bIZwO1MpfoqJFnGW/QwAzLjm41sXwg1f 1346512261 From: Martin Blais To: Christopher Schmidt , bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Date: Sat, 01 Sep 2012 11:11:01 -0400 In-Reply-To: <874nnit3f9@ch.ristopher.com> References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) I'm not sure I understand. Let's recap a bit: a. in 'compilation-start-hook, there's a hint that you can force the process-query-on-exit-flag on the compile process; that would presumably allow you to kill the buffer without a query, but not on a subsequent call to compile. (BTW I just tried the suggested hook as is and it doesn't work for me, but that's another issue). b. compilation-always-kill can now be set to 't to suppress the query on another invocation to compile. Note that the new variable does not change the current behaviour, the default value is to ask. This should not affect what happens when you try to kill the buffer on a running process. So I don't understand the question. Which of the events are you referring to? (a) or (b)? And if (b), given that the variable does not change the behaviour, what do you mean? On Sat, Sep 1, 2012, at 06:58, Christopher Schmidt wrote: > Christopher Schmidt writes: > > I find it annoying that compilation-start always asks before killing > > the previous (running) compilation process. I think > > process-query-on-exit-flag should be taken into account here. > > Revno 109813 introduces variable compilation-always-kill which, if > non-nil, unconditionally removes the query for killing the compilation > process. > > This variable does not help me as occasionally I want to be asked > whether I would like to kill the compilation process. > > Can both compilation-always-kill and query-on-exit-flag be taken into > account? > > Christopher From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 11:30:31 2012 Received: (at submit) by debbugs.gnu.org; 1 Sep 2012 15:30:31 +0000 Received: from localhost ([127.0.0.1]:32996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7peY-0006Aw-AQ for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:30:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51388) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7peW-0006Al-90 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:30:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7pdB-0001T5-Q4 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:29:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:57560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7pdB-0001T1-N7 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 11:29:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7pdA-0007eX-Pn for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 11:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7pd9-0001Sj-NY for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 11:29:04 -0400 Received: from ristopher.com ([146.185.21.93]:53951 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7pd9-0001SV-7D for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 11:29:03 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 887AF20D26; Sat, 1 Sep 2012 16:29:01 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1346513341; bh=XGQjYWq6ztiGvbvvs08XTBOp6A61RRHKuw42xKFAgYY=; h=From:To:Cc:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=vqG1A9mq4yfU1NqwdbvljiTX4189jPQy05Rn9/9Tg+4miq59/W5GoIxMSm1WiJSBa LGBxaVC6WR+E4NZzG3p1qm2rVKE8NzIoTEsmYgAHG+HGDznELn/0UIfP3NRn6ERCHS EISnCJA6c9e571QQTr9GGoYuDGYAFFcdpuSLeCfQ= From: Christopher Schmidt To: Martin Blais Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil In-Reply-To: <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> (Martin Blais's message of "Sat, 01 Sep 2012 11:11:01 -0400") References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> Message-ID: <87y5kt92yp@ch.ristopher.com> Mail-Followup-To: Martin Blais , bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain Date: Sat, 1 Sep 2012 16:29:01 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Martin Blais writes: > I'm not sure I understand. Let's recap a bit: > > a. in 'compilation-start-hook, there's a hint that you can force the > process-query-on-exit-flag on the compile process; that would > presumably allow you to kill the buffer without a query, but not on a ^^^^^^^^^^^^ > subsequent call to compile. (BTW I just tried the suggested hook as is ^^^^^^^^^^^^^^^^^^^^^^^^^^ > and it doesn't work for me, but that's another issue). This is exactly what I don't want. Those processes that have a nil query-on-exit-flag should be killed by compilation-start without a yes-or-no query. A buffer-local non-nil value for compilation-always-kill allows me to achieve that. I still think a check for query-on-exit-flag in compilation-start is a good idea. Non-nil query-on-exit-flag and non-nil buffer-local compilation-always-kill feels redundant, doesn't it? Christopher From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 14:19:20 2012 Received: (at submit) by debbugs.gnu.org; 1 Sep 2012 18:19:21 +0000 Received: from localhost ([127.0.0.1]:33165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7sHv-0005Gi-Im for submit@debbugs.gnu.org; Sat, 01 Sep 2012 14:19:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58089) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7sHs-0005GW-W2 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 14:19:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7sGX-0007fG-FB for submit@debbugs.gnu.org; Sat, 01 Sep 2012 14:17:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7sGX-0007fC-CE for submit@debbugs.gnu.org; Sat, 01 Sep 2012 14:17:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7sGW-0006o0-FC for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 14:17:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7sGV-0007f2-Gc for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 14:17:52 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7sGV-0007ey-8x for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 14:17:51 -0400 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 99B3A20416; Sat, 1 Sep 2012 14:17:50 -0400 (EDT) Received: from betaweb1.nyi.mail.srv.osa ([10.202.2.10]) by compute5.internal (MEProxy); Sat, 01 Sep 2012 14:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=yheMAnQOpVaPibRlrqeulYMX9y8=; b=UVRS1 bHUTrYIsUrV12cN1WhS47FEOkvA/jg4H09jDoYahAK7D83ylKRBGMOEWsnd2V9dT FXzQs309LicCygABZMUbfYURpmMu4wSAmxiqLtrcBDK2w6PjJwrtpSaTsXjMg8Pu ynVgFx9rKGkvlYE7NblLgVeG+UTmQsDmM/KE+w= Received: by betaweb1.nyi.mail.srv.osa (Postfix, from userid 99) id 4E94762B385; Sat, 1 Sep 2012 14:17:50 -0400 (EDT) Message-Id: <1346523470.14751.140661122426041.16CA21FC@webmail.messagingengine.com> X-Sasl-Enc: KOwj8Odq5cgzeRjby2sNop8vhFf5BenSFW+EaAQqWkEs 1346523470 From: Martin Blais To: Christopher Schmidt MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Date: Sat, 01 Sep 2012 14:17:50 -0400 In-Reply-To: <87y5kt92yp@ch.ristopher.com> References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> <87y5kt92yp@ch.ristopher.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On Sat, Sep 1, 2012, at 11:29, Christopher Schmidt wrote: > Martin Blais writes: > > I'm not sure I understand. Let's recap a bit: > > > > a. in 'compilation-start-hook, there's a hint that you can force the > > process-query-on-exit-flag on the compile process; that would > > presumably allow you to kill the buffer without a query, but not on a > ^^^^^^^^^^^^ > > subsequent call to compile. (BTW I just tried the suggested hook as is > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > and it doesn't work for me, but that's another issue). > > This is exactly what I don't want. > > Those processes that have a nil query-on-exit-flag should be killed by > compilation-start without a yes-or-no query. A buffer-local non-nil > value for compilation-always-kill allows me to achieve that. > > I still think a check for query-on-exit-flag in compilation-start is a > good idea. Non-nil query-on-exit-flag and non-nil buffer-local > compilation-always-kill feels redundant, doesn't it? Maybe what we should do is this (just an idea, not sure if it'll make sense to you): 1. Make the compile code check the process-query-on-exit-flag instead of the compilation-always-kill variable. This would simplify matters, in that there's a single flag that decides whether to kill the running process, and it's the same flag that's already being used for when you kill a buffer. One thing. 2. Provide a way to set the default value of process-query-on-exit-flag on compile subprocesses easier than the hook/comment. Suppressing the ask on recompile is a very common desire BTW--some people have packages to do just that--and IMO being able to customize this via a dedicated variable is valuable. What do you think? From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 21:23:14 2012 Received: (at submit) by debbugs.gnu.org; 2 Sep 2012 01:23:14 +0000 Received: from localhost ([127.0.0.1]:33462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7yuA-0006kB-CJ for submit@debbugs.gnu.org; Sat, 01 Sep 2012 21:23:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52145) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T7yu7-0006k3-55 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 21:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7ysj-000883-R3 for submit@debbugs.gnu.org; Sat, 01 Sep 2012 21:21:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7ysj-00087z-OL for submit@debbugs.gnu.org; Sat, 01 Sep 2012 21:21:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7ysi-0003DK-Qe for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 21:21:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7ysh-00087f-Ky for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 21:21:44 -0400 Received: from ristopher.com ([146.185.21.93]:54048 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7ysh-00087X-CP for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2012 21:21:43 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 9C1AE20D26; Sun, 2 Sep 2012 02:21:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1346548900; bh=h1XvLKCVE10CNkiYvZwxi+uuDR/Wa5aZlYeRXNQQO6g=; h=From:To:Cc:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=GoRN1qYBnXRK8b1otYB6R1xva4HfON03rhmuY8h3Y8v1Gc1//TCR+FQgw4EgdpEkQ aA2ze1bR7FQ60z+aHiHaVuD2IeYYdjO1pmQO2HiCrMNJ7Rn4J68m6oryYx37Aykiw2 3sa7W2vBng33bOGlv9Gv9G1/+qjCk4sJA3yrgsLQ= From: Christopher Schmidt To: Martin Blais Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil In-Reply-To: <1346523470.14751.140661122426041.16CA21FC@webmail.messagingengine.com> (Martin Blais's message of "Sat, 01 Sep 2012 14:17:50 -0400") References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> <87y5kt92yp@ch.ristopher.com> <1346523470.14751.140661122426041.16CA21FC@webmail.messagingengine.com> Message-ID: <87wr0d2p99@ch.ristopher.com> Mail-Followup-To: Martin Blais , bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain Date: Sun, 2 Sep 2012 02:21:40 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Martin Blais writes: > On Sat, Sep 1, 2012, at 11:29, Christopher Schmidt wrote: >> Those processes that have a nil query-on-exit-flag should be killed >> by compilation-start without a yes-or-no query. A buffer-local >> non-nil value for compilation-always-kill allows me to achieve that. >> >> I still think a check for query-on-exit-flag in compilation-start is >> a good idea. Non-nil query-on-exit-flag and non-nil buffer-local >> compilation-always-kill feels redundant, doesn't it? > > Maybe what we should do is this (just an idea, not sure if it'll make > sense to you): > > 1. Make the compile code check the process-query-on-exit-flag instead > of the compilation-always-kill variable. This would simplify matters, > in that there's a single flag that decides whether to kill the running > process, and it's the same flag that's already being used for when you > kill a buffer. One thing. > > 2. Provide a way to set the default value of > process-query-on-exit-flag on compile subprocesses easier than the > hook/comment. Suppressing the ask on recompile is a very common desire > BTW--some people have packages to do just that--and IMO being able to > customize this via a dedicated variable is valuable. > > What do you think? This is IMO a lot more intuitive than having a variable that unconditionally removes the prompt. I'd go for it. Christopher From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 04 21:51:13 2012 Received: (at submit) by debbugs.gnu.org; 5 Sep 2012 01:51:13 +0000 Received: from localhost ([127.0.0.1]:39155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T94lt-0007R0-8K for submit@debbugs.gnu.org; Tue, 04 Sep 2012 21:51:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47361) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T94lo-0007Qo-91 for submit@debbugs.gnu.org; Tue, 04 Sep 2012 21:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T94lj-00027u-GC for submit@debbugs.gnu.org; Tue, 04 Sep 2012 21:51:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T94lj-00027q-Cv for submit@debbugs.gnu.org; Tue, 04 Sep 2012 21:51:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T94li-0007N7-75 for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 21:51:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T94lg-00026O-UM for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 21:51:02 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T94lg-00026K-MN for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 21:51:00 -0400 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 91FA420A41; Tue, 4 Sep 2012 21:50:58 -0400 (EDT) Received: from betaweb1.nyi.mail.srv.osa ([10.202.2.10]) by compute4.internal (MEProxy); Tue, 04 Sep 2012 21:50:58 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=uTVt9xczXAvnOlqyh7ECBaiy4hk=; b=dy84y VCNuG4v7VcN8EaQ9yhlyn3tRsk2GMqPe1whxs+X8WrGBVZ11R40xe1H99qCvgH3x 85Za70wuPTBJ/B/Y8u6uTxJseDHfFuojhkurxP83BYediCdtxZfhbYQrorX//0b5 YnLQ5vw0ovr5KZdApA7qExtYI3QyPQ34PKqaIE= Received: by betaweb1.nyi.mail.srv.osa (Postfix, from userid 99) id 4F17A62B46E; Tue, 4 Sep 2012 21:50:58 -0400 (EDT) Message-Id: <1346809858.17060.140661123723789.284FF9D1@webmail.messagingengine.com> X-Sasl-Enc: P31zxpjoicHi2dgVYFud2mG2lAnMOq4mWo/+57dW0pT2 1346809858 From: Martin Blais To: Stefan Monnier MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Date: Tue, 04 Sep 2012 21:50:58 -0400 In-Reply-To: <87wr0d2p99@ch.ristopher.com> References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> <87y5kt92yp@ch.ristopher.com> <1346523470.14751.140661122426041.16CA21FC@webmail.messagingengine.com> <87wr0d2p99@ch.ristopher.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, Christopher Schmidt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Salut Stef, Here is a new patch for compile.el that has the change as described by Christopher. "compilation-always-kill" is consulted to initialize the process-query-on-exit-flag when creating a new process, and the process flag is examined when deciding to query to kill the running process or not. === modified file 'lisp/progmodes/compile.el' *** lisp/progmodes/compile.el 2012-08-30 08:22:24 +0000 --- lisp/progmodes/compile.el 2012-09-04 18:38:00 +0000 *************** *** 1544,1550 **** (let ((comp-proc (get-buffer-process (current-buffer)))) (if comp-proc (if (or (not (eq (process-status comp-proc) 'run)) ! compilation-always-kill (yes-or-no-p (format "A %s process is running; kill it? " name-of-mode))) --- 1544,1550 ---- (let ((comp-proc (get-buffer-process (current-buffer)))) (if comp-proc (if (or (not (eq (process-status comp-proc) 'run)) ! (eq (process-query-on-exit-flag comp-proc) nil) (yes-or-no-p (format "A %s process is running; kill it? " name-of-mode))) *************** *** 1663,1668 **** --- 1663,1675 ---- ;; Make the buffer's mode line show process state. (setq mode-line-process '(:propertize ":%s" face compilation-mode-line-run)) + + ;; Set the process as killable without query by default. + ;; This allows us to start a new compilation without + ;; getting prompted. + (when compilation-always-kill + (set-process-query-on-exit-flag proc nil)) + (set-process-sentinel proc 'compilation-sentinel) (unless (eq mode t) ;; Keep the comint filter, since it's needed for proper handling On Sat, Sep 1, 2012, at 21:21, Christopher Schmidt wrote: > Martin Blais writes: > > On Sat, Sep 1, 2012, at 11:29, Christopher Schmidt wrote: > >> Those processes that have a nil query-on-exit-flag should be killed > >> by compilation-start without a yes-or-no query. A buffer-local > >> non-nil value for compilation-always-kill allows me to achieve that. > >> > >> I still think a check for query-on-exit-flag in compilation-start is > >> a good idea. Non-nil query-on-exit-flag and non-nil buffer-local > >> compilation-always-kill feels redundant, doesn't it? > > > > Maybe what we should do is this (just an idea, not sure if it'll make > > sense to you): > > > > 1. Make the compile code check the process-query-on-exit-flag instead > > of the compilation-always-kill variable. This would simplify matters, > > in that there's a single flag that decides whether to kill the running > > process, and it's the same flag that's already being used for when you > > kill a buffer. One thing. > > > > 2. Provide a way to set the default value of > > process-query-on-exit-flag on compile subprocesses easier than the > > hook/comment. Suppressing the ask on recompile is a very common desire > > BTW--some people have packages to do just that--and IMO being able to > > customize this via a dedicated variable is valuable. > > > > What do you think? > > This is IMO a lot more intuitive than having a variable that > unconditionally removes the prompt. I'd go for it. > > Christopher From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 18 00:20:53 2012 Received: (at 12288-done) by debbugs.gnu.org; 18 Sep 2012 04:20:53 +0000 Received: from localhost ([127.0.0.1]:40644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDpIq-0006JF-WA for submit@debbugs.gnu.org; Tue, 18 Sep 2012 00:20:53 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:57935) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDpIp-0006J8-Bm for 12288-done@debbugs.gnu.org; Tue, 18 Sep 2012 00:20:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09Ld+qU/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0BwsUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="198570919" Received: from 75-119-234-148.dsl.teksavvy.com (HELO pastel.home) ([75.119.234.148]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Sep 2012 00:19:32 -0400 Received: by pastel.home (Postfix, from userid 20848) id 679C259041; Tue, 18 Sep 2012 00:19:31 -0400 (EDT) From: Stefan Monnier To: Martin Blais Subject: Re: bug#12288: 24.2.50; compilation-start: Query for killing existing compilation process only if query-on-exit-flag is non-nil Message-ID: References: <87ehms759q@ch.ristopher.com> <874nnit3f9@ch.ristopher.com> <1346512261.21458.140661122378029.2F7185E7@webmail.messagingengine.com> <87y5kt92yp@ch.ristopher.com> <1346523470.14751.140661122426041.16CA21FC@webmail.messagingengine.com> <87wr0d2p99@ch.ristopher.com> <1346809858.17060.140661123723789.284FF9D1@webmail.messagingengine.com> Date: Tue, 18 Sep 2012 00:19:31 -0400 In-Reply-To: <1346809858.17060.140661123723789.284FF9D1@webmail.messagingengine.com> (Martin Blais's message of "Tue, 04 Sep 2012 21:50:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12288-done Cc: 12288-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Here is a new patch for compile.el that has the change as described by > Christopher. "compilation-always-kill" is consulted to initialize the > process-query-on-exit-flag when creating a new process, and the > process flag is examined when deciding to query to kill the running > process or not. Thanks Martin, installed, Setfan From unknown Fri Sep 05 08:44:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Oct 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator