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

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

[elpa] externals/lentic 580c5b315d 011/333: Clone point now operates on


From: ELPA Syncer
Subject: [elpa] externals/lentic 580c5b315d 011/333: Clone point now operates on buffers with no visible windows also.
Date: Tue, 27 Feb 2024 12:59:52 -0500 (EST)

branch: externals/lentic
commit 580c5b315d7100945e6e2ad223425cf16a9f310b
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    Clone point now operates on buffers with no visible windows also.
---
 linked-buffer.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/linked-buffer.el b/linked-buffer.el
index 778b1dbcb9..455119c157 100644
--- a/linked-buffer.el
+++ b/linked-buffer.el
@@ -340,6 +340,13 @@ the :location value in `linked-buffer-transforms' or
                    (window-start
                     (get-buffer-window from))
                    from to)))
+    ;; clone point in buffer important when the buffer is NOT visible in a
+    ;; window at all
+    (with-current-buffer
+        to (goto-char from-point))
+    ;; now clone point in all the windows that are showing the buffer
+    ;; and set the start of the window which is a reasonable attempt to show
+    ;; the same thing.
     (mapc
      (lambda (window)
        (with-selected-window window



reply via email to

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