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

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

bug#71466: 30.0.50; Buffer-menu-group-by non-nil resets point when Buffe


From: Dmitry Gutov
Subject: bug#71466: 30.0.50; Buffer-menu-group-by non-nil resets point when Buffer List is reverted
Date: Mon, 17 Jun 2024 15:27:45 +0300
User-agent: Mozilla Thunderbird

On 17/06/2024 10:40, Eshel Yaron wrote:
But this will not handle modes that don't use tabulated-list.
For example, reverting an xref buffer with outlines now restores
visibility of outlines, but doesn't restore point.  OTOH, maybe it's
not responsibility of outline-minor-mode to restore point when it's
not on a heading line.
For xref I propose a separate patch that keeps point on the same line
after reverting the xref buffer:
LGTM, but FWIW the situation with xref-revert-buffer is not ideal IMO:
it might be cleaner to leave 'g' bound to the usual revert-buffer and
set revert-buffer-function to (a slightly modified) xref-revert-buffer.
That way xref-revert-buffer wouldn't need to duplicate generic parts of
revert-buffer, such as running revert-buffer-restore-functions.  WDYT?

I'm okay with that.





reply via email to

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