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

From: Eli Zaretskii <[email-masked]>
Date: Thu, 03 Jun 2021 10:54:47 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Date: Thu, 03 Jun 2021 09:07:52 +0200
> Cc: "[email-masked]" <[email-masked]>,
>  "[email-masked]" <[email-masked]>
> 
> Harald Hanche-Olsen <[email-masked]> writes:
> 
> > From: Lars Ingebrigtsen <[email-masked]>
> >
> >> 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.