From: Andreas Schwab Date: Sun, 12 Jan 2003 20:49:14 +0000 (+0000) Subject: (decipher-mode-map): Use command remapping instead of X-Git-Tag: ttn-vms-21-2-B4~11721 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ed7472c127a2a59aaaac4fe789cecbf6bc1f502;p=emacs.git (decipher-mode-map): Use command remapping instead of substitute-key-definition. --- diff --git a/lisp/play/decipher.el b/lisp/play/decipher.el index c8c9dbb486f..4edbdbcb1a9 100644 --- a/lisp/play/decipher.el +++ b/lisp/play/decipher.el @@ -1,6 +1,6 @@ ;;; decipher.el --- cryptanalyze monoalphabetic substitution ciphers ;; -;; Copyright (C) 1995, 1996 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1996, 2003 Free Software Foundation, Inc. ;; ;; Author: Christopher J. Madsen ;; Keywords: games @@ -170,10 +170,8 @@ in your `.emacs' file.") (define-key decipher-mode-map "R" 'decipher-restore-checkpoint) (define-key decipher-mode-map "U" 'decipher-undo) (define-key decipher-mode-map " " 'decipher-keypress) - (substitute-key-definition 'undo 'decipher-undo - decipher-mode-map global-map) - (substitute-key-definition 'advertised-undo 'decipher-undo - decipher-mode-map global-map) + (define-key decipher-mode-map [remap undo] 'decipher-undo) + (define-key decipher-mode-map [remap advertised-undo] 'decipher-undo) (let ((key ?a)) (while (<= key ?z) (define-key decipher-mode-map (vector key) 'decipher-keypress)