changeset 39384:bdd2e9a9bb71

(hexl-mode-map): Fix the change of 2001-08-23: use make-keymap instead of copy-keymap, since copying the global keymap messes up the menu bar.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 22 Sep 2001 17:47:47 +0000
parents 581990b14f94
children e651eb480e16
files lisp/hexl.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/hexl.el	Sat Sep 22 15:10:59 2001 +0000
+++ b/lisp/hexl.el	Sat Sep 22 17:47:47 2001 +0000
@@ -866,12 +866,12 @@
 
 (if hexl-mode-map
     nil
-  (setq hexl-mode-map (copy-keymap (current-global-map)))
+  (setq hexl-mode-map (make-keymap))
   ;; Make all self-inserting keys go through hexl-self-insert-command,
   ;; because we need to convert them to unibyte characters before
   ;; inserting them into the buffer.
   (substitute-key-definition 'self-insert-command 'hexl-self-insert-command
-			     hexl-mode-map)
+			     hexl-mode-map (current-global-map))
 
   (define-key hexl-mode-map [left] 'hexl-backward-char)
   (define-key hexl-mode-map [right] 'hexl-forward-char)