Commit cf25c647 authored by Kim F. Storm's avatar Kim F. Storm

(substitute-key-definition-key): Pass t for NOERROR to

indirect-function instead of using condition-case.
parent a7f96a35
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment