bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#33871: 27.0.50; Revert Dired window saved in window configuration


From: Lars Ingebrigtsen
Subject: bug#33871: 27.0.50; Revert Dired window saved in window configuration
Date: Sat, 12 Feb 2022 09:45:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> Try to eval in emacs -Q in *scratch*:
>
> (progn (dired "/tmp") (dired-next-line 1)
>        (split-window) (other-window 1)
>        (dired "/tmp") (dired-next-line 2)
>        (let ((w-c (current-window-configuration))
>            (p-m (point-marker)))
>        (view-emacs-todo) (delete-other-windows)
>        (with-current-buffer (get-buffer "tmp")
>          (revert-buffer))
>        (set-window-configuration w-c)
>        (goto-char p-m)))
>
> Result:
> - point in the selected Dired window moves to point-min
> - point in the non-selected Dired window moves to point-max

I tried this in Emacs 29, and point was point-min in both windows.  But
I'm not sure where point should end up after this code, really 😀, so is
this working as expected now?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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