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: martin rudalics
Subject: bug#33871: 27.0.50; Revert Dired window saved in window configuration
Date: Fri, 28 Dec 2018 09:34:30 +0100

> So the revert function doesn't use markers?  Maybe then
> set-window-configuration should not use markers too?

'dired-revert' is spcecial.  There's nothing we can conclude from it.

>>> Here is when the upper window is selected, but still it moves to (point-max)
>>> in non-selected window:
>>>
>>> (progn (dired "/tmp")
>>>          (dired-other-window "/tmp") (other-window 1)
>>>          (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)))
>>
>> In every non-selected window.  Try with as many windows as you want.
>> Only the selected window is handled separately.
>
> A bug?

As I suggested earlier we can use the position of the buffer's point
in every window regardless of whether it currently shows the buffer or
we later switch to the buffer in it.  But this is not what we usually
want when using multiple windows: We usually want them to show
different portions of the same buffer.

martin





reply via email to

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