aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2003-01-12 20:50:11 +0000
committerAndreas Schwab2003-01-12 20:50:11 +0000
commit65877b9c169cad68fff19079d0a2602393ebcba3 (patch)
tree445148689f34e50c644cc9ebcc665d2af40845c0
parent4cbb3189423d7cf59f9e2917b48728254e34be8c (diff)
downloademacs-65877b9c169cad68fff19079d0a2602393ebcba3.tar.gz
emacs-65877b9c169cad68fff19079d0a2602393ebcba3.zip
(lm-mode-map): Use command remapping instead of
substitute-key-definition.
-rw-r--r--lisp/play/landmark.el20
1 files changed, 7 insertions, 13 deletions
diff --git a/lisp/play/landmark.el b/lisp/play/landmark.el
index 1b2701ea18c..b4779a4e8ab 100644
--- a/lisp/play/landmark.el
+++ b/lisp/play/landmark.el
@@ -1,6 +1,6 @@
1;;; landmark.el --- neural-network robot that learns landmarks 1;;; landmark.el --- neural-network robot that learns landmarks
2 2
3;; Copyright (c) 1996, 1997, 2000 Free Software Foundation, Inc. 3;; Copyright (c) 1996, 1997, 2000, 2003 Free Software Foundation, Inc.
4 4
5;; Author: Terrence Brannon (was: <brannon@rana.usc.edu>) 5;; Author: Terrence Brannon (was: <brannon@rana.usc.edu>)
6;; Created: December 16, 1996 - first release to usenet 6;; Created: December 16, 1996 - first release to usenet
@@ -200,18 +200,12 @@
200 (define-key lm-mode-map [mouse-2] 'lm-mouse-play) 200 (define-key lm-mode-map [mouse-2] 'lm-mouse-play)
201 (define-key lm-mode-map [drag-mouse-2] 'lm-mouse-play) 201 (define-key lm-mode-map [drag-mouse-2] 'lm-mouse-play)
202 202
203 (substitute-key-definition 'previous-line 'lm-move-up 203 (define-key lm-mode-map [remap previous-line] 'lm-move-up)
204 lm-mode-map (current-global-map)) 204 (define-key lm-mode-map [remap next-line] 'lm-move-down)
205 (substitute-key-definition 'next-line 'lm-move-down 205 (define-key lm-mode-map [remap beginning-of-line] 'lm-beginning-of-line)
206 lm-mode-map (current-global-map)) 206 (define-key lm-mode-map [remap end-of-line] 'lm-end-of-line)
207 (substitute-key-definition 'beginning-of-line 'lm-beginning-of-line 207 (define-key lm-mode-map [remap undo] 'lm-human-takes-back)
208 lm-mode-map (current-global-map)) 208 (define-key lm-mode-map [remap advertised-undo] 'lm-human-takes-back))
209 (substitute-key-definition 'end-of-line 'lm-end-of-line
210 lm-mode-map (current-global-map))
211 (substitute-key-definition 'undo 'lm-human-takes-back
212 lm-mode-map (current-global-map))
213 (substitute-key-definition 'advertised-undo 'lm-human-takes-back
214 lm-mode-map (current-global-map)))
215 209
216(defvar lm-emacs-won () 210(defvar lm-emacs-won ()
217 "*For making font-lock use the winner's face for the line.") 211 "*For making font-lock use the winner's face for the line.")