diff options
| author | Martin Rudalics | 2007-08-30 08:06:06 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2007-08-30 08:06:06 +0000 |
| commit | 1bb1f7d38c25ac81f9173e7735190b7a386e4e27 (patch) | |
| tree | 21977d3b27ae47e2ebcdd95d520520c2d2b07723 | |
| parent | 392abfd2874f74f26d1bba4bb0fa497c55c1d5e1 (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | lispref/commands.texi | 10 |
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 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-08-27 Richard Stallman <rms@gnu.org> | 7 | 2007-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 | ||
| 718 | The editor command loop sets several Lisp variables to keep status | 718 | The editor command loop sets several Lisp variables to keep status |
| 719 | records for itself and for commands that are run. | 719 | records 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 | ||
| 721 | change any of these variables in a Lisp program. | ||
| 720 | 722 | ||
| 721 | @defvar last-command | 723 | @defvar last-command |
| 722 | This variable records the name of the previous command executed by the | 724 | This 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}, | |||
| 736 | but never altered by Lisp programs. | 738 | but never altered by Lisp programs. |
| 737 | @end defvar | 739 | @end defvar |
| 738 | 740 | ||
| 741 | @defvar last-repeatable-command | ||
| 742 | This variable stores the most recently executed command that was not | ||
| 743 | part of an input event. This is the command @code{repeat} will try to | ||
| 744 | repeat, @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 |
| 741 | This variable records the name of the command now being executed by | 749 | This variable records the name of the command now being executed by |