bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11358: 24.1.50; Feature request: A way to abort emacs-client


From: Lars Ingebrigtsen
Subject: bug#11358: 24.1.50; Feature request: A way to abort emacs-client
Date: Wed, 02 Jun 2021 08:38:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

npostavs@users.sourceforge.net writes:

> Harald Hanche-Olsen <hanche@math.ntnu.no> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]