From a70f1658c82cab521707ddd33260a815e54c558c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 12 Jan 2003 20:48:16 +0000 Subject: [PATCH] (hexl-mode-map): Use command remapping instead of substitute-key-definition. --- lisp/hexl.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/hexl.el b/lisp/hexl.el index aedc13e937a..c910ebf9759 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el @@ -1,6 +1,6 @@ ;;; hexl.el --- edit a file in a hex dump format using the hexl filter -;; Copyright (C) 1989, 1994, 1998, 2001, 2002 Free Software Foundation, Inc. +;; Copyright (C) 1989, 1994, 1998, 2001, 2002, 2003 Free Software Foundation, Inc. ;; Author: Keith Gabryelski ;; Maintainer: FSF @@ -864,8 +864,7 @@ Customize the variable `hexl-follow-ascii' to disable this feature." ;; 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 (current-global-map)) + (define-key hexl-mode-map [remap 'self-insert-command] 'hexl-self-insert-command) (define-key hexl-mode-map [left] 'hexl-backward-char) (define-key hexl-mode-map [right] 'hexl-forward-char) -- 2.11.4.GIT