1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 20:30:32 -08:00
emacs/doc
Tino Calancha 23a3333b3e 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.
2020-09-17 16:32:18 +02:00
..
emacs Give Lisp control on the lossage size 2020-09-17 16:32:18 +02:00
lispintro Merge from origin/emacs-27 2020-08-31 10:45:54 -07:00
lispref Fix up previous change for column/line spec mechanism in the mode line 2020-09-17 16:09:37 +02:00
man Fix syntax error in man page. 2020-04-05 10:19:31 +02:00
misc D-Bus: keep type information in D-Bus events 2020-09-16 14:32:57 +02:00