unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23621: 25.1.50; Buffer in >1 window; winner-undo recover window point
@ 2016-05-26 15:37 Tino Calancha
       [not found] ` <handler.23621.B.146427689721104.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Tino Calancha @ 2016-05-26 15:37 UTC (permalink / raw)
  To: 23621


For users editing same buffer in differente windows
it may be useful if `winner-undo' could restaure
also the window point from each window.

;; visit same file in 2 windows
./emacs -Q -mm -eval '(progn
                         (find-file-read-only "../src/window.c")
                         (winner-mode 1)
                         (goto-char 1000)
                         (split-window-right)
                         (other-window 1)
                         (goto-char 30500))'

M-! ls ~ RET ; C-x 0 ;; C-x 1 ;;; C-x b
C-c <left>

;; `window-point' return 30500 value for both windows.


;; You may want to preserve > 2 buffr positions.
;; Following example visits different positions of the same
;; buffer in 4 windows.
./emacs -Q -mm -eval '(progn
                         (find-file-read-only "../src/window.c")
                         (winner-mode 1)
                         (goto-char 1000)
                         (split-window-right)
                         (windmove-right 1)
                         (goto-char 30500)

                         (split-window-below)
                         (windmove-down 1)
                         (goto-char 50000)

                         (windmove-left 1)
                         (split-window-below)
                         (windmove-down 1)
                         (goto-char 250000))'

;; As before `window-point' is not preserved for all windows.


In GNU Emacs 25.1.50.3 (x86_64-pc-linux-gnu, GTK+ Version 2.24.30)
  of 2016-05-26 built on calancha-pc
Repository revision: 16be3e90545972dec16014253a843229d5bdf388





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-07  2:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 15:37 bug#23621: 25.1.50; Buffer in >1 window; winner-undo recover window point Tino Calancha
     [not found] ` <handler.23621.B.146427689721104.ack@debbugs.gnu.org>
2016-05-26 16:40   ` bug#23621: PATCH (25.1.50; Buffer in >1 window; winner-undo recover window point) Tino Calancha
2019-06-25 13:44     ` Lars Ingebrigtsen
2020-04-24  1:45     ` Michael Heerdegen
2020-10-01  2:52       ` Lars Ingebrigtsen
2020-10-01 22:40         ` Michael Heerdegen
2021-04-18 15:01         ` martin rudalics
2021-04-25 17:47           ` Lars Ingebrigtsen
2023-06-07  2:10     ` bug#23621: 25.1.50; Buffer in >1 window; winner-undo recover window point Michael Heerdegen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).