emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/boxy d88b495 03/10: Go to first marker first, then cycl


From: ELPA Syncer
Subject: [elpa] externals/boxy d88b495 03/10: Go to first marker first, then cycle
Date: Fri, 15 Oct 2021 10:57:10 -0400 (EDT)

branch: externals/boxy
commit d88b495d023042ccfa735358ccd440c0ab30e662
Author: Tyler Grinn <tylergrinn@gmail.com>
Commit: Tyler Grinn <tylergrinn@gmail.com>

    Go to first marker first, then cycle
---
 boxy.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/boxy.el b/boxy.el
index 9087b52..cb0dcf0 100644
--- a/boxy.el
+++ b/boxy.el
@@ -1217,15 +1217,16 @@ If INCLUDE-ON-TOP is non-nil, also include height on 
top of box."
   (with-slots (markers) box
     (lambda ()
       (interactive)
-      (let ((first (car markers)))
-        (object-remove-from-list box :markers first)
-        (object-add-to-list box :markers first t))
       (let* ((marker (car markers))
              (buffer (marker-buffer marker))
              (pos (marker-position marker)))
         (save-selected-window
           (switch-to-buffer-other-window buffer)
-          (goto-char pos))))))
+          (goto-char pos)))
+      (let ((first (car markers)))
+        (object-remove-from-list box :markers first)
+        (object-add-to-list box :markers first t)))))
+
 
 (defun boxy-button-jump-to (box)
   "Jump to the first occurrence of a link for BOX in the same window."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]