From unknown Tue Aug 19 14:24:03 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#11358 <11358@debbugs.gnu.org> To: bug#11358 <11358@debbugs.gnu.org> Subject: Status: 24.1.50; Feature request: A way to abort emacs-client Reply-To: bug#11358 <11358@debbugs.gnu.org> Date: Tue, 19 Aug 2025 21:24:03 +0000 retitle 11358 24.1.50; Feature request: A way to abort emacs-client reassign 11358 emacs submitter 11358 Harald Hanche-Olsen severity 11358 wishlist tag 11358 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 27 03:46:29 2012 Received: (at submit) by debbugs.gnu.org; 27 Apr 2012 07:46:29 +0000 Received: from localhost ([127.0.0.1]:55012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNfsq-0001Tg-O2 for submit@debbugs.gnu.org; Fri, 27 Apr 2012 03:46:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46344) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNfso-0001TT-1O for submit@debbugs.gnu.org; Fri, 27 Apr 2012 03:46:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNfrd-00010r-NE for submit@debbugs.gnu.org; Fri, 27 Apr 2012 03:45:17 -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]:52908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNfrd-00010i-Jq for submit@debbugs.gnu.org; Fri, 27 Apr 2012 03:45:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNfrc-0008I2-0U for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 03:45:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNfrR-0000rM-Ru for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 03:45:11 -0400 Received: from anne.math.ntnu.no ([129.241.15.150]:47509) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SNfrR-0000ny-Ci for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 03:45:01 -0400 Received: (qmail 20533 invoked from network); 27 Apr 2012 07:44:58 -0000 Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.58) by anne.math.ntnu.no with ESMTPA; 27 Apr 2012 07:44:58 -0000 Date: Fri, 27 Apr 2012 09:44:58 +0200 (CEST) Message-Id: <20120427.094458.962283820717487751.hanche@math.ntnu.no> To: bug-gnu-emacs@gnu.org Subject: 24.1.50; Feature request: A way to abort emacs-client From: Harald Hanche-Olsen X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.3.51 on Emacs 24.1.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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 (------) There should be a way, from within a server editing buffer, to cause the corresponding emacs-client process to exit with a nonzero exit status. This can then be used by the calling process as an indication that the user has abandoned the edit. If there is already a way to achieve this, consider this a documentation bug: I am certainly unable to find this feature. In GNU Emacs 24.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-04-10 on fia.math.ntnu.no Bzr revision: 107840 larsi@gnus.org-20120410112744-slbrfdrrjb0x1mfy - Harald From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 21:07:30 2016 Received: (at 11358) by debbugs.gnu.org; 7 Jul 2016 01:07:30 +0000 Received: from localhost ([127.0.0.1]:40053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKxms-0000dt-Hq for submit@debbugs.gnu.org; Wed, 06 Jul 2016 21:07:30 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:34894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKxmp-0000df-Jn for 11358@debbugs.gnu.org; Wed, 06 Jul 2016 21:07:28 -0400 Received: by mail-io0-f175.google.com with SMTP id f30so10316091ioj.2 for <11358@debbugs.gnu.org>; Wed, 06 Jul 2016 18:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8JYHJqU4JILlO8bH58xEoP0XZadcU5ozDPBJXYD7jFE=; b=arJsjIx/T/mKT5OqmYMsJT6oXXlhuFxcy0IdQRoiWkpSYk15d+5Kr3c+yy2dZa+09t 6shYuY8pdbQCMNDvxRRXHhaeMKGDjrZ0ZcYYm5awRAeeQ+Uww/wToSxQPRZcxxiYoFLY PmnvAq9exIQSKUVoVjhIZYatIbfCMq/Ch/rLkp+OR3LE79qRgSIO51fdj4VcUMkBWewQ nt/8AgfxV3nBlhrjuavt4G2yh68X8O++xFwq0lHLga/10l6Oe18KEOK/eRkt01/Zo2MH YbOj82C0KV8V7uKFyvdRkUpDIFJhVHkRMELuWAiGN6mMnfQU6JKqE3V21t9xD1Qgq5Zx zi3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=8JYHJqU4JILlO8bH58xEoP0XZadcU5ozDPBJXYD7jFE=; b=k7zFucKpsH73H7Djfalg/hghLLjGbn9wbemZfPbZa2snSGovPygxwN/kPDJinivkHo R2AXQSdvVsUuZZgqi2045kw7XvlXNAonyckbPHOKeWypSMRf2S3ksiDBj5CZTWn0xKs1 dtCIu8elBznHZYDMCvbU12KL98eqkreWQpNOUDSsJNslTm69aV4edAMzw844rWf2kDaG OJOJtCvOFXVo3JxBo+z5rmHR12rgieQ1C0iSNwjIKbzhijyBz4twLtnMn09fap7RKBVK 22trFLhsPNAXrchTtES6xBVnEz8WqYjnbJVilw0G+cPk0PApWOF7OzvkrS3t1H8fd5E9 EaMw== X-Gm-Message-State: ALyK8tLrVv8MWihXQ706vbDTwTLnnJr9BX7iaPJo1/7v5clhSfGyGlGv+Bhg+EKDGMV80A== X-Received: by 10.107.19.169 with SMTP id 41mr24477355iot.11.1467853642048; Wed, 06 Jul 2016 18:07:22 -0700 (PDT) Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id q36sm3197ioi.37.2016.07.06.18.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jul 2016 18:07:21 -0700 (PDT) From: npostavs@users.sourceforge.net To: Harald Hanche-Olsen Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> Date: Wed, 06 Jul 2016 21:07:30 -0400 In-Reply-To: <20120427.094458.962283820717487751.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Fri, 27 Apr 2012 09:44:58 +0200 (CEST)") Message-ID: <878txecl2l.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11358 Cc: 11358@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Harald Hanche-Olsen writes: > There should be a way, from within a server editing buffer, to cause > the corresponding emacs-client process to exit with a nonzero exit > status. This can then be used by the calling process as an indication > that the user has abandoned the edit. > > If there is already a way to achieve this, consider this a > documentation bug: I am certainly unable to find this feature. There is a way to do this, I know because it's used by magit to tell git to cancel the commit message editing (with-editor is a library that was spun off from magit): (defun with-editor-return (cancel) (let ... (clients server-buffer-clients) ... (dolist (client clients) (ignore-errors (server-send-string client "-error Canceled by user")) ... The only documentation I could find on it was in server-process-filter docstring: (cl-defun server-process-filter (proc string) "Process a request from the server to edit some files. PROC is the server process. [...] The following commands are accepted by the client: [...] `-error DESCRIPTION' Signal an error and delete process PROC. Probably it should be mentioned in the elisp manual somewhere, not sure where, there doesn't seem to be an appropriate existing chapter. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 02 02:38:40 2021 Received: (at 11358) by debbugs.gnu.org; 2 Jun 2021 06:38:40 +0000 Received: from localhost ([127.0.0.1]:38516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKWW-0001d7-JT for submit@debbugs.gnu.org; Wed, 02 Jun 2021 02:38:40 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKWV-0001cr-3z for 11358@debbugs.gnu.org; Wed, 02 Jun 2021 02:38:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=F+e6BzXI0sbYGKWg/CpaJ9UovXNGKpLQYZ8yHgyfG9Q=; b=oryh4IapwX9iMwSQKbFoo9AECb et8nL90NVkm+bi9VQWSmIA5ktEC4geBVo+K0oJgEWMK7QMagXINxa2zqToJN3I1cw+j+PWzge5wrp Tj4kCj/VI7vQz3kNrd97W+Gbo5trKl2K9MXvrawSDJtMsm2G+HmoaX35zzbrRPsMfNQ8=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loKWM-0002lA-AP; Wed, 02 Jun 2021 08:38:32 +0200 From: Lars Ingebrigtsen To: npostavs@users.sourceforge.net Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> X-Now-Playing: Bobbi Humphrey's _Blacks and Blues_: "Baby's Gone" Date: Wed, 02 Jun 2021 08:38:29 +0200 In-Reply-To: <878txecl2l.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Wed, 06 Jul 2016 21:07:30 -0400") Message-ID: <8735u093fe.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: npostavs@users.sourceforge.net writes: > Harald Hanche-Olsen writes: > >> There should be a way, from within a server editing buffer, to cause >> the corresponding emacs-client process to exit with a nonzero exit >> s [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11358 Cc: 11358@debbugs.gnu.org, Harald Hanche-Olsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) npostavs@users.sourceforge.net writes: > Harald Hanche-Olsen writes: > >> There should be a way, from within a server editing buffer, to cause >> the corresponding emacs-client process to exit with a nonzero exit >> status. This can then be used by the calling process as an indication >> that the user has abandoned the edit. >> >> If there is already a way to achieve this, consider this a >> documentation bug: I am certainly unable to find this feature. > > There is a way to do this, I know because it's used by magit to tell git > to cancel the commit message editing (with-editor is a library that was > spun off from magit): [...] > (server-send-string client "-error Canceled by user")) [...] > Probably it should be mentioned in the elisp manual somewhere, not sure > where, there doesn't seem to be an appropriate existing chapter. Yes, the server isn't discussed in the elisp manual at all. Anyway -- was the request here to add a new command to work like `C-x #', but instead send "-error Canceled by user"? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 02 02:38:45 2021 Received: (at control) by debbugs.gnu.org; 2 Jun 2021 06:38:45 +0000 Received: from localhost ([127.0.0.1]:38519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKWa-0001dN-Se for submit@debbugs.gnu.org; Wed, 02 Jun 2021 02:38:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKWZ-0001cz-KJ for control@debbugs.gnu.org; Wed, 02 Jun 2021 02:38:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=js7kUvn8cRqUwnowhKdT/w2UednJHfowO+vhbGc+aig=; b=fwUMc58ZJnQTumiNgi5Oj7v958 cN/AhRs+l8tZGTG4CnWirmu3VmeN7gK9ugnj+gFuG5P8JBAAuLLEz66ChE3uWc25lohcTRUZISjgO mIf0MZvDDz04WiWSGPlpsYq3YDoz82pR7QcgTeIRNzwOYTK7YuufSWTGCdZz1xYVRqyI=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loKWS-0002lI-60 for control@debbugs.gnu.org; Wed, 02 Jun 2021 08:38:38 +0200 Date: Wed, 02 Jun 2021 08:38:35 +0200 Message-Id: <871r9k93f8.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11358 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 11358 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 11358 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 02 10:44:45 2021 Received: (at 11358) by debbugs.gnu.org; 2 Jun 2021 14:44:45 +0000 Received: from localhost ([127.0.0.1]:41062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loS6u-0005aM-B5 for submit@debbugs.gnu.org; Wed, 02 Jun 2021 10:44:45 -0400 Received: from mailgw101.it.ntnu.no ([129.241.56.177]:44598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKwY-0004e5-3X for 11358@debbugs.gnu.org; Wed, 02 Jun 2021 03:05:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1622617532; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version : from; bh=z4p2WE5kMJW0dw3ZQWxBsJkoOohqC/WlhmVfk9IHgiw=; b=rvQY3y2SI+Lng/GOT6shrKWgRY6JODWBCsHprTTfX2jG+1j/NVGbqFTTIFlYXN6v8GrJB qeMMBnjpGnm/SYpyrE6GKMaQFRCPIpvyaP4WtGW8JyrkfnK+tzd8ZxomiRwWW6ScoEAiMVD 0hu73nlJ3aGavpsMJvA/LbvIgShKn1PtlbGYq3Lc/mHH8bv9nxi9VNNm09jrpPqYObo0fCa deUwkGrqyrl/++9lCJCLBjgq5UyspiQF/onm9iJZk3rJnTJ14gDRLKl7qtU63CIWvDfInlY qVdGDU7TIutRu5nvY/EvDbZm/jQVdWAtizN2akR/F1JqJfqnFwfr0toba45w== Received: from localhost (localhost [127.0.0.1]) by mailgw101.it.ntnu.no (Postfix) with ESMTP id 0DD351DE1552; Wed, 2 Jun 2021 09:05:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw101.it.ntnu.no Received: from mailgw101.it.ntnu.no ([127.0.0.1]) by localhost (mailgw101.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fPTnwdTCSPwV; Wed, 2 Jun 2021 09:05:31 +0200 (CEST) Received: from it-ex18.win.ntnu.no (it-ex18.it.ntnu.no [IPv6:2001:700:300:3::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw101.it.ntnu.no (Postfix) with ESMTPS id C4F1A1DE1520; Wed, 2 Jun 2021 09:05:31 +0200 (CEST) Received: from it-ex21.win.ntnu.no (2001:700:300:3::44) by it-ex18.win.ntnu.no (2001:700:300:3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.12; Wed, 2 Jun 2021 09:05:31 +0200 Received: from it-ex21.win.ntnu.no ([fe80::9035:7179:caf5:abcf]) by it-ex21.win.ntnu.no ([fe80::9035:7179:caf5:abcf%15]) with mapi id 15.02.0858.012; Wed, 2 Jun 2021 09:05:31 +0200 From: Harald Hanche-Olsen To: Lars Ingebrigtsen , "npostavs@users.sourceforge.net" Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client Thread-Topic: bug#11358: 24.1.50; Feature request: A way to abort emacs-client Thread-Index: AQHXV3ntl6VZovVx6k+9xsvMijZ96asATGQA Date: Wed, 2 Jun 2021 07:05:31 +0000 Message-ID: References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> <8735u093fe.fsf@gnus.org> In-Reply-To: <8735u093fe.fsf@gnus.org> Accept-Language: en-US, nb-NO Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/16.49.21050901 X-Ntnu-xOriginatingIp: [2001:700:300:10::190] Content-Type: text/plain; charset="utf-8" Content-ID: <093500EB022C554988DF4E0817F3C43D@mail.ntnu.no> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11358 X-Mailman-Approved-At: Wed, 02 Jun 2021 10:44:42 -0400 Cc: "11358@debbugs.gnu.org" <11358@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) RnJvbTogTGFycyBJbmdlYnJpZ3RzZW4gPGxhcnNpQGdudXMub3JnPg0KDQo+IEFueXdheSAtLSB3 YXMgdGhlIHJlcXVlc3QgaGVyZSB0byBhZGQgYSBuZXcgY29tbWFuZCB0byB3b3JrIGxpa2UNCj4g YEMteCAjJywgYnV0IGluc3RlYWQgc2VuZCAiLWVycm9yIENhbmNlbGVkIGJ5IHVzZXIiPyAgDQoN ClRoYXQgd2FzIG15IHRob3VnaHQsIHllcy4gSXQgd291bGQgbm90IG5lZWQgdG8gYmUgYm91bmQg dG8gYW55IGtleSBieSBkZWZhdWx0Lg0KUGVyaGFwcyDigJhzZXJ2ZXItZWRpdC1hYm9ydOKAmSBp cyBhIGdvb2QgbmFtZT8NCg0K4oCTIEhhcmFsZCAobmV3IGVtYWlsIGFkZHJlc3MsIGZvcm1lcmx5 IGhhbmNoZUBtYXRoLm50bnUubm8pDQoNCg== From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 03:08:04 2021 Received: (at 11358) by debbugs.gnu.org; 3 Jun 2021 07:08:05 +0000 Received: from localhost ([127.0.0.1]:41949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lohSW-00072F-OQ for submit@debbugs.gnu.org; Thu, 03 Jun 2021 03:08:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lohSU-00071i-4b for 11358@debbugs.gnu.org; Thu, 03 Jun 2021 03:08:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WUKYzD+4dysUQTtOswjeeN7BBefthuUmiL5KSSOeF4I=; b=uerMuqXPRx4kc3YW28lGmEpvhs KAiFGWEzogmv1iXBDEkO54yn1v+6IOQv9DhLvp5/E5oYhlTx6U8T6fhXkSnGb/LG5NJTTvErm/N1B uHDdU4oEpvny/T/skAedmotpLDaZnttMiEygmhSjJdobsG4iUFcsgrBGsGdR4pkBf+DA=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lohSL-0007Zh-1K; Thu, 03 Jun 2021 09:07:55 +0200 From: Lars Ingebrigtsen To: Harald Hanche-Olsen Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> <8735u093fe.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEUWEhAhHRokIR4w LCpFQT5BPTtRTUpwbm2ioaBiX12Cf33S0M5AP0D////jKYWoAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+UGAwY5IsjByjMAAAEhSURBVDjL3VK9asMwEJZ8YNrtJJPOiQ2eZR9kLoSGjoW8QIhKoHMGpy9Q FOjQUHBT+gh9gYJerrJdWsexBg9Z+k06fafvfj4x9q/B0ccI75PBxDkxvP9A+Rjy1YiqKnx8WgMq LegIJpwJUd3JTnosBQo8bk04oJQTFL/DIK/OMo9jrCOXVBOCw41iPKGcZlXsvMtqKWCpniFL1hlt l41I0xKn/OE1Y6NyND48NdI/+4L7TMcUlG/RrdmLFuGaC4E07Myn2Sxggi1XQzVPV1NrjdlfIbbW D3fhcnr9Ya19WXSHngeP7wfzVWh9bBgPVVqyiNakuoZpQe1d/1kMOXdR3z+LkJ0HA3V5Y9opLoti 00tcGLPrf2G2z71EQG5lvu/9DcTpK8x/LFvbAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA2LTAz VDA2OjU3OjM0KzAwOjAw5g72xQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNi0wM1QwNjo1Nzoz NCswMDowMJdTTnkAAAAASUVORK5CYII= X-Now-Playing: Little Simz's _Grey Area_: "Offence" Date: Thu, 03 Jun 2021 09:07:52 +0200 In-Reply-To: (Harald Hanche-Olsen's message of "Wed, 2 Jun 2021 07:05:31 +0000") Message-ID: <87r1hjbf3r.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Harald Hanche-Olsen writes: > From: Lars Ingebrigtsen > >> Anyway -- was the request here to add a new command to work like >> `C-x #', but instead send "-error Canceled by user"? > > That was my thought, yes. I [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11358 Cc: "11358@debbugs.gnu.org" <11358@debbugs.gnu.org>, "npostavs@users.sourceforge.net" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Harald Hanche-Olsen writes: > From: Lars Ingebrigtsen > >> Anyway -- was the request here to add a new command to work like >> `C-x #', but instead send "-error Canceled by user"?=20=20 > > That was my thought, yes. It would not need to be bound to any key by def= ault. > Perhaps =E2=80=98server-edit-abort=E2=80=99 is a good name? Sure. I'm not that familiar with how server.el/emacsclient works, though -- can somebody else propose a patch to implement this command? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 03:55:04 2021 Received: (at 11358) by debbugs.gnu.org; 3 Jun 2021 07:55:04 +0000 Received: from localhost ([127.0.0.1]:42070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loiC0-0004F1-9f for submit@debbugs.gnu.org; Thu, 03 Jun 2021 03:55:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loiBy-0004EM-L1 for 11358@debbugs.gnu.org; Thu, 03 Jun 2021 03:55:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60420) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loiBs-0006ZU-Ac; Thu, 03 Jun 2021 03:54:56 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1657 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loiBr-00062g-U4; Thu, 03 Jun 2021 03:54:56 -0400 Date: Thu, 03 Jun 2021 10:54:47 +0300 Message-Id: <83wnrbwfg8.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87r1hjbf3r.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 03 Jun 2021 09:07:52 +0200) Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> <8735u093fe.fsf@gnus.org> <87r1hjbf3r.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11358 Cc: 11358@debbugs.gnu.org, harald.hanche-olsen@ntnu.no, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Thu, 03 Jun 2021 09:07:52 +0200 > Cc: "11358@debbugs.gnu.org" <11358@debbugs.gnu.org>, > "npostavs@users.sourceforge.net" > > Harald Hanche-Olsen writes: > > > From: Lars Ingebrigtsen > > > >> Anyway -- was the request here to add a new command to work like > >> `C-x #', but instead send "-error Canceled by user"? > > > > That was my thought, yes. It would not need to be bound to any key by default. > > Perhaps ‘server-edit-abort’ is a good name? > > Sure. I'm not that familiar with how server.el/emacsclient works, > though -- can somebody else propose a patch to implement this command? The commands accepted by the client are documented in the doc string of server-process-filter. There's already a command that causes the client to exit with a non-zero exit status: "-error MESSAGE". Maybe just reusing it would do. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 10:46:45 2021 Received: (at 11358) by debbugs.gnu.org; 3 Jun 2021 14:46:45 +0000 Received: from localhost ([127.0.0.1]:44476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loocL-0006Ko-3w for submit@debbugs.gnu.org; Thu, 03 Jun 2021 10:46:44 -0400 Received: from mailgw201.it.ntnu.no ([129.241.56.178]:51454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loocG-0006KZ-1t for 11358@debbugs.gnu.org; Thu, 03 Jun 2021 10:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1622731593; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version : from; bh=qlBKwolarhv/p3xP9u1r9/uZf30dasggzGIkeecPics=; b=wwxCwHj6tq7RzX7ObB9jop+4GM0UAGGAYIxS7tlRyPfZEcLPMlPDxwVMcKy+Olifnpruf JropbkhQaB/mBVA11QbMqCoSrDhyRXI7gWFMEtMBXM7HbO96ZWGky7jIaQDX+la5VBwqtG6 vxciuSDkZW4JReH39YzvdON1lnjFm84K1/4OIzXlwupCwr7M/Cq/5Dccbkm+Gq52nDoBs7N 6ojFX9EyPS3sA1kxXcOB2N+erPw3iMnZbTzhB4lBt1taouamefQluVFY8FFXDtrmY8ztSU8 SwB/CjEcdi5UfMkbqr53jCQanSVLXKtIkesTCKKAdxp4fFi7pfrTTEOE7JSQ== Received: from localhost (localhost [127.0.0.1]) by mailgw201.it.ntnu.no (Postfix) with ESMTP id EF586901669; Thu, 3 Jun 2021 16:46:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw201.it.ntnu.no Received: from mailgw201.it.ntnu.no ([127.0.0.1]) by localhost (mailgw201.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YhDfl5YZTovD; Thu, 3 Jun 2021 16:46:33 +0200 (CEST) Received: from it-ex17.win.ntnu.no (it-ex17.it.ntnu.no [IPv6:2001:700:300:3::11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw201.it.ntnu.no (Postfix) with ESMTPS id BBC069013D8; Thu, 3 Jun 2021 16:46:33 +0200 (CEST) Received: from it-ex21.win.ntnu.no (2001:700:300:3::44) by it-ex17.win.ntnu.no (2001:700:300:3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.12; Thu, 3 Jun 2021 16:46:33 +0200 Received: from it-ex21.win.ntnu.no ([fe80::9035:7179:caf5:abcf]) by it-ex21.win.ntnu.no ([fe80::9035:7179:caf5:abcf%15]) with mapi id 15.02.0858.012; Thu, 3 Jun 2021 16:46:33 +0200 From: Harald Hanche-Olsen To: Eli Zaretskii , Lars Ingebrigtsen Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client Thread-Topic: bug#11358: 24.1.50; Feature request: A way to abort emacs-client Thread-Index: AQHXV3ntl6VZovVx6k+9xsvMijZ96asATGQAgAGTF+OAAA0bXYAAcvIA Date: Thu, 3 Jun 2021 14:46:33 +0000 Message-ID: <1AC8AF23-F1EB-4A0D-B702-8931B318B36D@ntnu.no> References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> <8735u093fe.fsf@gnus.org> <87r1hjbf3r.fsf@gnus.org> <83wnrbwfg8.fsf@gnu.org> In-Reply-To: <83wnrbwfg8.fsf@gnu.org> Accept-Language: en-US, nb-NO Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/16.49.21050901 X-Ntnu-xOriginatingIp: [2001:700:300:10::190] Content-Type: text/plain; charset="utf-8" Content-ID: <957C5B52B334E945BE6C5BA3957EACB5@mail.ntnu.no> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11358 Cc: "11358@debbugs.gnu.org" <11358@debbugs.gnu.org>, "npostavs@users.sourceforge.net" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) SGVyZSBpcyBhIHZlcnkgbmFpdmUgZmlyc3Qgc3RhYjoNCg0KKGRlZnVuIHNlcnZlci1hYm9ydCAo KQ0KICAoaW50ZXJhY3RpdmUpDQogIChpZiBzZXJ2ZXItY2xpZW50cw0KICAgICAgKG1hcGMgKGxh bWJkYSAocHJvYykNCiAgICAgICAgICAgICAgKHNlcnZlci1zZW5kLXN0cmluZw0KICAgICAgICAg ICAgICAgcHJvYyAoY29uY2F0ICItZXJyb3IgIg0KICAgICAgICAgICAgICAgICAgICAgICAgICAg IChzZXJ2ZXItcXVvdGUtYXJnICJBYm9ydGVkIGJ5IHRoZSB1c2VyIikpKSkNCiAgICAgICAgICAg IHNlcnZlci1jbGllbnRzKQ0KICAgIChtZXNzYWdlICJUaGlzIGJ1ZmZlciBoYXMgbm8gY2xpZW50 cyIpKSkNCg0KVGhhdCBpcyBnb29kIGVub3VnaCBmb3IgbWUsIGJ1dCDigJhzZXJ2ZXItZWRpdOKA mSAob3Ig4oCYc2VydmVyLWRvbmXigJksIHJlYWxseSkNCmRvZXMgYSBiaXQgb2YgaG91c2VrZWVw aW5nIHRoYXQgdGhpcyBvbmUgZG9lcyBub3QuDQpNb3N0IGltcG9ydGFudGx5LCB3aGF0IHRoaXMg Y29kZSBkb2VzIG5vdCBpcyBkZWNpZGUgd2hhdCB0byBkbw0Kd2l0aCB0aGUgYnVmZmVyLiBJdCBh cHBlYXJzIHRoYXQsIGlmIGl0IGlzIHVubW9kaWZpZWQsIGEgcHJvY2VzcyBzZW50aW5lbA0Kd2ls bCBkZWxldGUgaXQsIGJ1dCBpZiBpdCBpcyBtb2RpZmllZCwgaXQgcmVtYWlucy4gUGVyaGFwcyB0 aGF0IGlzIG9rYXkuDQpQZXJoYXBzIGFib3J0aW5nIGEgc2VydmVyIGlzIHN1Y2ggYW4gZXhjZXB0 aW9uYWwgZXZlbnQsIG9uZSBzaG91bGQNCmxlYXZlIHRoZSBjbGVhbnVwIHRvIHRoZSB1c2VyIGFu eWhvdy4NCkZ1cnRoZXIg4oCYc2VydmVyLWVkaXTigJkgd2lsbCB0cnkgdG8gc3dpdGNoIHRvIGEg ZGlmZmVyZW50IHNlcnZlciBidWZmZXIsDQppZiBvbmUgZXhpc3RzLiBUaGlzIGNvZGUgZG9lcyBu b3QuIEFnYWluLCBwZXJoYXBzIHRoYXQgaXMgYXMgaXQgc2hvdWxkIGJlLg0KDQrigJMgSGFyYWxk DQoNCg0K From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 05:13:45 2021 Received: (at 11358) by debbugs.gnu.org; 4 Jun 2021 09:13:45 +0000 Received: from localhost ([127.0.0.1]:45326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5td-00071A-6u for submit@debbugs.gnu.org; Fri, 04 Jun 2021 05:13:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5tY-00070i-0n for 11358@debbugs.gnu.org; Fri, 04 Jun 2021 05:13:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WnqwdEgqg+MqzTsJLJTSavApk37UmUc9D1eB30WlAbo=; b=LYXOmEzAv8LvVZjpCHXkIpHkAu Xi6GB8sl15PsPWodcuAG+JyaW8yOKYQkTJrg5bAvQnniq/cMyDCPBc9Aa/Y7LrSyZxCHtorlkLU6h pw0G3RpoPK8hLZYA/mI3ukrIm1PRqcXdQCMpK5QQGAjOpr9QUFGqgPonDv+2Qh2YIuV4=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp5tN-0003cK-2F; Fri, 04 Jun 2021 11:13:29 +0200 From: Lars Ingebrigtsen To: Harald Hanche-Olsen Subject: Re: bug#11358: 24.1.50; Feature request: A way to abort emacs-client References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> <8735u093fe.fsf@gnus.org> <87r1hjbf3r.fsf@gnus.org> <83wnrbwfg8.fsf@gnu.org> <1AC8AF23-F1EB-4A0D-B702-8931B318B36D@ntnu.no> X-Now-Playing: Mia Doi Todd's _Music Life_: "Daughter of Hope" Date: Fri, 04 Jun 2021 11:13:24 +0200 In-Reply-To: <1AC8AF23-F1EB-4A0D-B702-8931B318B36D@ntnu.no> (Harald Hanche-Olsen's message of "Thu, 3 Jun 2021 14:46:33 +0000") Message-ID: <87mts60z7v.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Harald Hanche-Olsen writes: > Here is a very naive first stab: > > (defun server-abort () > (interactive) > (if server-clients > (mapc (lambda (proc) > (server-send-string > proc (concat "-error " > (server-quote-arg "Aborted by [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11358 Cc: "11358@debbugs.gnu.org" <11358@debbugs.gnu.org>, Eli Zaretskii , "npostavs@users.sourceforge.net" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Harald Hanche-Olsen writes: > Here is a very naive first stab: > > (defun server-abort () > (interactive) > (if server-clients > (mapc (lambda (proc) > (server-send-string > proc (concat "-error " > (server-quote-arg "Aborted by the user")))) > server-clients) > (message "This buffer has no clients"))) > > That is good enough for me, but =E2=80=98server-edit=E2=80=99 (or =E2=80= =98server-done=E2=80=99, really) > does a bit of housekeeping that this one does not. Thanks, I installed this in Emacs 28 (under the name server-edit-abort). This, along with your previous patch, reaches the limit of the number of lines we can accept into Emacs without a copyright assignment. Would you be willing to sign such paperwork? > Most importantly, what this code does not is decide what to do > with the buffer. It appears that, if it is unmodified, a process sentinel > will delete it, but if it is modified, it remains. Perhaps that is okay. > Perhaps aborting a server is such an exceptional event, one should > leave the cleanup to the user anyhow. Yes, I think that makes sense. If somebody wants to add more logic here (to query the user for something), that might also be nice. But it may not be necessary. > Further =E2=80=98server-edit=E2=80=99 will try to switch to a different s= erver buffer, > if one exists. This code does not. Again, perhaps that is as it should be. Yeah, I think aborting just the current buffer makes sense, but I can see somebody wanting this to behave more like `server-edit' -- I guess we'll see. But I think this is fine for now, at least, so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 05:13:53 2021 Received: (at control) by debbugs.gnu.org; 4 Jun 2021 09:13:53 +0000 Received: from localhost ([127.0.0.1]:45329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5tl-00071Y-P1 for submit@debbugs.gnu.org; Fri, 04 Jun 2021 05:13:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5tg-000710-Nx for control@debbugs.gnu.org; Fri, 04 Jun 2021 05:13:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jWFZDr1be+7f8u9hPc9FnfP6jXCDFFsgkIzJex30ucY=; b=DwpYF/vjoOX6BiAY/26C5u5/+x b66eQNuZDdau5i1GFbdSfBuOI0DoOH59NT9Vp5qax3+/QHOm5Qe9+AQwmlL1NDNbgGps6oJR0AKzu 35T3m3BXkvkfJd0raQLYqJkx10ZdzE6326wUhEKHm3SfRoRxCkNY8cvltjWbaPlCQl6A=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp5tZ-0003cT-AU for control@debbugs.gnu.org; Fri, 04 Jun 2021 11:13:39 +0200 Date: Fri, 04 Jun 2021 11:13:36 +0200 Message-Id: <87lf7q0z7j.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11358 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 11358 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 11358 28.1 quit From unknown Tue Aug 19 14:24:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Jul 2021 11:24:05 +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