]> git.eshelyaron.com Git - emacs.git/commit
* lisp/repeat.el: Fix repeat-keep-prefix to allow customizing it to non-nil.
authorJuri Linkov <juri@linkov.net>
Tue, 20 Dec 2022 17:22:15 +0000 (19:22 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 20 Dec 2022 17:22:15 +0000 (19:22 +0200)
commitd3a76db88b4357fe1c92f240796ea9b522b97a8e
tree5317ccdb0c641609c5a442893e8fe125d2396f90
parent8ef3777d54429744dc941145c25067d6964374aa
* lisp/repeat.el: Fix repeat-keep-prefix to allow customizing it to non-nil.

* lisp/repeat.el (repeat-keep-prefix): Add or remove
'repeat-pre-hook' depending on the customized value.
(repeat-mode): Add or remove 'repeat-pre-hook' to/from
'pre-command-hook' when 'repeat-keep-prefix' is non-nil.
(repeat-pre-hook): New function.
(repeat-get-map, repeat-check-map): New function refactored from
'repeat-post-hook'.
(repeat-post-hook): Move some code to smaller functions.
(describe-repeat-maps): Set outline-regexp without ^L.

* test/lisp/repeat-tests.el (repeat-tests-keep-prefix):
Uncomment test case that is fixed now in bug#51281 and bug#55986.
lisp/repeat.el
test/lisp/repeat-tests.el