Mercurial > emacs
changeset 49166:05ad80e1c6d2
(archive-mode-map): Use command remapping instead of substitute-key-definition.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sun, 12 Jan 2003 20:45:19 +0000 |
parents | ab4091602937 |
children | f8c302d7433b |
files | lisp/arc-mode.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/arc-mode.el Sun Jan 12 20:24:57 2003 +0000 +++ b/lisp/arc-mode.el Sun Jan 12 20:45:19 2003 +0000 @@ -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 <terra@diku.dk> ;; Keywords: archives msdog editing major-mode @@ -618,8 +618,8 @@ ;; 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)