# HG changeset patch # User Andreas Schwab # Date 1042404496 0 # Node ID fffd84e47253c51989505556f9772088b1c4f1ba # Parent 755b96b5f3ca03f727791cbe7679790056b32a15 (hexl-mode-map): Use command remapping instead of substitute-key-definition. diff -r 755b96b5f3ca -r fffd84e47253 lisp/hexl.el --- a/lisp/hexl.el Sun Jan 12 20:47:48 2003 +0000 +++ b/lisp/hexl.el Sun Jan 12 20:48:16 2003 +0000 @@ -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 @@ ;; 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)