]> git.eshelyaron.com Git - emacs.git/commit
Fix repeat-mode to keep the same map symbol for repeat-continue
authorJuri Linkov <juri@linkov.net>
Tue, 14 Jan 2025 19:41:48 +0000 (21:41 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 17 Jan 2025 11:30:53 +0000 (12:30 +0100)
commitc8161fda6409d459aeabd8db6128f5ca5d09e129
tree9803531665f3914bd1d04448375e5c6b0c312ca0
parent77512c0155e2397f2e45e6d8053e95029ea4950d
Fix repeat-mode to keep the same map symbol for repeat-continue

* lisp/repeat.el (repeat-get-map-sym): New function
refactored from 'repeat-get-map'.
(repeat-get-map): Move continue-related code to 'repeat-get-map-sym'.
(repeat-pre-hook): Use 'repeat-get-map-sym' and 'repeat-get-map'.
Set 'repeat-map' to 'map-sym'.
(repeat-post-hook): Use 'repeat-get-map-sym'.

* test/lisp/repeat-tests.el (repeat-tests-continue-another):
Improve to invoke double key 'C-M-o C-M-o' that should not switch
between maps (bug#74140).

(cherry picked from commit 0bd12f560b0b288e6c7717bf2e0f664c17d07619)
lisp/repeat.el
test/lisp/repeat-tests.el