mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
(substitute-key-definition-key): Pass t for NOERROR to
indirect-function instead of using condition-case.
This commit is contained in:
parent
a7f96a358b
commit
cf25c64767
@ -607,8 +607,7 @@ For most uses, it is simpler and safer to use command remappping like this:
|
||||
(nconc (nreverse skipped) newdef)))
|
||||
;; Look past a symbol that names a keymap.
|
||||
(setq inner-def
|
||||
(and defn
|
||||
(condition-case nil (indirect-function defn) (error defn))))
|
||||
(or (indirect-function defn t) defn))
|
||||
;; For nested keymaps, we use `inner-def' rather than `defn' so as to
|
||||
;; avoid autoloading a keymap. This is mostly done to preserve the
|
||||
;; original non-autoloading behavior of pre-map-keymap times.
|
||||
|
Loading…
Reference in New Issue
Block a user