diff options
author | Tino Calancha <ccalancha@suse.com> | 2020-09-12 14:14:45 +0200 |
---|---|---|
committer | Tino Calancha <ccalancha@suse.com> | 2020-09-17 16:32:18 +0200 |
commit | 23a3333b3ef0768f48f64f382ee899050b6103be (patch) | |
tree | c856800e7fdefb5fe11844738cd49294d09de08b /lisp | |
parent | cd151d06084bff6fa9ba48f8fa13b6bf24e8778c (diff) | |
download | emacs-23a3333b3ef0768f48f64f382ee899050b6103be.tar.gz emacs-23a3333b3ef0768f48f64f382ee899050b6103be.tar.bz2 emacs-23a3333b3ef0768f48f64f382ee899050b6103be.zip |
Give Lisp control on the lossage size
Add a command 'lossage-size' to set the maximum
number or recorded keystrokes (Bug#38796).
* src/keyboard.c (lossage_limit):
Static variable with the current lossage size limit.
(MIN_NUM_RECENT_KEYS): Renamed from NUM_RECENT_KEYS.
Set it as 100 and use it as the minimum value for lossage_limit.
Keep the same default for the vector size as before (300).
(lossage-size): New command.
(update_recent_keys): Helper function.
(command_loop_1)
(record_char)
(recent-keys)
(syms_of_keyboard): Use lossage_limit as the vector size.
* lisp/help.el (view-lossage): Mention the new command in the docstring.
* etc/NEWS (Changes in Emacs 28.1): Announce this change.
* doc/emacs/help.texi (Misc Help): Update manual.
* test/src/keyboard-tests.el (keyboard-lossage-size): Add test.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/help.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el index 729684af6b5..edef78d2075 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -458,6 +458,7 @@ the variable `message-log-max'." "Display last few input keystrokes and the commands run. For convenience this uses the same format as `edit-last-kbd-macro'. +See `lossage-size' to update the number of recorded keystrokes. To record all your input, use `open-dribble-file'." (interactive) |