unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 11358@debbugs.gnu.org, harald.hanche-olsen@ntnu.no,
	npostavs@users.sourceforge.net
Subject: bug#11358: 24.1.50; Feature request: A way to abort emacs-client
Date: Thu, 03 Jun 2021 10:54:47 +0300	[thread overview]
Message-ID: <83wnrbwfg8.fsf@gnu.org> (raw)
In-Reply-To: <87r1hjbf3r.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu,  03 Jun 2021 09:07:52 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 03 Jun 2021 09:07:52 +0200
> Cc: "11358@debbugs.gnu.org" <11358@debbugs.gnu.org>,
>  "npostavs@users.sourceforge.net" <npostavs@users.sourceforge.net>
> 
> Harald Hanche-Olsen <harald.hanche-olsen@ntnu.no> writes:
> 
> > From: Lars Ingebrigtsen <larsi@gnus.org>
> >
> >> 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.





  reply	other threads:[~2021-06-03  7:54 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
2021-06-02  7:05     ` Harald Hanche-Olsen
2021-06-03  7:07       ` Lars Ingebrigtsen
2021-06-03  7:54         ` Eli Zaretskii [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83wnrbwfg8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=11358@debbugs.gnu.org \
    --cc=harald.hanche-olsen@ntnu.no \
    --cc=larsi@gnus.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).