aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-08-30 08:06:06 +0000
committerMartin Rudalics2007-08-30 08:06:06 +0000
commit1bb1f7d38c25ac81f9173e7735190b7a386e4e27 (patch)
tree21977d3b27ae47e2ebcdd95d520520c2d2b07723
parent392abfd2874f74f26d1bba4bb0fa497c55c1d5e1 (diff)
downloademacs-1bb1f7d38c25ac81f9173e7735190b7a386e4e27.tar.gz
emacs-1bb1f7d38c25ac81f9173e7735190b7a386e4e27.zip
(Command Loop Info): Advise against changing
most variables described here. Explain new variable last-repeatable-command.
-rw-r--r--lispref/ChangeLog6
-rw-r--r--lispref/commands.texi10
2 files changed, 15 insertions, 1 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index af9f622ca87..08a8dc4b0a7 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,9 @@
12007-08-30 Martin Rudalics <rudalics@gmx.at>
2
3 * commands.texi (Command Loop Info): Advise against changing
4 most variables described here. Explain new variable
5 last-repeatable-command.
6
12007-08-27 Richard Stallman <rms@gnu.org> 72007-08-27 Richard Stallman <rms@gnu.org>
2 8
3 * windows.texi (Window Configurations): Clarify what 9 * windows.texi (Window Configurations): Clarify what
diff --git a/lispref/commands.texi b/lispref/commands.texi
index 8354346c35e..b6a6929ad6b 100644
--- a/lispref/commands.texi
+++ b/lispref/commands.texi
@@ -716,7 +716,9 @@ caller to ``pretend'' that the function was called interactively.
716@section Information from the Command Loop 716@section Information from the Command Loop
717 717
718The editor command loop sets several Lisp variables to keep status 718The editor command loop sets several Lisp variables to keep status
719records for itself and for commands that are run. 719records for itself and for commands that are run. With the exception of
720@code{this-command} and @code{last-command} it's generally a bad idea to
721change any of these variables in a Lisp program.
720 722
721@defvar last-command 723@defvar last-command
722This variable records the name of the previous command executed by the 724This variable records the name of the previous command executed by the
@@ -736,6 +738,12 @@ This variable is set up by Emacs just like @code{last-command},
736but never altered by Lisp programs. 738but never altered by Lisp programs.
737@end defvar 739@end defvar
738 740
741@defvar last-repeatable-command
742This variable stores the most recently executed command that was not
743part of an input event. This is the command @code{repeat} will try to
744repeat, @xref{Repeating,,, emacs, The GNU Emacs Manual}.
745@end defvar
746
739@defvar this-command 747@defvar this-command
740@cindex current command 748@cindex current command
741This variable records the name of the command now being executed by 749This variable records the name of the command now being executed by