[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: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/commands.texi,v |
Date: |
Mon, 16 Oct 2006 18:50:56 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Richard M. Stallman <rms> 06/10/16 18:50:56
Index: commands.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/commands.texi,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -b -r1.94 -r1.95
--- commands.texi 24 Sep 2006 20:33:29 -0000 1.94
+++ commands.texi 16 Oct 2006 18:50:56 -0000 1.95
@@ -575,10 +575,11 @@
Otherwise, the command is added only if it uses the minibuffer to read
an argument. @xref{Command History}.
-The argument @var{keys}, if given, specifies the sequence of events to
-supply if the command inquires which events were used to invoke it.
-If @var{keys} is omitted or @code{nil}, the return value of
address@hidden is used. @xref{Definition of this-command-keys}.
+The argument @var{keys}, if given, should be a vector which specifies
+the sequence of events to supply if the command inquires which events
+were used to invoke it. If @var{keys} is omitted or @code{nil}, the
+default is the return value of @code{this-command-keys-vector}.
address@hidden of this-command-keys-vector}.
@end defun
@defun command-execute command &optional record-flag keys special
@@ -785,7 +786,6 @@
@end defvar
@defun this-command-keys
address@hidden of this-command-keys}
This function returns a string or vector containing the key sequence
that invoked the present command, plus any previous commands that
generated the prefix argument for this command. Any events read by the
@@ -806,6 +806,7 @@
@end defun
@defun this-command-keys-vector
address@hidden of this-command-keys-vector}
Like @code{this-command-keys}, except that it always returns the events
in a vector, so you don't need to deal with the complexities of storing
input events in a string (@pxref{Strings of Events}).
@@ -3021,7 +3022,12 @@
editing. When called from a Lisp program, it enters a recursive editing
level.
- In the following example, the function @code{simple-rec} first
+If the current buffer is not the same as the selected window's buffer,
address@hidden saves and restores the current buffer. Otherwise,
+if you switch buffers, the buffer you switched to is current after
address@hidden returns.
+
+In the following example, the function @code{simple-rec} first
advances point one word, then enters a recursive edit, printing out a
message in the echo area. The user can then do any editing desired, and
then type @kbd{C-M-c} to exit and continue executing @code{simple-rec}.
- [Emacs-diffs] Changes to emacs/lispref/commands.texi,v,
Richard M. Stallman <=