From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 01 08:55:53 2021 Received: (at submit) by debbugs.gnu.org; 1 Aug 2021 12:55:53 +0000 Received: from localhost ([127.0.0.1]:35804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAB0T-0007qn-9k for submit@debbugs.gnu.org; Sun, 01 Aug 2021 08:55:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:33178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAB0P-0007qe-Ss for submit@debbugs.gnu.org; Sun, 01 Aug 2021 08:55:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAB0M-0003MS-6G for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 08:55:49 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAB0J-0008RE-FH for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 08:55:45 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 0C233240026 for ; Sun, 1 Aug 2021 14:55:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1627822540; bh=7nmKjbY8hJKzd62fxmjzHwg1iG4kp1DGE7mIh73yT/I=; h=From:To:Cc:Subject:Date:From; b=eOkfLXQlHUX7X/gAU8gEFCOuAZfxc0PoZYWmxY9cplkr/Ua1EfREWLwBbjhlXKDIb 1tgKI5Iei3EbArXsSxLS2Nz0YaMQIw4nf9s/c7zIUU5Q4nDueItH6Xt5J1+dvNpNKo ZOPOFN/GGBEqOF6Ki8AW4YEWZOTg2W4mIe9p+nT3w57BmZecI8tUC0YbT0GOkgP5Zk W1zy12RH2ciZd9utEZ7rlJMits50CptoqI86HFCY2B/NSE22uZgNRx1hz8DSV4voh4 2ohSpb7HER+NSbnvpQIozIK9WnF6ssYGpCi8B//YQc063wgNxEA4f6p1gMh1eixHKp rgTx/wtcvtb3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gd1Mb1wHYz6tmG; Sun, 1 Aug 2021 14:55:39 +0200 (CEST) From: Philip Kaludercic To: bug-gnu-emacs@gnu.org Subject: 28.0.50; tab-bar-format with global mode string doesn't always remove global-mode-string Date: Sun, 01 Aug 2021 12:55:38 +0000 Message-ID: <87r1fdjpdh.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: 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: -2.3 (--) When enabling tab-bar-mode with `tab-bar-format' set to '(tab-bar-format-global) the global-mode-string is not always removed from mode-line-format, as the code seems to intend. The main issue seems to be that the expression (member '(global-mode-string ("" global-mode-string " ")) mode-line-misc-info) (in tab-bar--define-keys) evaluates to nil, preventing the modification from begin made. When I change this to (member '(global-mode-string ("" global-mode-string)) mode-line-misc-info) reflecting the default value of mode-line-misc-info, it works. I am uncertain if this is intentional, or if even (assq 'global-mode-string mode-line-misc-info) would do the job. In GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2021-07-27 built on icterid Repository revision: fb27708f51fb0fd60cd00cd8ea7bfc9248eb0040 Repository branch: feature/rcirc-update Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure 'CFLAGS=-O2 -march=native -mtune=native' PKG_CONFIG_PATH=/home/philip/.guix-profile/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB Important settings: value of $EMACSLOADPATH: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: bug-reference-prog-mode: t global-git-commit-mode: t magit-auto-revert-mode: t auto-revert-mode: t TeX-PDF-mode: t paredit-mode: t flymake-mode: t flyspell-mode: t outline-minor-mode: t rcirc-track-minor-mode: t display-time-mode: t winner-mode: t electric-pair-mode: t shell-dirtrack-mode: t recentf-mode: t save-place-mode: t savehist-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/philip/.config/emacs/elpa/transient-0.3.6/transient hides /home/philip/Code/src/emacs/lisp/transient Features: (shadow sort bbdb-message mail-extr avy dabbrev grep emacsbug vc-annotate cus-start char-fold misearch multi-isearch goto-addr magit-extras whitespace pulse color flymake-cc macrostep-c cmacexp macrostep cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs rect delsel eieio-opt speedbar ezimage dframe find-func shortdoc help-fns slime etags fileloop generator xref arc-mode archive-mode pp hyperspec vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs project mule-util vc-backup log-view vc-fossil vc bug-reference face-remap magit-submodule magit-obsolete 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 magit-diff smerge-mode diff git-commit log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor term ehelp eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util server magit-mode transient magit-git magit-section benchmark magit-utils which-func imenu ido dash time-stamp vc-git diff-mode vc-dispatcher preview reporter desktop frameset tex-buf tex-fold reftex-dcr reftex-auc reftex reftex-loaddefs reftex-vars font-latex latex latex-flymake tex-ispell tex-style tex crm advice dbus xml texmathp tex-mode latexenc dired-aux disp-table gnutls network-stream puny nsm rmc epa-file epa epg epg-config cl-extra paredit checkdoc help-mode flymake-proc flymake warnings thingatpt flyspell ispell noutline outline dired-x dired dired-loaddefs rcirc easy-mmode rx time bbdb derived bbdb-site timezone sendmail gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr hippie-exp winner elec-pair tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp format-spec recentf tree-widget wid-edit saveplace savehist paren modus-operandi-theme modus-themes pcase edmacro kmacro holidays hol-loaddefs cal-menu calendar cal-loaddefs cus-load setup load compile text-property-search comint ansi-color ring autoload radix-tree lisp-mnt tex-site slime-autoloads 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 cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-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 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1010868 527900) (symbols 48 37763 166) (strings 32 150148 38890) (string-bytes 1 4799283) (vectors 16 75559) (vector-slots 8 829642 714359) (floats 8 483 1851) (intervals 56 44338 10461) (buffers 992 56)) -- Philip K. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 01 15:50:17 2021 Received: (at 49806) by debbugs.gnu.org; 1 Aug 2021 19:50:17 +0000 Received: from localhost ([127.0.0.1]:36970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAHTV-0001WY-4s for submit@debbugs.gnu.org; Sun, 01 Aug 2021 15:50:17 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAHTR-0001WA-Sv; Sun, 01 Aug 2021 15:50:15 -0400 Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E20B4C0004; Sun, 1 Aug 2021 19:50:05 +0000 (UTC) From: Juri Linkov To: Philip Kaludercic Subject: Re: bug#49806: 28.0.50; tab-bar-format with global mode string doesn't always remove global-mode-string References: <87r1fdjpdh.fsf@posteo.net> Date: Sun, 01 Aug 2021 22:48:06 +0300 In-Reply-To: <87r1fdjpdh.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 01 Aug 2021 12:55:38 +0000") Message-ID: <87pmux0ww9.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49806 Cc: 49806@debbugs.gnu.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: -1.7 (-) tags 49806 fixed close 49806 28.0.50 thanks > In GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) > of 2021-07-27 built on icterid > Repository revision: fb27708f51fb0fd60cd00cd8ea7bfc9248eb0040 > Repository branch: feature/rcirc-update Maybe your branch is not updated to the recent master? We fixed this a week ago. But it would be nice to find such solution that would avoid the need to update tab-bar--define-keys manually every time when the default value of mode-line-misc-info changes: > When I change this to > > (member '(global-mode-string ("" global-mode-string)) > mode-line-misc-info) > > reflecting the default value of mode-line-misc-info, it works. > > I am uncertain if this is intentional, or if even > > (assq 'global-mode-string mode-line-misc-info) > > would do the job. The intention was to check if mode-line-misc-info contains the default value of 'global-mode-string', and update only the default value. But (assq 'global-mode-string mode-line-misc-info) will be called every time, even when the value was already changed. From unknown Mon Aug 18 06:58:12 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, 30 Aug 2021 11:24:03 +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