summaryrefslogtreecommitdiff
path: root/lisp/chistory.el
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2000-10-10 17:27:38 +0000
committerSam Steingold <sds@gnu.org>2000-10-10 17:27:38 +0000
commit690ec64977401b78094df77c5e28ce91a4a5c9a8 (patch)
treec99536fbfb59943f668a0bf97d05de0a598adbb1 /lisp/chistory.el
parent80f9f3db875c966d9c311ff5416085242d331508 (diff)
downloademacs-690ec64977401b78094df77c5e28ce91a4a5c9a8.tar.gz
use lisp-mode-shared-map instead of shared-lisp-mode-map
Diffstat (limited to 'lisp/chistory.el')
-rw-r--r--lisp/chistory.el7
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)