diff options
author | Kim F. Storm <storm@cua.dk> | 2006-12-04 12:30:20 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2006-12-04 12:30:20 +0000 |
commit | d96658e3fd1586182c54ded540401a3bd00e6465 (patch) | |
tree | 407f78bcae03bcd1abffe80b3dec81a764d1ffeb /lispref/commands.texi | |
parent | 8247c60d3b72d15a668b43ab4dfbf714ab0c4751 (diff) | |
download | emacs-d96658e3fd1586182c54ded540401a3bd00e6465.tar.gz |
(Misc Events): Update signal events.
(Event Examples): Add signal example.
Diffstat (limited to 'lispref/commands.texi')
-rw-r--r-- | lispref/commands.texi | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/lispref/commands.texi b/lispref/commands.texi index 124be554b63..7188961e344 100644 --- a/lispref/commands.texi +++ b/lispref/commands.texi @@ -1586,13 +1586,14 @@ The precise meaning of the event parameters and the way these parameters are used to display the help-echo text are described in @ref{Text help-echo}. -@cindex @code{usr1-signal} event -@cindex @code{usr2-signal} event -@item usr1-signal -@itemx usr2-signal -These events are generated when the Emacs process receives the signals -@code{SIGUSR1} and @code{SIGUSR2}. They contain no additional data -because signals do not carry additional information. +@cindex @code{signal usr1} event +@cindex @code{signal usr2} event +@cindex user signals +@item signal usr1 +@itemx signal usr2 +These event sequences are generated when the Emacs process receives +the signals @code{SIGUSR1} and @code{SIGUSR2}. They contain no +additional data because signals do not carry additional information. @end table If one of these events arrives in the middle of a key sequence---that @@ -1632,6 +1633,16 @@ into another window. That produces a pair of events like these: -453816)) @end smallexample +To handle a SIGUSR1 signal, define an interactive function, and +bind it to the @code{signal usr1} event sequence: + +@smallexample +(defun usr1-handler () + (interactive) + (message "Got USR1 signal")) +(global-set-key [signal usr1] 'usr1-handler) +@end smallexample + @node Classifying Events @subsection Classifying Events @cindex event type |