[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/commands.texi,v

From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/lispref/commands.texi,v
Date: Mon, 04 Dec 2006 12:30:21 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kim F. Storm <kfstorm>  06/12/04 12:30:20

Index: commands.texi
RCS file: /cvsroot/emacs/emacs/lispref/commands.texi,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- commands.texi       23 Oct 2006 16:46:47 -0000      1.96
+++ commands.texi       4 Dec 2006 12:30:20 -0000       1.97
@@ -1586,13 +1586,14 @@
 parameters are used to display the help-echo text are described in
 @ref{Text help-echo}.
address@hidden @code{usr1-signal} event
address@hidden @code{usr2-signal} event
address@hidden usr1-signal
address@hidden usr2-signal
-These events are generated when the Emacs process receives the signals
address@hidden and @code{SIGUSR2}.  They contain no additional data
-because signals do not carry additional information.
address@hidden @code{signal usr1} event
address@hidden @code{signal usr2} event
address@hidden user signals
address@hidden signal usr1
address@hidden 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 @@
 @end smallexample
+To handle a SIGUSR1 signal, define an interactive function, and
+bind it to the @code{signal usr1} event sequence:
+(defun usr1-handler ()
+  (interactive)
+  (message "Got USR1 signal"))
+(global-set-key [signal usr1] 'usr1-handler)
address@hidden smallexample
 @node Classifying Events
 @subsection Classifying Events
 @cindex event type

reply via email to

[Prev in Thread] Current Thread [Next in Thread]