]> git.eshelyaron.com Git - emacs.git/commitdiff
(substitute-key-definition-key): Pass t for NOERROR to
authorKim F. Storm <storm@cua.dk>
Fri, 10 Feb 2006 00:02:47 +0000 (00:02 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 10 Feb 2006 00:02:47 +0000 (00:02 +0000)
indirect-function instead of using condition-case.

lisp/subr.el

index 4a0db9633bd8479847182728a7ba4f15950820ea..5abecd35310b7b142d8f460e04569de5d999d018 100644 (file)
@@ -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.