Fix handling of changed prefix keys in tutorial
* lisp/tutorial.el (tutorial--find-changed-keys): Use keymapp to detect prefix definitions rather than hard-coding them. A notable omission from the hard-coded list was mode-specific-command-prefix, whose subcommands are often rebound (bug#40725).
This commit is contained in:
parent
e7d64300aa
commit
a7c9695835
1 changed files with 3 additions and 5 deletions
|
|
@ -423,11 +423,9 @@ where
|
|||
;; Handle prefix definitions specially
|
||||
;; so that a mode that rebinds some subcommands
|
||||
;; won't make it appear that the whole prefix is gone.
|
||||
(key-fun (if (eq def-fun 'ESC-prefix)
|
||||
(lookup-key global-map [27])
|
||||
(if (eq def-fun 'Control-X-prefix)
|
||||
(lookup-key global-map [24])
|
||||
(key-binding key))))
|
||||
(key-fun (if (keymapp def-fun)
|
||||
(lookup-key global-map key)
|
||||
(key-binding key)))
|
||||
(where (where-is-internal (if rem-fun rem-fun def-fun)))
|
||||
cwhere)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue