]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix landmark, broken since Emacs 23.1
authorGlenn Morris <rgm@gnu.org>
Sat, 21 Jun 2014 21:21:46 +0000 (14:21 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 21 Jun 2014 21:21:46 +0000 (14:21 -0700)
* play/landmark.el (landmark-move-down, landmark-move-up):
Fix 2007-10-20 change - preserve horizontal position.

lisp/ChangeLog
lisp/play/landmark.el

index 3cd4b070298db6f410db98b4526e8177a31a3f25..88a85c3bda6a7801e682d8d274076a465b74dcb5 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-21  Glenn Morris  <rgm@gnu.org>
+
+       * play/landmark.el (landmark-move-down, landmark-move-up):
+       Fix 2007-10-20 change - preserve horizontal position.
+
 2014-06-21  Fabián Ezequiel Gallina  <fgallina@gnu.org>
 
        Fix completion retrieval parsing (bug#17209).
index 5c516e70f9901254d3057c1420a3eace161e142c..8025f14b28e7a7c3824a21f7fa1c3fd5f316f898 100644 (file)
@@ -1040,13 +1040,17 @@ mouse-1: get robot moving, mouse-2: play on this square")))
   "Move point down one row on the Landmark board."
   (interactive)
   (if (< (landmark-point-y) landmark-board-height)
-      (forward-line 1)));;; landmark-square-height)))
+      (let ((col (current-column)))
+       (forward-line 1) ;;; landmark-square-height
+       (move-to-column col))))
 
 (defun landmark-move-up ()
   "Move point up one row on the Landmark board."
   (interactive)
   (if (> (landmark-point-y) 1)
-      (forward-line (- landmark-square-height))))
+      (let ((col (current-column)))
+       (forward-line (- landmark-square-height))
+       (move-to-column col))))
 
 (defun landmark-move-ne ()
   "Move point North East on the Landmark board."