GNU bug report logs -
#58866
tab-line tab order is not preserved by desktop when customizing tab-line-tabs-function
Previous Next
Reported by: João Guerra <joca.bt <at> gmail.com>
Date: Sat, 29 Oct 2022 13:08:02 UTC
Severity: normal
Tags: notabug
Fixed in version 29.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
desktop is restoring the tab-line tab order on application reload when
using the default tab-line-tabs-function. When using a custom
tab-line-tabs-function the order is not being preserved. (I suspect it
could be due to how I want my tabs to behave.)
Example:
(let ((old-tabs nil))
(defun tl-tabs ()
(let ((new-tabs (seq-filter (lambda (buffer)
(or (eq buffer (current-buffer))
(buffer-file-name buffer)))
(buffer-list))))
(setq old-tabs (append (seq-intersection old-tabs new-tabs)
(seq-difference new-tabs old-tabs))))))
(setq tab-line-tabs-function #'tl-tabs)
This makes the tab-line show all file visiting buffers in all windows
+ the current window buffer, preserving their order.
Is desktop supposed to preserve the tab order for user customizations?
This bug report was last modified 2 years and 263 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.