]> git.eshelyaron.com Git - emacs.git/commit
Improve support of property repeat-continue-only in repeat-mode (bug#74140)
authorJuri Linkov <juri@linkov.net>
Tue, 17 Dec 2024 18:45:42 +0000 (20:45 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:11:54 +0000 (16:11 +0100)
commit2de2d3258f1c7b31c6f072132b67d185419ca112
tree539e53e8c5c4b5c1adcdfb01720bb0741e05c37d
parentf4ca7f51cd02267909cdc821c99d4e53466bd279
Improve support of property repeat-continue-only in repeat-mode (bug#74140)

* lisp/repeat.el (repeat-get-map): Add optional arg 'rep-map'.
Move the check for 'repeat-continue-only' from 'repeat-pre-hook'.
Improve its logic to check if the current map 'repeat-in-progress'
exists in the list from the 'repeat-continue-only' property.
(repeat-post-hook): Set 'repeat-in-progress' to the symbol
from the property 'repeat-map'.

* test/lisp/repeat-tests.el (repeat-tests-another-repeat-map):
Add new keymap to test multiple parallel repeat-maps.
(repeat-tests-continue-another): New test that uses commands
from 'repeat-tests-another-repeat-map' shared with
'repeat-tests-repeat-map'.

(cherry picked from commit 9232c985ef3d874755b0cbf4399fcc7077c308b5)
lisp/repeat.el
test/lisp/repeat-tests.el