[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-f
From: |
Lars Ingebrigtsen |
Subject: |
bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") |
Date: |
Sun, 14 Nov 2021 07:33:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
"Feng Shu" <tumashu@163.com> writes:
> (setq tab-line-format "xxx")
> (global-tab-line-mode 1)
>
> value "xxx" will lost.
Yes, tab-line-mode resets the variable unconditionally:
(define-minor-mode tab-line-mode
"Toggle display of tab line in the windows displaying the current buffer."
:lighter nil
(setq tab-line-format (when tab-line-mode '(:eval (tab-line-format)))))
Perhaps that should be done only when the variable's value is nil?
(I've added Juri to the CCs.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no