]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix beacon--movement-> simplification (69843d3)
authorTassilo Horn <tsdh@gnu.org>
Wed, 21 Oct 2015 08:25:36 +0000 (10:25 +0200)
committerTassilo Horn <tsdh@gnu.org>
Wed, 21 Oct 2015 08:25:36 +0000 (10:25 +0200)
beacon.el

index 777e809985bf90754e8aedb908b345b1e7e2ccd9..800c95858d7d45e0c5fe7d707fb85bf1ea9e24db 100644 (file)
--- a/beacon.el
+++ b/beacon.el
@@ -279,10 +279,11 @@ If DELTA is nil, return nil."
        ;; lines. `count-screen-lines' is too slow if the movement had
        ;; thousands of lines.
        (save-excursion
-         (goto-char (min beacon--previous-place (point)))
-         (vertical-motion delta)
-         (> (max (point) beacon--previous-place)
-            (line-beginning-position)))))
+         (let ((p (point)))
+           (goto-char (min beacon--previous-place p))
+           (vertical-motion delta)
+           (> (max p beacon--previous-place)
+              (line-beginning-position))))))
 
 (defun beacon--maybe-push-mark ()
   "Push mark if it seems to be safe."