From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11358: 24.1.50; Feature request: A way to abort emacs-client Date: Thu, 03 Jun 2021 10:54:47 +0300 Message-ID: <83wnrbwfg8.fsf@gnu.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34164"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 11358@debbugs.gnu.org, harald.hanche-olsen@ntnu.no, npostavs@users.sourceforge.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 03 09:56:31 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loiDL-0008Zm-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 09:56:27 +0200 Original-Received: from localhost ([::1]:56478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loiDK-00049c-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 03:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loiCw-00048k-4V for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loiCv-0007Nn-UF for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loiCv-0004GK-TV for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2021 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11358 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 11358-submit@debbugs.gnu.org id=B11358.162270690416311 (code B ref 11358); Thu, 03 Jun 2021 07:56:01 +0000 Original-Received: (at 11358) by debbugs.gnu.org; 3 Jun 2021 07:55:04 +0000 Original-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 Original-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 Original-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 Original-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 In-Reply-To: <87r1hjbf3r.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 03 Jun 2021 09:07:52 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207905 Archived-At: > 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.