GNU bug report logs - #51830
29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx")

Previous Next

Package: emacs;

Reported by: "Feng Shu" <tumashu <at> 163.com>

Date: Sun, 14 Nov 2021 06:06:01 UTC

Severity: normal

Tags: moreinfo

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 #8 received at 51830 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Feng Shu" <tumashu <at> 163.com>
Cc: 51830 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
Subject: Re: 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
"Feng Shu" <tumashu <at> 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




This bug report was last modified 3 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.