]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve documentation of special events
authorEli Zaretskii <eliz@gnu.org>
Thu, 13 Aug 2020 13:53:14 +0000 (16:53 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 13 Aug 2020 13:53:14 +0000 (16:53 +0300)
* doc/lispref/commands.texi (Misc Events): Explain how to bind
special events to commands.

doc/lispref/commands.texi

index d25f009361835c32b8ad47f22766c5c45334a3ac..25f657404f3fda917d12a65e7d7fca399568020a 100644 (file)
@@ -1845,6 +1845,13 @@ is, after a prefix key---then Emacs reorders the events so that this
 event comes either before or after the multi-event key sequence, not
 within it.
 
+  Some of these special events, such as @code{delete-frame}, invoke
+Emacs commands by default; others are not bound.  If you want to
+arrange for a special event to invoke a command, you can do that via
+@code{special-event-map}.  The command you bind to a function key in
+that map can then examine the full event which invoked it in
+@code{last-input-event}.  @xref{Special Events}.
+
 @node Event Examples
 @subsection Event Examples