branch: master commit eeac41976bc7b1aa5e732fb476d24ab4c2890712 Merge: b56ef78 eb59b59 Author: Artur Malabarba <malaba...@users.noreply.github.com> Commit: Artur Malabarba <malaba...@users.noreply.github.com>
Merge pull request #19 from tsdh/master Fix beacon--movement-> simplification (69843d3) --- beacon.el | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/beacon.el b/beacon.el index 777e809..800c958 100644 --- 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."