From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin Marshall Newsgroups: gmane.emacs.bugs Subject: bug#49215: 28.0.50; 'display-time-mode' and 'which-function-mode' not interacting well with 'tab-bar-format-global' Date: Thu, 24 Jun 2021 20:27:31 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28751"; mail-complaints-to="usenet@ciao.gmane.io" To: 49215@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 25 06:14:29 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwdEb-0007GO-D6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Jun 2021 06:14:29 +0200 Original-Received: from localhost ([::1]:38334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwdEa-0005Qx-Ci for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Jun 2021 00:14:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwdEE-0005Q2-B5 for bug-gnu-emacs@gnu.org; Fri, 25 Jun 2021 00:14:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwdEB-00008R-4G for bug-gnu-emacs@gnu.org; Fri, 25 Jun 2021 00:14:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwdEB-000819-1E for bug-gnu-emacs@gnu.org; Fri, 25 Jun 2021 00:14:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Martin Marshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Jun 2021 04:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49215 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162459440830731 (code B ref -1); Fri, 25 Jun 2021 04:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2021 04:13:28 +0000 Original-Received: from localhost ([127.0.0.1]:44451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwdDb-0007za-LR for submit@debbugs.gnu.org; Fri, 25 Jun 2021 00:13:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwZhT-0002Fu-Lm for submit@debbugs.gnu.org; Thu, 24 Jun 2021 20:28:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwZhT-0000Yl-C7 for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 20:28:03 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:37783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwZhQ-0000RX-15 for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 20:28:03 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id p7so13431745lfg.4 for ; Thu, 24 Jun 2021 17:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martinmarshall-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=ouq8lmTtkjrafmUYM1sQIztvB57Z/Io5X+nwo0Pi+j8=; b=Lp/0MjWeRXg78Pl2evARhOg38Pfvu4rMJwHx1TCH5dfe6upMsTDsRCbqdVUuDmJ9fl 4tNFcUcXJaGLyq9y2yliUME7BWNsfkISxaAjGkjXDsZlbgbKZr1hADB2U0eocT830eu/ IURLEnm7CTGtiI7pP6n/d9qomA94QY2I4VVEWsDlywsEtvLL24BVYj9PzVq2VPV7XfMi wdL90qS0nvDuNiiGe96/6aKgK2zF8sM+tV0OT/SjVRD4x+8WhHUlqlqowxUPUGdumL1+ ZLsFEh8eXcpWat6KNrNugTEMf9RELN47kjryzXOSqFOdsaJD7/Jc28kRUNgovLG2ReOj +9/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=ouq8lmTtkjrafmUYM1sQIztvB57Z/Io5X+nwo0Pi+j8=; b=NTBXbx5H1uhslwKJPNWWInbrCGM5wZy8QwYPnh++oq0Q99qYKPZqW+/lCOLjXVtJaD 34bR3L/lZYaeZnWPf4XC9WcaeFXXId7hfVPpdVVxkooJVW6u7hmjzMsVCxyHbPTnZDQ6 lqGYnhI9IaydgYM2er1kZkpb6ZKoJB9iWVD62as+SiZruYUi+cz47BkptpQZR7k3a1Hd 9UL+GMXWUfremry6unf0nMJ1NJYC3Wj4ro2T9bmYGHB810nOpicbSzJL7TXDtMFc1Rv5 TesGelgfkwnee3U/X425qTLW7mX4yBpCzrVrC+M8upq8Nw1E+ljACnutgwbrYI1kAi6w o+ew== X-Gm-Message-State: AOAM532F3vevwi5IgTAWVIFJwNrLp41l5wE7tVFDsHTNIjJZ3Uac1Dbs K/JRiON18Cl10aV7EQIQOpwdyL3GMWeYDyxoRqhlGIzcrxOg/g== X-Google-Smtp-Source: ABdhPJwSUgBTHyyIzn6S3q3AP8h6mDj7s1zj2qRJKtRLFAprWyKe22teiWtbiuKJEVf/74x8UXSMtTPpju/olktgEvY= X-Received: by 2002:ac2:4e64:: with SMTP id y4mr5936174lfs.238.1624580877068; Thu, 24 Jun 2021 17:27:57 -0700 (PDT) In-Reply-To: Received-SPF: none client-ip=2a00:1450:4864:20::132; envelope-from=law@martinmarshall.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 25 Jun 2021 00:13:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208974 Archived-At: I've just noticed that somehow in copying the code into my email below, a "t" was somehow replaced with a "T". Please accept my apology. Below is the correction. (setq tab-bar-format '(tab-bar-format-tabs tab-bar-separator tab-bar-format-align-right tab-bar-format-global)) (tab-bar-mode t) (display-time-mode t) (which-function-mode t) On Thu, Jun 24, 2021 at 8:20 PM Martin Marshall wr= ote: > > Hello, I'm trying use 'which-function-mode' and also have time appear on > the right end of the tab-bar but not in the modeline per documentation fo= r > the 'tab-bar-format' variable: > > When you add more items =E2=80=98tab-bar-format-align-right=E2=80=99 = and > =E2=80=98tab-bar-format-global=E2=80=99 to the end, then after enabli= ng > =E2=80=98display-time-mode=E2=80=99 (or any other mode that uses =E2= =80=98global-mode-string=E2=80=99) > it will display time aligned to the right on the tab bar instead of > the mode line. > > It seems this only works without 'which-function-mode'. If I enable > 'which-function-mode' after tab-bar-mode, time unexpectedly reappears in > the modeline. > > Alternatively, if I enable 'which-function-mode' before 'tab-bar-mode', > then time appears only in the tab-bar, as expected. But then the > information provided by 'which-function-mode' also stops appearing in the > modeline. > > Steps to reproduce: > 1. Start Emacs with "emacs -Q". > 2. Paste into scratch buffer: > > (setq tab-bar-format > '(tab-bar-format-tabs > tab-bar-separator > tab-bar-format-align-right > Tab-bar-format-global)) > > (tab-bar-mode t) > > (display-time-mode t) > > (which-function-mode t) > > 3. "M-x eval-buffer RET" > > To reproduce the other result---wherein 'which-function-mode' > disappears from the modeline and will not return---simply repeat the > above steps with the "(which-function-mode t)" line placed above the > "(tab-bar-mode t)" line instead of beneath it. > > With warm regards, > Martin Marshall > > > > In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version > 3.24.29, cairo version 1.17.4) > of 2021-06-24 built on machine > Repository revision: 1283e1db9b7750a90472e7d557fdd75fcaff6446 > Repository branch: makepkg > Windowing system distributor 'The X.Org Foundation', version 11.0.1210100= 1 > System Description: EndeavourOS > > Configured using: > 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib > --localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:game= s > --with-sound=3Dalsa --with-modules --without-gconf --with-gsettings > --enable-link-time-optimization --with-native-compilation > --with-x-toolkit=3Dgtk3 --without-xaw3d --with-xwidgets > --without-compress-install > '--program-transform-name=3Ds/\([ec]tags\)/\1.emacs/' > 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptio= ns > -Wp,-D_FORTIFY_SOURCE=3D2 -Wformat -Werror=3Dformat-security > -fstack-clash-protection -fcf-protection -flto -fuse-linker-plugin' > LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG > JSON LCMS2 LIBOTF 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 $LC_MONETARY: en_US.UTF-8 > value of $LC_NUMERIC: en_US.UTF-8 > value of $LC_TIME: en_US.UTF-8 > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: @im=3Dibus > locale-coding-system: utf-8-unix > > Major mode: Lisp Interaction > > Minor modes in effect: > display-time-mode: t > which-function-mode: t > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > tab-bar-mode: t > menu-bar-mode: t > file-name-shadow-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 > transient-mark-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs > rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail > rmail-loaddefs auth-source eieio eieio-core cl-macs eieio-loaddefs > password-cache json map mm-decode mm-bodies mm-encode mail-parse rfc2231 > mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums > mm-util mail-prsvr mail-utils pp cl-print time cl-seq find-func cl-extra > shortdoc text-property-search seq byte-opt gv bytecomp byte-compile > cconv help-fns radix-tree help-mode add-log which-func imenu time-date > subr-x 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 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 85954 5287) > (symbols 48 7128 0) > (strings 32 21905 1841) > (string-bytes 1 724005) > (vectors 16 14068) > (vector-slots 8 261486 10398) > (floats 8 82 28) > (intervals 56 621 0) > (buffers 992 13))