unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* execute defun on reception of signal
@ 2015-07-12  1:59 Emanuel Berg
  2015-07-12 10:27 ` Andy Moreton
  0 siblings, 1 reply; 29+ messages in thread
From: Emanuel Berg @ 2015-07-12  1:59 UTC (permalink / raw)
  To: help-gnu-emacs

I read somewhere you can do it like this:

    (defun usr1-handler ()
      (interactive)
      (message "Got usr1 signal."))
      
    (global-set-key [signal usr1] 'usr1-handler)

However if the Emacs PID is 2592,

    $ kill -s usr1 2592

doesn't do it.

-- 
underground experts united
http://user.it.uu.se/~embe8573


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

end of thread, other threads:[~2015-07-15 15:25 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-12  1:59 execute defun on reception of signal Emanuel Berg
2015-07-12 10:27 ` Andy Moreton
2015-07-12 16:56   ` Emanuel Berg
2015-07-12 18:54     ` Andy Moreton
2015-07-13  3:53       ` Vaidheeswaran C
2015-07-14  1:49         ` Emanuel Berg
     [not found]     ` <mailman.6808.1436727285.904.help-gnu-emacs@gnu.org>
2015-07-13  2:29       ` Rusi
2015-07-13  2:57         ` Emanuel Berg
2015-07-13  3:39           ` Vaidheeswaran C
2015-07-14  1:43             ` Emanuel Berg
2015-07-14  1:58               ` Vaidheeswaran C
2015-07-14  1:59                 ` Emanuel Berg
2015-07-14  2:07                   ` Emanuel Berg
2015-07-14  2:09                   ` Vaidheeswaran C
2015-07-14 22:14                     ` Emanuel Berg
2015-07-13  8:28         ` Andy Moreton
2015-07-13 14:49           ` Nicolas Richard
2015-07-13 15:22             ` Eli Zaretskii
2015-07-13 14:44         ` Eli Zaretskii
     [not found]         ` <mailman.6850.1436798656.904.help-gnu-emacs@gnu.org>
2015-07-13 14:57           ` Rusi
2015-07-13 15:18             ` Thierry Volpiatto
2015-07-13 15:28             ` Eli Zaretskii
     [not found]             ` <mailman.6858.1436801328.904.help-gnu-emacs@gnu.org>
2015-07-13 16:13               ` Rusi
2015-07-14  1:53             ` Emanuel Berg
     [not found]             ` <mailman.6892.1436840915.904.help-gnu-emacs@gnu.org>
2015-07-14  2:41               ` Pascal J. Bourguignon
2015-07-14 21:33                 ` Emanuel Berg
     [not found]                 ` <mailman.6932.1436909731.904.help-gnu-emacs@gnu.org>
2015-07-14 22:11                   ` Pascal J. Bourguignon
2015-07-14 22:21                     ` Emanuel Berg
     [not found]                     ` <mailman.6936.1436912565.904.help-gnu-emacs@gnu.org>
2015-07-15 15:25                       ` Rusi

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