diff options
| author | Andreas Schwab | 2003-01-12 20:49:14 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2003-01-12 20:49:14 +0000 |
| commit | 3ed7472c127a2a59aaaac4fe789cecbf6bc1f502 (patch) | |
| tree | 7f443eb37e7ecb88af21210b9fdca08c4e12dc45 | |
| parent | 6b8236923e39e8f5974fe92886a2e4bbfd59dae9 (diff) | |
| download | emacs-3ed7472c127a2a59aaaac4fe789cecbf6bc1f502.tar.gz emacs-3ed7472c127a2a59aaaac4fe789cecbf6bc1f502.zip | |
(decipher-mode-map): Use command remapping instead of
substitute-key-definition.
| -rw-r--r-- | lisp/play/decipher.el | 8 |
1 files changed, 3 insertions, 5 deletions
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 @@ | |||
| 1 | ;;; decipher.el --- cryptanalyze monoalphabetic substitution ciphers | 1 | ;;; decipher.el --- cryptanalyze monoalphabetic substitution ciphers |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 1995, 1996 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1995, 1996, 2003 Free Software Foundation, Inc. |
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Christopher J. Madsen <chris_madsen@geocities.com> | 5 | ;; Author: Christopher J. Madsen <chris_madsen@geocities.com> |
| 6 | ;; Keywords: games | 6 | ;; Keywords: games |
| @@ -170,10 +170,8 @@ in your `.emacs' file.") | |||
| 170 | (define-key decipher-mode-map "R" 'decipher-restore-checkpoint) | 170 | (define-key decipher-mode-map "R" 'decipher-restore-checkpoint) |
| 171 | (define-key decipher-mode-map "U" 'decipher-undo) | 171 | (define-key decipher-mode-map "U" 'decipher-undo) |
| 172 | (define-key decipher-mode-map " " 'decipher-keypress) | 172 | (define-key decipher-mode-map " " 'decipher-keypress) |
| 173 | (substitute-key-definition 'undo 'decipher-undo | 173 | (define-key decipher-mode-map [remap undo] 'decipher-undo) |
| 174 | decipher-mode-map global-map) | 174 | (define-key decipher-mode-map [remap advertised-undo] 'decipher-undo) |
| 175 | (substitute-key-definition 'advertised-undo 'decipher-undo | ||
| 176 | decipher-mode-map global-map) | ||
| 177 | (let ((key ?a)) | 175 | (let ((key ?a)) |
| 178 | (while (<= key ?z) | 176 | (while (<= key ?z) |
| 179 | (define-key decipher-mode-map (vector key) 'decipher-keypress) | 177 | (define-key decipher-mode-map (vector key) 'decipher-keypress) |