unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Interrupting computations using signals
@ 2021-05-24 12:32 Daniel Mendler
  2021-05-24 12:53 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Mendler @ 2021-05-24 12:32 UTC (permalink / raw)
  To: emacs-devel@gnu.org

If Emacs is running in GUI mode, I can interrupt computations by
pressing `C-g` (keyboard-quit). Is there also a possibility to submit
such an interrupt from outside, via signals or via another mechanism?

This feature would be useful when running computations in an external
Emacs worker process. Ideally there is some API which allows to enable
external interrupts only within an interruptible section. Note that I
can always terminate a worker process via the OS mechanisms, but that is
not the point here, I want to make it interruptible instead.

I've read something in the manual about SIGUSR1/SIGUSR2 but I could not
get these handlers to work in an Emacs running in daemon or batch mode.

Daniel



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-24 16:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-24 12:32 Interrupting computations using signals Daniel Mendler
2021-05-24 12:53 ` Eli Zaretskii
2021-05-24 14:08   ` Daniel Mendler
2021-05-24 14:37     ` Eli Zaretskii
2021-05-24 15:12       ` Daniel Mendler
2021-05-24 16:34         ` Stefan Monnier

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).