1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-24 05:22:04 -08:00
emacs/test/src
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
..
regex-resources
alloc-tests.el Fix crash when sending Gnus message (Bug#39207) 2020-01-22 23:44:34 -08:00
buffer-tests.el Merge from origin/emacs-27 2020-06-07 09:03:59 -07:00
callint-tests.el Adapt some tests for Emacs's excitingly variable quoting format 2020-09-12 11:57:42 -07:00
callproc-tests.el Fix error in 'call-process-region' when START is nil (Bug#40576) 2020-04-12 19:04:11 +02:00
casefiddle-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
charset-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
chartab-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
cmds-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
coding-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
data-tests.el Silence some byte-compiler warnings in tests 2020-06-03 01:22:41 +01:00
decompress-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
doc-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
editfns-tests.el Use lexical-binding in more tests 2020-08-29 22:41:51 +02:00
emacs-module-tests.el Add facility to make module functions interactive (Bug#23486). 2020-09-13 20:26:47 +02:00
eval-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fileio-tests.el Fix 'expand-file-name' for remote files 2020-09-03 20:16:33 +03:00
floatfns-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
fns-tests.el Use lexical-binding in more tests 2020-08-29 22:41:51 +02:00
font-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
inotify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
json-tests.el Fix undefined behavior in json.c (Bug#42113) 2020-06-29 12:32:56 +02:00
keyboard-tests.el Give Lisp control on the lossage size 2020-09-17 16:32:18 +02:00
keymap-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
lcms-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lread-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
marker-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
minibuf-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
print-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
process-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
regex-emacs-tests.el Revert "Signal an error for the regexp "[:alnum:]"" 2020-02-27 18:58:05 +01:00
syntax-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
textprop-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
thread-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00
timefns-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
undo-tests.el Silence some warnings in tests 2020-06-21 12:50:34 +01:00
xfaces-tests.el Minor improvements as followup to recent RGB string-parsing change 2020-06-22 18:32:01 +03:00
xml-tests.el Use lexical-binding in most src tests 2020-04-24 18:25:13 +02:00