From: Andreas Schwab Date: Sun, 12 Jan 2003 20:45:19 +0000 (+0000) Subject: (archive-mode-map): Use command remapping instead of substitute-key-definition. X-Git-Tag: ttn-vms-21-2-B4~11727 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f3446bb2f92f2f25dcd696e66a5d56a0af83b7b0;p=emacs.git (archive-mode-map): Use command remapping instead of substitute-key-definition. --- diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 32cc3fb27c3..643ea6d5d39 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -1,6 +1,6 @@ ;;; arc-mode.el --- simple editing of archives -;; Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1997, 1998, 2003 Free Software Foundation, Inc. ;; Author: Morten Welinder ;; Keywords: archives msdog editing major-mode @@ -618,8 +618,8 @@ archive. ;; Not a nice "solution" but it'll have to do (define-key archive-mode-map "\C-xu" 'archive-undo) (define-key archive-mode-map "\C-_" 'archive-undo)) - (substitute-key-definition 'undo 'archive-undo - archive-mode-map global-map)) + (define-key archive-mode-map [remap advertised-undo] 'archive-undo) + (define-key archive-mode-map [remap undo] 'archive-undo)) (define-key archive-mode-map (if archive-lemacs 'button2 [mouse-2]) 'archive-mouse-extract)