summaryrefslogtreecommitdiff
path: root/lisp/hexl.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/hexl.el')
-rw-r--r--lisp/hexl.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el
index 1f65ca8309e..8883338a2e0 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -866,12 +866,12 @@ Customize the variable `hexl-follow-ascii' to disable this feature."
(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)