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

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

[nongnu] elpa/mastodon 30b02296ca 48/63: fix where we leave point on (un


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 30b02296ca 48/63: fix where we leave point on (un)folding
Date: Sun, 4 Aug 2024 04:00:43 -0400 (EDT)

branch: elpa/mastodon
commit 30b02296caffeb2fb95ccb26f7fed31c4961f358
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>

    fix where we leave point on (un)folding
---
 lisp/mastodon-tl.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a357146cc4..651427aa84 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1605,10 +1605,11 @@ Folding decided by `mastodon-tl--fold-toots-at-length'."
             (delete-char 1) ;; prevent newlines accumulating
             (mastodon-tl--toot toot nil nil nil
                                (when (not fold) :unfolded)))
-          (cond ((or fold byline)
-                 ;; if folding, or if point was at byline already:
-                 ;; FIXME: ideally we could goto last-point if folding but
-                 ;; point was not in now hidden area)
+          (cond ((or byline
+                     (and fold
+                          ;; if point was in area now folded:
+                          (> last-point
+                             (+ beg mastodon-tl--fold-toots-at-length))))
                  (mastodon-tl--goto-next-item))
                 (t
                  (goto-char last-point)



reply via email to

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