mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Delete useless conditional in describe-keymap
* lisp/help-fns.el (describe-keymap): Delete useless conditional. (Bug#65128)
This commit is contained in:
parent
594e03526b
commit
bbd69f1663
@ -2071,11 +2071,9 @@ keymap value."
|
|||||||
(if (symbolp keymap)
|
(if (symbolp keymap)
|
||||||
(error "Not a keymap variable: %S" keymap)
|
(error "Not a keymap variable: %S" keymap)
|
||||||
(error "Not a keymap")))
|
(error "Not a keymap")))
|
||||||
(let ((sym nil))
|
(let ((sym (cl-gentemp "KEYMAP OBJECT (no variable) ")))
|
||||||
(unless sym
|
(setq used-gentemp t)
|
||||||
(setq sym (cl-gentemp "KEYMAP OBJECT (no variable) "))
|
(set sym keymap)
|
||||||
(setq used-gentemp t)
|
|
||||||
(set sym keymap))
|
|
||||||
(setq keymap sym)))
|
(setq keymap sym)))
|
||||||
;; Follow aliasing.
|
;; Follow aliasing.
|
||||||
(setq keymap (or (ignore-errors (indirect-variable keymap)) keymap))
|
(setq keymap (or (ignore-errors (indirect-variable keymap)) keymap))
|
||||||
|
Loading…
Reference in New Issue
Block a user