summaryrefslogtreecommitdiff
path: root/test/Makefile.in
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2020-06-28 23:30:07 +0200
committerTino Calancha <ccalancha@suse.com>2020-08-27 22:42:07 +0200
commita1999fb319827a2e0cb2bea17dfa190ac81316ef (patch)
treeef488f50e999c38fbc926454f9e74060143ca247 /test/Makefile.in
parent9be3936cdf542df5a21a8c53d65dbba772719223 (diff)
downloademacs-a1999fb319827a2e0cb2bea17dfa190ac81316ef.tar.gz
Do not expose the size of recent_keys to Lisp
That prevents from unintentional crashes if the users modify the variable with setq or if they let-bind it. Users can still safely modify the lossage limit with the command `update-lossage-size'. For convenience, add a function `lossage-size' to return the current limit. * src/keyboard.c (lossage_limit): Do not expose it to Lisp; make it a static variable. Keep the current Emacs default (300); accept only values >= 100. (lossage-size): New function; it returns the current size of recent_keys. (update-lossage-size): Rename it from update-lossage-limit (all callers updated); make it a command. * doc/emacs/help.texi (Misc Help) * etc/NEWS * lisp/cus-start.el * lisp/edmacro.el * lisp/help.el: Update all references with the new name. * test/src/keyboard-tests.el (keyboard-lossage-limit): Amend the test.
Diffstat (limited to 'test/Makefile.in')
0 files changed, 0 insertions, 0 deletions