From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 01:05:32 2021 Received: (at submit) by debbugs.gnu.org; 14 Nov 2021 06:05:32 +0000 Received: from localhost ([127.0.0.1]:48859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm8dw-0005KD-2F for submit@debbugs.gnu.org; Sun, 14 Nov 2021 01:05:32 -0500 Received: from lists.gnu.org ([209.51.188.17]:48752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm8ds-0005K2-Qu for submit@debbugs.gnu.org; Sun, 14 Nov 2021 01:05:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm8dp-0003Wh-WB for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 01:05:28 -0500 Received: from m12-13.163.com ([220.181.12.13]:56311) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mm8di-0004LC-PQ for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 01:05:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=tfabE 8KcWhYh+phPin0MhLWdRD2M7PHpBznth/nKYJU=; b=Wbf86CpvdxMoBN6aQAN5b vXrejmUaix+ui9OrgP/m58LXm2cvFzveX+IiLoXV33LQU0omkRFvuxI7NQl68qdP c9YFgdoOQLklJFfSnuikcDD82Q/rzXw/VLT1i+2U46N/t9S6O70cIWGULf7E7WTN j2DLhRM4EOOWm0h9P+OWe4= Received: from tumashu (unknown [49.88.37.140]) by smtp9 (Coremail) with SMTP id DcCowADHfQYXp5BhPw2SOA--.15365S2; Sun, 14 Nov 2021 14:05:13 +0800 (CST) From: "Feng Shu" To: bug-gnu-emacs@gnu.org Subject: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") Date: Sun, 14 Nov 2021 14:05:11 +0800 Message-ID: <87v90v6zmw.fsf@163.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CM-TRANSID: DcCowADHfQYXp5BhPw2SOA--.15365S2 X-Coremail-Antispam: 1Uf129KBjvJXoW3JryDZFW5JryUZw13XFW5Jrb_yoWfCr1Dpa yfWryFkFyFqFyIvF4kJw1IgFySva97A3WagFn8t3Z0ga1Dtw1jvw1Sy3WUZFy2kr15J3yD AF4DWrZ8CFyUGFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UsmRUUUUUU= X-Originating-IP: [49.88.37.140] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRRpL1GDuuKkcbAAAsv Received-SPF: pass client-ip=220.181.12.13; envelope-from=tumashu@163.com; helo=m12-13.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) (setq tab-line-format "xxx") (global-tab-line-mode 1) value "xxx" will lost. In GNU Emacs 29.0.50 (build 14, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-11-14 built on tumashu Repository revision: 370d4038c5a671d3b9e3a4d28d849948c1a96f53 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-native-compilation --with-xwidgets --with-modules' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: zh_CN.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Message Minor modes in effect: global-undo-tree-mode: t undo-tree-mode: t projectile-mode: t global-git-commit-mode: t mml-mode: t magit-auto-revert-mode: t emms-playing-time-display-mode: t emms-playing-time-mode: t yas-global-mode: t yas-minor-mode: t company-posframe-mode: t global-company-mode: t org-super-agenda-mode: t shell-dirtrack-mode: t pyim-isearch-mode: t vertico-mode: t savehist-mode: t global-tab-line-mode: t tab-line-mode: t global-so-long-mode: t electric-pair-mode: t recentf-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t auto-fill-function: yas--auto-fill transient-mark-mode: t abbrev-mode: t Load-path shadows: /home/feng/.emacs.d/elpa-29/transient-20211105.100/transient hides /home/feng/project/emacs/lisp/transient Features: (gnus-async gnus-bcklg gnus-ml hl-line utf-7 imap rfc2104 qp gnutls network-stream nsm pop3 epa-file nndraft nnmh nnml eh-gnus-common gnus-select-account eww xdg url-queue mm-url gnus-demon gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-cache gnus-sum shr kinsoku svg dom gnus-group gnus-undo eh-gnus gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader mailalias mailclient shadow mail-extr emacsbug sendmail cus-start mule-util vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs bug-reference misearch multi-isearch pyim-dhashcache async magit-extras cursor-sensor citre citre-peek citre-basic-tools citre-ctags emacs-helper eh-misc undo-tree xwidget image-mode exif projectile lisp-mnt grep ibuf-ext ibuffer ibuffer-loaddefs magit-bookmark magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit message yank-media rmc puny rfc822 mml mml-sec epa gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor server magit-mode transient edmacro magit-git magit-section magit-utils crm gitpatch aggressive-indent eh-emms emms-librefm-stream xml emms-librefm-scrobbler emms-playlist-limit emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-player-xine emms-player-mpd tq emms-lyrics emms-url emms-streams emms-show-all emms-tag-editor emms-tag-tracktag emms-mark emms-mode-line emms-info-tinytag emms-info-metaflac emms-info-opusinfo emms-info-ogginfo emms-info-mp3info emms-player-vlc emms-player-mpv emms-playing-time emms-player-mplayer emms-player-simple emms-browser sort emms-playlist-sort emms-last-played emms-volume emms-volume-sndioctl emms-volume-mixerctl emms-volume-pulse emms-volume-amixer emms-playlist-mode emms-source-playlist emms-source-file locate emms-cache emms-info-native bindat emms-info-exiftool emms-info emms-later-do emms-setup emms emms-compat epg rfc6068 epg-config el2org cnfonts cnfonts-ui cus-edit cus-load thingatpt yasnippet vterm face-remap compile color term disp-table ehelp vterm-module term/xterm xterm citre-config citre-lang-fileref citre-util citre-core citre-tag citre-core-tables citre-common eh-complete company-posframe company-keywords company-etags etags fileloop xref project company-gtags company-template company-dabbrev-code company-dabbrev company-files company-capf company eh-org org-super-agenda ts ht s org-habit ob-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell parse-time ls-lisp ob-org ob-plantuml ox-extra ox-md ox-org ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-element avl-tree generator org-protocol autorevert filenotify org-attach org-id org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date ol org-keys oc org-compat advice org-macs org-loaddefs format-spec find-func eh-functions eh-theme modus-vivendi-theme modus-operandi-theme modus-themes eh-basic cal-china-x cal-china lunar solar cal-dst holidays hol-loaddefs cal-menu calendar cal-loaddefs pyim-liberime liberime liberime-core pyim pyim-hacks pyim-probe pyim-cregexp pcase xr pyim-process pyim-cstring pyim-autoselector pyim-punctuation pyim-outcome pyim-indicator pyim-preview pyim-magic pyim-candidates pyim-codes pyim-imobjs pyim-pinyin pyim-pymap pyim-dcache pyim-dict derived pyim-page pyim-entered popup posframe pyim-scheme pyim-common dired-ranger ring dired-hacks-utils dash wdired dired dired-loaddefs vc vc-dispatcher consult-vertico consult kmacro orderless vertico savehist tab-line switch-window switch-window-mvborder switch-window-asciiart quail so-long elec-pair bookmark text-property-search pp recentf tree-widget wid-edit elpa-mirror finder-inf tex-site kotl-autoloads easy-mmode info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json map url-vars comp comp-cstr warnings rx cl-seq cl-macs cl-extra seq gv subr-x byte-opt bytecomp byte-compile cconv help-mode cl-loaddefs cl-lib china-util iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 965648 91089) (symbols 48 53999 79) (strings 32 288858 21235) (string-bytes 1 7954868) (vectors 16 103897) (vector-slots 8 13784573 90758) (floats 8 1287 697) (intervals 56 3070 546) (buffers 992 40)) -- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 01:33:49 2021 Received: (at 51830) by debbugs.gnu.org; 14 Nov 2021 06:33:49 +0000 Received: from localhost ([127.0.0.1]:48886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm95J-0008Se-5l for submit@debbugs.gnu.org; Sun, 14 Nov 2021 01:33:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm95G-0008SP-Vi for 51830@debbugs.gnu.org; Sun, 14 Nov 2021 01:33:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oAgeM7sjflFoemvsDwmA1XyLs7ul05Tehqp2T3PMqEw=; b=da18cxjwFMD4l3nS9r6DzcEE+7 MSbfps8WrgZb96tiLDU3KC7B+TYiSWRFZqj/JtMeZ151TZ/25uBWohhlN24K4UoY4TJwB/wOLCA4B 1El5dppoabhITrWM5HaGOBzjwTMgWY9nAu7nXMgx30S9xugsrpu9k329FOl5rGjhrxfs=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mm956-0001Ki-GW; Sun, 14 Nov 2021 07:33:39 +0100 From: Lars Ingebrigtsen To: "Feng Shu" Subject: Re: bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") References: <87v90v6zmw.fsf@163.com> X-Now-Playing: Madmadmad's _Two Synths, A Guitar (And) A Drum Machine_: "Hot Disco" Date: Sun, 14 Nov 2021 07:33:36 +0100 In-Reply-To: <87v90v6zmw.fsf@163.com> (Feng Shu's message of "Sun, 14 Nov 2021 14:05:11 +0800") Message-ID: <871r3jb60v.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Feng Shu" writes: > (setq tab-line-format "xxx") > (global-tab-line-mode 1) > > value "xxx" will lost. Yes, tab-line-mode resets the variable unconditionally: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51830 Cc: 51830@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Feng Shu" 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 01:33:52 2021 Received: (at control) by debbugs.gnu.org; 14 Nov 2021 06:33:52 +0000 Received: from localhost ([127.0.0.1]:48889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm95M-0008Sw-CM for submit@debbugs.gnu.org; Sun, 14 Nov 2021 01:33:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm95K-0008ST-9v for control@debbugs.gnu.org; Sun, 14 Nov 2021 01:33:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wKV88FLn1kCDBGLIktdSXsknIKF3ZA2Inw6uVJ1afN8=; b=MooCF1ppKTwU4JGD1LRx8ybnyN UkDfjnWOaZ52Iohy77T91k7U8vksTFGzSmOWoxSNSV0T2K5j5slhutEdWrD2iXHjv53j7RSGE+uhT LwRmeDAVkbemaRtaLIfsQEFXoarbUENSoavaTKaBNI0B1vAyzMUaDGuNy2pDwiWYvbmI=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mm95C-0001Kp-72 for control@debbugs.gnu.org; Sun, 14 Nov 2021 07:33:44 +0100 Date: Sun, 14 Nov 2021 07:33:41 +0100 Message-Id: <87zgq79rga.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51830 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 51830 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 51830 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 12:42:42 2021 Received: (at 51830) by debbugs.gnu.org; 14 Nov 2021 17:42:42 +0000 Received: from localhost ([127.0.0.1]:51532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmJWc-0000MS-4J for submit@debbugs.gnu.org; Sun, 14 Nov 2021 12:42:42 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:50601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmJWa-0000M1-W9 for 51830@debbugs.gnu.org; Sun, 14 Nov 2021 12:42:41 -0500 Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 951B620005; Sun, 14 Nov 2021 17:42:33 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") Organization: LINKOV.NET References: <87v90v6zmw.fsf@163.com> <871r3jb60v.fsf@gnus.org> Date: Sun, 14 Nov 2021 19:40:28 +0200 In-Reply-To: <871r3jb60v.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Nov 2021 07:33:36 +0100") Message-ID: <8635nyzldf.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51830 Cc: 51830@debbugs.gnu.org, Feng Shu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain >> (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? This needs also to keep the original value while disabling the mode. Do you think this should be installed in Emacs 28? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=tab-line-mode.patch diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 5affae7913..110c6e9696 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -893,7 +893,14 @@ tab-line-context-menu (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))))) + (let ((default-value '(:eval (tab-line-format)))) + (if tab-line-mode + ;; Preserve the existing tab-line set outside of this mode + (unless tab-line-format + (setq tab-line-format default-value)) + ;; Reset only values set by this mode + (when (equal tab-line-format default-value) + (setq tab-line-format nil))))) (defcustom tab-line-exclude-modes '(completion-list-mode) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 12:45:57 2021 Received: (at 51830) by debbugs.gnu.org; 14 Nov 2021 17:45:57 +0000 Received: from localhost ([127.0.0.1]:51543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmJZl-0000S2-3b for submit@debbugs.gnu.org; Sun, 14 Nov 2021 12:45:57 -0500 Received: from quimby.gnus.org ([95.216.78.240]:34638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmJZj-0000Rm-3Z for 51830@debbugs.gnu.org; Sun, 14 Nov 2021 12:45:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=a9rwMF2IM7nmGbVFNBmXtqFrzkl9KUP4zgKVjZXB8OM=; b=piDtLBowVUBN67VNNROuomt4KH +RySHFBjStcjuW2ZZVEWZSQCQ+eVB3jllGjBn/ZwZWo+VpS0rIIcJixY4RrpCNaV7SIljKyje8asl RjfUbcIg90wEv0Wkyy0T6XdtJBIRYw4HOTv+YL+fvSLHjq7KVPK10VIaRehZY4/dFTkQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmJZY-0005hH-0K; Sun, 14 Nov 2021 18:45:47 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") References: <87v90v6zmw.fsf@163.com> <871r3jb60v.fsf@gnus.org> <8635nyzldf.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXu3QKgkgFcVAGF egH///9tNUTkAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+ULDhEtCsBJHAUAAAGjSURBVDjLrZTblSMx CEQlO4FGJLCIBCzIP7ep0qPds9+jY//omgIK5FL+8DTJ6N/zr4xSPxOk5wPYazSLBe4zQcXHFhjz VhYDkLBKoCKKex7NsEuijxkx5D4T9O4T6ONeFComV3mAFceIhgpWHzzNVkyzGpkPqWREOAtyWVoL BCKiz8iM7PWWYrl9gqu80w4IBnQCtcout4moSYXlE8gIWV5B26dQzghI+ZFKyvRhLSnVfUnRKsW9 qri40nZpB2AEJpH46lSpu3MEoKxAf5L2puwGGC2bjm4EbHUlZ4YY0thI2oVxfXZVyBypnOyAu2dL lFIRKYMAbvRxm9g6fi9GF3POw49XQwjofNL2s3BwpIdMoASxIxBKdiIu7T5zNPwgPeKWgpt74YKb 8MixZ96SbsHAIwUfbpDqN6h21QW8DW0Abjp318NXDnSMCNhIkPa6pKyqBk1yzm31ccxqbLs7LeYO rXlsSwYfmzoeygDA/N5ndyGtGBNSixUvbc5XZXyfAaRe2Mb2/8MhKP1T1179AvmdYMvfEVN5Apj7 APgD2ODPzg8tvl9S/uy48AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMS0xNFQxNzo0NToxMCsw MDowMICAYZ4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTEtMTRUMTc6NDU6MTArMDA6MDDx3dki AAAAAElFTkSuQmCC X-Now-Playing: Snapped Ankles's _Come Play The Trees_: "I Want My Minutes Back" Date: Sun, 14 Nov 2021 18:45:41 +0100 In-Reply-To: <8635nyzldf.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 14 Nov 2021 19:40:28 +0200") Message-ID: <87pmr2637e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > This needs also to keep the original value while disabling the mode. > Do you think this should be installed in Emacs 28? Is this a regression since 27.2? If not, I'd prefer this go to master instead. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51830 Cc: 51830@debbugs.gnu.org, Feng Shu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > This needs also to keep the original value while disabling the mode. > Do you think this should be installed in Emacs 28? Is this a regression since 27.2? If not, I'd prefer this go to master instead. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 12:47:31 2021 Received: (at 51830) by debbugs.gnu.org; 14 Nov 2021 17:47:31 +0000 Received: from localhost ([127.0.0.1]:51556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmJbG-0000Vu-PT for submit@debbugs.gnu.org; Sun, 14 Nov 2021 12:47:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmJbD-0000Uz-N1 for 51830@debbugs.gnu.org; Sun, 14 Nov 2021 12:47:28 -0500 Received: from [2001:470:142:3::e] (port=60140 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmJb8-00039O-Dz; Sun, 14 Nov 2021 12:47:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1ZLdUHAigZo77gcs4sdL45WKVMws7zBsoxtbbBz7Gjo=; b=cXcFqPY1kawG POtJFzu4GFWXOz5M+K897Gb5fW3gcc55Y2btl9NC06msWwOgm9NeCE09GlaPZURfrpVwLwJZjoMoX naWsnqeI1Riwgl3jIaU+fSxwxY3+p4yCnnoZxsM+eqPi1xdR/TYfQs8K4CHZodg+DXqRmy5Ix8ig2 igeAVTt3lcMzdG5ACZENK2gKKCBhkR23psjGm4eWLbLus/E1Ib422gKDFbXzkkoRB+7ItwxWnBIB8 6RkiPAnLX0v1zLeEySsxthI6KZaL38FZN9MseRiyywPsgeLtmo+kdm4AU9Z8I/tkc7pvzndRi5SWL NDHTnfffaxN8nyIOmnkZKA==; Received: from [87.69.77.57] (port=3929 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmJay-0005Na-Hx; Sun, 14 Nov 2021 12:47:22 -0500 Date: Sun, 14 Nov 2021 19:46:59 +0200 Message-Id: <83o86mtyss.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <8635nyzldf.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 14 Nov 2021 19:40:28 +0200) Subject: Re: bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") References: <87v90v6zmw.fsf@163.com> <871r3jb60v.fsf@gnus.org> <8635nyzldf.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51830 Cc: 51830@debbugs.gnu.org, tumashu@163.com, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Date: Sun, 14 Nov 2021 19:40:28 +0200 > Cc: 51830@debbugs.gnu.org, Feng Shu > > > 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? > > This needs also to keep the original value while disabling the mode. > Do you think this should be installed in Emacs 28? We had that code since Emacs 27. Is it really urgent to fix that in Emacs 28? From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 14 13:38:06 2021 Received: (at 51830) by debbugs.gnu.org; 14 Nov 2021 18:38:06 +0000 Received: from localhost ([127.0.0.1]:51687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmKOE-0001yU-2e for submit@debbugs.gnu.org; Sun, 14 Nov 2021 13:38:06 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:53475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmKOC-0001xa-9a; Sun, 14 Nov 2021 13:38:04 -0500 Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 5DA04200002; Sun, 14 Nov 2021 18:37:55 +0000 (UTC) From: Juri Linkov To: 51830@debbugs.gnu.org Subject: Re: bug#51830: 29.0.50; tab-line-mode will override (setq-default tab-line-format "xxx") Organization: LINKOV.NET References: <87v90v6zmw.fsf@163.com> <871r3jb60v.fsf@gnus.org> <8635nyzldf.fsf@mail.linkov.net> Date: Sun, 14 Nov 2021 20:36:19 +0200 In-Reply-To: <8635nyzldf.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 14 Nov 2021 19:40:28 +0200") Message-ID: <86ilwuwpng.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51830 Cc: Feng Shu , Eli Zaretskii , Lars Ingebrigtsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 51830 29.0.50 thanks Lars Ingebrigtsen writes: > Is this a regression since 27.2? If not, I'd prefer this go to master > instead. Not a regression, so pushed to master. Eli Zaretskii writes: > We had that code since Emacs 27. Is it really urgent to fix that in > Emacs 28? Not urgent since this is quite non-standard usage of the tab-line. From unknown Mon Jun 23 13:13:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 13 Dec 2021 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator