]> code.delx.au - gnu-emacs-elpa/commitdiff
Merge commit 'eeac41976bc7b1aa5e732fb476d24ab4c2890712'
authorArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 21 Oct 2015 10:49:01 +0000 (11:49 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 21 Oct 2015 10:49:01 +0000 (11:49 +0100)
packages/beacon/beacon.el

index 777e809985bf90754e8aedb908b345b1e7e2ccd9..800c95858d7d45e0c5fe7d707fb85bf1ea9e24db 100644 (file)
@@ -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."