GNU bug report logs -
#71466
30.0.50; Buffer-menu-group-by non-nil resets point when Buffer List is reverted
Previous Next
Reported by: Eshel Yaron <me <at> eshelyaron.com>
Date: Mon, 10 Jun 2024 10:26:02 UTC
Severity: normal
Found in version 30.0.50
Fixed in version 30.1
Done: Eshel Yaron <me <at> eshelyaron.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>> And it makes sense to provide this feature to the users of
>>> xref-revert-buffer, so I don't see why not.
>> All things being equal, leaving the old names of the functions and
>> commands should be preferred. That's all I'm saying. It's a minor
>> issue, but the cost of staying more compatible is also minor.
>
> It might be important for the case when somebody has rebound 'g' in Xref
> buffers to some other letter - then they reference xref-revert-buffer by
> name in their init script.
>
> Having them end up with a subpar version of it (and perhaps not notice it
> either) feels like an unfortunate outcome.
So what is the decision? Maybe better to keep xref-revert-buffer
as a wrapper around the new function xref--revert-buffer?
(defun xref-revert-buffer ()
(let (restore-functions)
(when (boundp 'revert-buffer-restore-functions)
(run-hook-wrapped 'revert-buffer-restore-functions
(lambda (f) (push (funcall f) restore-functions) nil)))
(prog1 (xref--revert-buffer)
(mapc #'funcall (delq nil restore-functions)))))
This bug report was last modified 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.