diff options
Diffstat (limited to 'lisp/chistory.el')
-rw-r--r-- | lisp/chistory.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/chistory.el b/lisp/chistory.el index 6c5eaba8b72..a32720a40ce 100644 --- a/lisp/chistory.el +++ b/lisp/chistory.el @@ -145,10 +145,9 @@ The buffer is left in Command History mode." :group 'chistory) (defvar command-history-map nil) -(if command-history-map - nil - (setq command-history-map - (nconc (make-sparse-keymap) shared-lisp-mode-map)) +(unless command-history-map + (setq command-history-map (make-sparse-keymap)) + (set-keymap-parent command-history-map lisp-mode-shared-map) (suppress-keymap command-history-map) (define-key command-history-map "x" 'command-history-repeat) (define-key command-history-map "\n" 'next-line) |