GNU bug report logs - #33871
27.0.50; Revert Dired window saved in window configuration

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 25 Dec 2018 21:43:01 UTC

Severity: minor

Found in version 27.0.50

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 33871 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: 33871 <at> debbugs.gnu.org
Subject: Re: 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




This bug report was last modified 1 year and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.