aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2006-02-10 00:02:47 +0000
committerKim F. Storm <[email protected]>2006-02-10 00:02:47 +0000
commitcf25c6476761b8ec118957f773c2050560803c07 (patch)
tree22c10229b36b2b55ce773e828047e3f35b884b6e /lisp
parenta7f96a358b12d90b44fa11ac65caf24fd164ad6d (diff)
(substitute-key-definition-key): Pass t for NOERROR to
indirect-function instead of using condition-case.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 4a0db9633b..5abecd3531 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -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.