GNU bug report logs -
#75935
tab-bar-select-tab buffer-list and buried-buffer-list bug
Previous Next
Reported by: Ship Mints <shipmints <at> gmail.com>
Date: Wed, 29 Jan 2025 21:03:01 UTC
Severity: normal
Fixed in version 31.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
[Message part 1 (text/plain, inline)]
Happy to submit a patch for this but first wanted to discuss it to make
sure there's agreement.
(defun tab-bar-select-tab (&optional tab-number)
...
(when wc-bl (set-frame-parameter nil 'buffer-list wc-bl))
(when wc-bbl (set-frame-parameter nil 'buried-buffer-list
wc-bbl))
What this skips is that if either the originating window-configuration
buffer-list or its twin is nil, that the frame's parameters are not
properly reset to nil.
This is a function that we've had to work around in an ELPA package by
advising tab-bar--tab to first clear these frame parameters before
tab-bar-select-tab goes to set them when selecting the specified tab. This
avoids the bug, but is annoying. This advice has been in place for three
years without issue.
The patch would eliminate the 'when' conditions.
What do you think?
-Stephane
[Message part 2 (text/html, inline)]
This bug report was last modified 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.