From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#11358: 24.1.50; Feature request: A way to abort emacs-client Date: Wed, 02 Jun 2021 08:38:29 +0200 Message-ID: <8735u093fe.fsf@gnus.org> References: <20120427.094458.962283820717487751.hanche@math.ntnu.no> <878txecl2l.fsf@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16915"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 11358@debbugs.gnu.org, Harald Hanche-Olsen To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 02 08:39:09 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 1loKWz-0004BM-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 08:39:09 +0200 Original-Received: from localhost ([::1]:47052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loKWy-0007jU-5P for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 02:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loKWs-0007j9-Ls for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 02:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loKWs-00080O-ER for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 02:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loKWs-0001dw-B1 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 02:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2021 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11358 X-GNU-PR-Package: emacs Original-Received: via spool by 11358-submit@debbugs.gnu.org id=B11358.16226159206273 (code B ref 11358); Wed, 02 Jun 2021 06:39:02 +0000 Original-Received: (at 11358) by debbugs.gnu.org; 2 Jun 2021 06:38:40 +0000 Original-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 Original-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=; Original-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 X-Now-Playing: Bobbi Humphrey's _Blacks and Blues_: "Baby's Gone" In-Reply-To: <878txecl2l.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Wed, 06 Jul 2016 21:07:30 -0400") 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:207830 Archived-At: 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