From: Kim F. Storm Date: Fri, 10 Feb 2006 00:02:47 +0000 (+0000) Subject: (substitute-key-definition-key): Pass t for NOERROR to X-Git-Tag: emacs-pretest-22.0.90~4248 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf25c6476761b8ec118957f773c2050560803c07;p=emacs.git (substitute-key-definition-key): Pass t for NOERROR to indirect-function instead of using condition-case. --- diff --git a/lisp/subr.el b/lisp/subr.el index 4a0db9633bd..5abecd35310 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.