From: Lars Ingebrigtsen <larsi@gnus.org>
To: npostavs@users.sourceforge.net
Cc: 11358@debbugs.gnu.org, Harald Hanche-Olsen <hanche@math.ntnu.no>
Subject: bug#11358: 24.1.50; Feature request: A way to abort emacs-client
Date: Wed, 02 Jun 2021 08:38:29 +0200 [thread overview]
Message-ID: <8735u093fe.fsf@gnus.org> (raw)
In-Reply-To: <878txecl2l.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Wed, 06 Jul 2016 21:07:30 -0400")
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
next prev parent reply other threads:[~2021-06-02 6:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-27 7:44 bug#11358: 24.1.50; Feature request: A way to abort emacs-client Harald Hanche-Olsen
2016-07-07 1:07 ` npostavs
2021-06-02 6:38 ` Lars Ingebrigtsen [this message]
2021-06-02 7:05 ` Harald Hanche-Olsen
2021-06-03 7:07 ` Lars Ingebrigtsen
2021-06-03 7:54 ` Eli Zaretskii
2021-06-03 14:46 ` Harald Hanche-Olsen
2021-06-04 9:13 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735u093fe.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=11358@debbugs.gnu.org \
--cc=hanche@math.ntnu.no \
--cc=npostavs@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.