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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58866 in the body.
You can then email your comments to 58866 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58866
; Package
emacs
.
(Sat, 29 Oct 2022 13:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
João Guerra <joca.bt <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 29 Oct 2022 13:08:02 GMT)
Full text and
rfc822 format available.
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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58866
; Package
emacs
.
(Sat, 29 Oct 2022 17:58:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 58866 <at> debbugs.gnu.org (full text, mbox):
tags 58866 notabug
close 58866 29.0.50
thanks
> 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.)
>
> Is desktop supposed to preserve the tab order for user customizations?
Desktop preserves the window buffer order, so the order for the default
tab-line-tabs-function is preserved in consequence.
Since you customized tab-line-tabs-function to another order
in 'old-tabs', you need also to save your variable 'old-tabs' in
your desktop. Please look in desktop.el what hooks can you use
to serialize your variable with buffer objects to save it with
buffer names as strings.
Added tag(s) notabug.
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Sat, 29 Oct 2022 17:58:03 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 29.0.50, send any further explanations to
58866 <at> debbugs.gnu.org and João Guerra <joca.bt <at> gmail.com>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Sat, 29 Oct 2022 17:58:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 27 Nov 2022 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 262 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.