GNU bug report logs -
#33871
27.0.50; Revert Dired window saved in window configuration
Previous Next
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
View this message in rfc822 format
>> Avoiding select-window removed simplicity and now requires
>> adding more handling and more testing. But finally
>> everything works correctly. Please review the new patch:
>
> Can you please provide me with a complete scenario the old code got
> wrong? I'm rather confused by the number of different bugs we've been
> trying to solve here.
There are two scenarios that this patch will fix:
1. switching tabs with the same reverted Dired buffer
For example,
a. create two windows with the same Dired buffer (e.g. split-window)
b. clone the tab with 'C-x t n'
c. revert Dired buffer with 'g'
d. switch back to the previous tab
e. observe that point in the non-selected Dired window
relocates to the top of the buffer
f. in Emacs 30 point is relocated also in the selected window
2. second scenario for file buffers:
a. visit a file buffer
b. clone the tab with 'C-x t n'
c. edit the same file buffer before the previous point
d. save the desktop (that turns markers into integers)
e. restart Emacs and load the desktop
f. optionally edit the same buffer again
g. switch back to the previous tab
h. due to integer positions point is restored in a random place
The patch uses the context functions to restore the right position.
> IIUC the original Bug#33871 is still unsolved.
The proposed patch will close bug#33871.
> Bug#33532 as well.
Bug#33532 could be closed as well due to new context functions.
> What about Bug#68235 and Bug#69093?
Bug#68235 is closed, but the patch will solve the issue
mentioned in https://debbugs.gnu.org/68235#79
starting with the words:
"BTW, there is another problem when the same buffer is displayed
in two tabs/window-configurations."
Bug#69093 is completely fixed.
> And Bug#12253?
Bug#12253 is unrelated, but thanks for reminder,
it should be addressed later as well.
This bug report was last modified 1 year and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.