From unknown Fri Aug 15 12:49:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78896 <78896@debbugs.gnu.org> To: bug#78896 <78896@debbugs.gnu.org> Subject: Status: 29.4; display-time-mode breaks minibuffer in emacsclient Reply-To: bug#78896 <78896@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:49:21 +0000 retitle 78896 29.4; display-time-mode breaks minibuffer in emacsclient reassign 78896 emacs submitter 78896 Varun Malladi severity 78896 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 25 13:35:05 2025 Received: (at submit) by debbugs.gnu.org; 25 Jun 2025 17:35:05 +0000 Received: from localhost ([127.0.0.1]:38661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUU1X-0004dk-1H for submit@debbugs.gnu.org; Wed, 25 Jun 2025 13:35:05 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59714) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUTtd-0003bC-W2 for submit@debbugs.gnu.org; Wed, 25 Jun 2025 13:26:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uUTtX-0000uU-L4 for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2025 13:26:47 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uUTtV-0008TJ-12 for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2025 13:26:47 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-607434e1821so121997a12.0 for ; Wed, 25 Jun 2025 10:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750872402; x=1751477202; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=O9m2IrT77kc14YdiBNn9s33HNJDECSSGQAc81ZtFKco=; b=R8vt41I9FOsD5fhGUAP7oIubwGKYY7m0D8pefrNifHyGJjDiJSmf/ZbbdtBukN/4CD i6/Sa4ipPuQDFMh3S51bY133FUh5MAF6N9J4kx+JdX13X/OqXGas2p4wB5vXL0R1/w4g O1RbtmtqvYeCc4CJ7djxZMwAKmesVqxVo3XvZQYwTEvAtEMHd/tkVjvRnXs2daXnm0sb dA+xlUbr4rc2miFB0pBnWTO7grGIYMKBJp/nmSoRkx+if6f5AlBWExDA/E+WWzcSWlh+ bo/5nk1oh7a9pTFVXCdGp3at5oCO5Y7xViAJHfJWRgwo7Cuq6r2Nm7h9LZSI14P7W+o4 igTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750872402; x=1751477202; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=O9m2IrT77kc14YdiBNn9s33HNJDECSSGQAc81ZtFKco=; b=SZyEK+ouT0M90QGY74ch5bM1UXASNjn4B5HsXxLh3sDsADARFUJ0bM+HjoTo3UAOwc PCZX3xEtnkoBNHtHAVGzyum9IfxGe3QTtBNqDw1IAS7Y6NW1EtcY9PxfbH0sEYuUNCFr 5CWJ99xo2RmQVJiotNUeWWB2h8+7dhI7VSu5wEipLfvcWjBvP8TNk30CHnXB+z1Wokw3 qsMDxhvvBn87w0mL7qZcz3SVgtc7EfyWzM5O1F59tgZNCoRPmIGCWdK4FEUmFJ56S2iZ CKuQnNoYzfHfUIZVQsosH1JITViiOGvSxMLV3Ham/J7vbVQGHusR9ioNcOXr4Gl0+QX0 5KDw== X-Gm-Message-State: AOJu0YxIPXxj1ZqIRIrzc4g+7GRS1hF9uUe5mV+3ew5khu4mt7uvrEgF AOWmXaL2VNuyhKfp1qBydLYfwVFgRAZ+5h6kl7bvMaNEuJiNa6/U66dNXO8XM5SS0xc8ZVTcq6b zdjkxlF7Wsypae9vGjh93HjbzPiMOHOi89A== X-Gm-Gg: ASbGnctAns9aeDoJjl3wtIdumDAxpkov0P3IZyGmGaReo3/GjOCyPt17FPcd5kFAdH8 YcmyHGUGmPENED4tDQuGBgH0pVKq0XEFU09JYSfFuM5zvTEk/k9a1luk8XYHsUewaD6bqHAE/Vh WV4iRIn7Lz+HPwkSbopysH4EnDCQZQ0Ydxy1O1ult6YP4oUGWO8HFV0tqjOf2M2NJkh3nlbFdiK fCP X-Google-Smtp-Source: AGHT+IGx4mD7UPE5l7eSdqUPU4E46MUVpJoYndIcYYaPwmoWr9v7Hegw1MfSGWCoVyGPuB5qTXzzkxHdnTddS7wuUjc= X-Received: by 2002:a05:6402:27d4:b0:60c:3d54:4d2a with SMTP id 4fb4d7f45d1cf-60c4dd6ff2dmr3267484a12.22.1750872401585; Wed, 25 Jun 2025 10:26:41 -0700 (PDT) MIME-Version: 1.0 From: Varun Malladi Date: Wed, 25 Jun 2025 13:26:28 -0400 X-Gm-Features: Ac12FXw8UtPjQ-PcWVEtQOZFqH-DRJU1JnV63lwd1BSBkTZ5QOD934wz7AkyNw0 Message-ID: Subject: 29.4; display-time-mode breaks minibuffer in emacsclient To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000008b2b0d063868bfce" Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=varun.malladi@gmail.com; helo=mail-ed1-x52a.google.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, HTML_MESSAGE=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: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 25 Jun 2025 13:35:01 -0400 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: -0.0 (/) --0000000000008b2b0d063868bfce Content-Type: text/plain; charset="UTF-8" Given the following minimal init file: ``` ;; min-init.el (require 'tab-bar) (tab-bar-mode) (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) (display-time-mode -1) ``` I do the following: ``` emacs -Q --daemon --load min-init.el ``` Then when I start emacsclient in the terminal with `emacsclient -t`, the minibuffer won't work at all. When I don't do this via the server, e.g. removing `--daemon` from the above invocation, the minibuffer works fine. Let me try to describe what I mean when I say that the minibuffer doesn't work. `M-x` puts the cursor at the beginning of the minibuffer (no "M-x" text). Typing any key says that the key is not defined. `C-g` doesn't work either. In GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4) of 2025-01-20 built on (redacted) System Description: AlmaLinux 9.5 (Teal Serval) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-json --with-modules --with-native-compilation --with-pgtk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-fno-semantic-interposition -D_FILE_OFFSET_BITS=64 -pthread -fno-semantic-interposition -D_FILE_OFFSET_BITS=64 -pthread -fno-semantic-interposition -D_FILE_OFFSET_BITS=64 -pthread -DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ' 'LDFLAGS= -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-std=gnu++20 -DFMT_CONSTEVAL= -DBUG681273 -fno-semantic-interposition -D_FILE_OFFSET_BITS=64 -fvisibility-inlines-hidden -pthread -std=gnu++20 -DFMT_CONSTEVAL= -DBUG681273 -fno-semantic-interposition -D_FILE_OFFSET_BITS=64 -fvisibility-inlines-hidden -pthread -std=gnu++20 -DFMT_CONSTEVAL= -DBUG681273 -fno-semantic-interposition -D_FILE_OFFSET_BITS=64 -fvisibility-inlines-hidden -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings icons rx cl-seq cl-extra help-mode term/screen term/xterm xterm clang-rename clang-include-fixer let-alist json subr-x map byte-opt bytecomp byte-compile clang-format cl-macs gv xml cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 92347 8264) (symbols 48 7619 0) (strings 32 21282 1534) (string-bytes 1 639143) (vectors 16 15152) (vector-slots 8 300714 14258) (floats 8 31 230) (intervals 56 462 0) (buffers 984 14)) --0000000000008b2b0d063868bfce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Given the following minimal init file:```
;; min-init.el
(require 'tab-bar)
(tab-bar-mode)
(add-= to-list 'tab-bar-format 'tab-bar-format-global 'append)
(dis= play-time-mode -1)
```

I do the following:
```
emacs -Q --d= aemon --load min-init.el
```

Then when I start emacsclient in the= terminal with `emacsclient -t`, the
minibuffer won't work at all. W= hen I don't do this via the server,
e.g. removing `--daemon` from th= e above invocation, the minibuffer works
fine.

Let me try to desc= ribe what I mean when I say that the minibuffer
doesn't work. `M-x` = puts the cursor at the beginning of the minibuffer
(no "M-x" t= ext). Typing any key says that the key is not defined. `C-g`
doesn't= work either.



In GNU Emacs 29.4 (build 1, x86_64-redhat-linu= x-gnu, GTK+ Version
=C2=A03.24.31, cairo version 1.17.4) of 2025-01-20 b= uilt on
=C2=A0(redacted)
System Description: AlmaLinux 9.5 (Teal Serv= al)

Configured using:
=C2=A0'configure --build=3Dx86_64-redha= t-linux-gnu
=C2=A0--host=3Dx86_64-redhat-linux-gnu --program-prefix=3D=C2=A0--disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr<= br>=C2=A0--bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc
= =C2=A0--datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/li= b64
=C2=A0--libexecdir=3D/usr/libexec --localstatedir=3D/var
=C2=A0--= sharedstatedir=3D/var/lib --mandir=3D/usr/share/man
=C2=A0--infodir=3D/u= sr/share/info --with-cairo --with-dbus --with-gif
=C2=A0--with-gpm=3Dno = --with-harfbuzz --with-jpeg --with-json --with-modules
=C2=A0--with-nati= ve-compilation --with-pgtk --with-png --with-rsvg
=C2=A0--with-sqlite3 -= -with-tiff --with-tree-sitter --with-webp --with-xpm
=C2=A0build_alias= =3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu
=C2=A0CC= =3Dgcc 'CFLAGS=3D-fno-semantic-interposition -D_FILE_OFFSET_BITS=3D64=C2=A0-pthread -fno-semantic-interposition -D_FILE_OFFSET_BITS=3D64 -pthr= ead
=C2=A0-fno-semantic-interposition -D_FILE_OFFSET_BITS=3D64 -pthread<= br>=C2=A0-DMAIL_USE_LOCKF -O2 -flto=3Dauto -ffat-lto-objects -fexceptions -= g
=C2=A0-grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security
= =C2=A0-Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS
=C2=A0-specs= =3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
=C2= =A0-specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=3Dx86-64-v2<= br>=C2=A0-mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protec= tion
=C2=A0-fcf-protection ' 'LDFLAGS=3D -Wl,-z,relro -Wl,--as-n= eeded -Wl,-z,now
=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 '
=C2=A0PKG_= CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=3Dg++
=C2= =A0'CXXFLAGS=3D-std=3Dgnu++20 -DFMT_CONSTEVAL=3D -DBUG681273
=C2=A0-= fno-semantic-interposition -D_FILE_OFFSET_BITS=3D64
=C2=A0-fvisibility-i= nlines-hidden -pthread -std=3Dgnu++20 -DFMT_CONSTEVAL=3D
=C2=A0-DBUG6812= 73 -fno-semantic-interposition -D_FILE_OFFSET_BITS=3D64
=C2=A0-fvisibili= ty-inlines-hidden -pthread -std=3Dgnu++20 -DFMT_CONSTEVAL=3D
=C2=A0-DBUG= 681273 -fno-semantic-interposition -D_FILE_OFFSET_BITS=3D64
=C2=A0-fvisi= bility-inlines-hidden -pthread -O2 -flto=3Dauto -ffat-lto-objects
=C2=A0= -fexceptions -g -grecord-gcc-switches -pipe -Wall
=C2=A0-Werror=3Dformat= -security -Wp,-D_FORTIFY_SOURCE=3D2
=C2=A0-Wp,-D_GLIBCXX_ASSERTIONS
= =C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-st= rong
=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march= =3Dx86-64-v2
=C2=A0-mtune=3Dgeneric -fasynchronous-unwind-tables -fstack= -clash-protection
=C2=A0-fcf-protection ''

Configured fea= tures:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JP= EG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY = INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOL= KIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB

Important settings:
=C2= =A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix<= br>
Major mode: ELisp/d

Minor modes in effect:
=C2=A0 tooltip-= mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 sh= ow-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mo= de: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-= name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-= mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-com= position-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compressi= on-mode: t

Load-path shadows:
None found.

Features:
(sh= adow sort mail-extr emacsbug message mailcap yank-media puny dired
dired= -loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-= config gnus-util text-property-search time-date mm-decode mm-bodies
mm-e= ncode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc204= 7 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr
warnin= gs icons rx cl-seq cl-extra help-mode term/screen term/xterm xterm
clang= -rename clang-include-fixer let-alist json subr-x map byte-opt
bytecomp = byte-compile clang-format cl-macs gv xml cl-loaddefs cl-lib rmc
iso-tran= sl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-= float-type elisp-mode mwheel term/pgtk-win pgtk-win
term/common-win pgtk= -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 fon= t-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq sim= ple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang = vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 he= brew greek romanian slovak czech
european ethiopic indian cyrillic chine= se composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-= hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loa= ddefs faces cus-face macroexp
files window text-properties overlay sha1 = md5 base64 format env
code-pages mule custom widget keymap hashtable-pri= nt-readable backquote
threads dbusbind inotify dynamic-setting system-fo= nt-setting
font-render-setting cairo gtk pgtk multi-tty make-network-pro= cess
native-compile emacs)

Memory information:
((conses 16 923= 47 8264)
=C2=A0(symbols 48 7619 0)
=C2=A0(strings 32 21282 1534)
= =C2=A0(string-bytes 1 639143)
=C2=A0(vectors 16 15152)
=C2=A0(vector-= slots 8 300714 14258)
=C2=A0(floats 8 31 230)
=C2=A0(intervals 56 462= 0)
=C2=A0(buffers 984 14))
--0000000000008b2b0d063868bfce-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 25 14:59:15 2025 Received: (at 78896) by debbugs.gnu.org; 25 Jun 2025 18:59:15 +0000 Received: from localhost ([127.0.0.1]:39483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUVKy-0000P0-Ho for submit@debbugs.gnu.org; Wed, 25 Jun 2025 14:59:14 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:32827) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUVKu-0000NJ-1k for 78896@debbugs.gnu.org; Wed, 25 Jun 2025 14:59:09 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 41E59442A3; Wed, 25 Jun 2025 18:58:59 +0000 (UTC) From: Juri Linkov To: Varun Malladi Subject: Re: bug#78896: 29.4; display-time-mode breaks minibuffer in emacsclient In-Reply-To: Organization: LINKOV.NET References: Date: Wed, 25 Jun 2025 21:57:30 +0300 Message-ID: <87qzz7d4yt.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvfeehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghofhffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepffegteefveelhfeljeefueehieduiedtfffhuddtkeeffffghfevheetgeeukeehnecukfhppeeluddruddvledruddttddrjeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutddtrdejjedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepjeekkeelieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehvrghruhhnrdhmrghllhgrughisehgmhgrihhlrdgtohhm X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78896 Cc: 78896@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 (-) > Given the following minimal init file: > ``` > ;; min-init.el > (require 'tab-bar) > (tab-bar-mode) > (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) > (display-time-mode -1) > ``` > > I do the following: > ``` > emacs -Q --daemon --load min-init.el > ``` > > Then when I start emacsclient in the terminal with `emacsclient -t`, the > minibuffer won't work at all. When I don't do this via the server, > e.g. removing `--daemon` from the above invocation, the minibuffer works > fine. > > Let me try to describe what I mean when I say that the minibuffer > doesn't work. `M-x` puts the cursor at the beginning of the minibuffer > (no "M-x" text). Typing any key says that the key is not defined. `C-g` > doesn't work either. Thanks for the bug report. My guess is that it's related to forcing switching frame focus to the active minibuffer. 'tab-bar-format-global' calls 'format-mode-line' that on a tty frame forces focus to the initial daemon frame. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 26 01:11:31 2025 Received: (at 78896) by debbugs.gnu.org; 26 Jun 2025 05:11:31 +0000 Received: from localhost ([127.0.0.1]:46213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUetX-0004mT-Aw for submit@debbugs.gnu.org; Thu, 26 Jun 2025 01:11:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39692) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUetU-0004mD-Lx for 78896@debbugs.gnu.org; Thu, 26 Jun 2025 01:11:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uUetN-0000PO-Ve; Thu, 26 Jun 2025 01:11:21 -0400 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=ACo+mVuITPdIvm2LUNWahpskUbTij04zhP9cnB3iVYE=; b=aRON5i50h7eb 3XH0eRPUDHjIVp//e4jtHj5M7ZDjdz0a/iLfGmsM7x/16iGxQxtjx0GXYnejHFWv3KQYOP9EYyJGE 3lDIRnu2Vb6fa9UnYthfwNSK/TbFb4VwJHU3XwL+yWovJxI9ZXsxC9Cqj/c5SJdlEzfpRc3ilqnl5 CoWf6lwCWxmnCZtHLsO7gn71F9h5GYTxUaBaJFPm73IdDzpp2rdb73UMuW6XIe7k0v9ngN3JBEmzd LPHP0GLZv0w60DyjOMPjx8sZ+jxSAOi0wPPKbUrKQM06By0bO6htCRgl3r2ZSNouTz6EggJA0OZhy XtPVC7EJveE+tZlUzAFzcQ==; Date: Thu, 26 Jun 2025 08:11:19 +0300 Message-Id: <86plerccjs.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87qzz7d4yt.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 25 Jun 2025 21:57:30 +0300) Subject: Re: bug#78896: 29.4; display-time-mode breaks minibuffer in emacsclient References: <87qzz7d4yt.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78896 Cc: varun.malladi@gmail.com, 78896@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: -3.3 (---) > Cc: 78896@debbugs.gnu.org > From: Juri Linkov > Date: Wed, 25 Jun 2025 21:57:30 +0300 > > > Given the following minimal init file: > > ``` > > ;; min-init.el > > (require 'tab-bar) > > (tab-bar-mode) > > (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) > > (display-time-mode -1) > > ``` > > > > I do the following: > > ``` > > emacs -Q --daemon --load min-init.el > > ``` > > > > Then when I start emacsclient in the terminal with `emacsclient -t`, the > > minibuffer won't work at all. When I don't do this via the server, > > e.g. removing `--daemon` from the above invocation, the minibuffer works > > fine. > > > > Let me try to describe what I mean when I say that the minibuffer > > doesn't work. `M-x` puts the cursor at the beginning of the minibuffer > > (no "M-x" text). Typing any key says that the key is not defined. `C-g` > > doesn't work either. > > Thanks for the bug report. My guess is that it's related > to forcing switching frame focus to the active minibuffer. > 'tab-bar-format-global' calls 'format-mode-line' that > on a tty frame forces focus to the initial daemon frame. These kinds of initializations and customizations should be moved to server-after-make-frame-hook. They should only be invoked directly from the init file in non-daemon session (one could use the function daemonp to check that). The rule is that any initialization or customization that needs the Emacs GUI system to be up and running should be done from server-after-make-frame-hook. Note that server-after-make-frame-hook is run after starting each new frame, not just once. So if you have one-time initializations, you need some state variable you can set to indicate that the one-time stuff was already done, and set it after performing those initializations for the first time. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 26 02:16:15 2025 Received: (at 78896) by debbugs.gnu.org; 26 Jun 2025 06:16:15 +0000 Received: from localhost ([127.0.0.1]:47018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUfuA-0001L6-FA for submit@debbugs.gnu.org; Thu, 26 Jun 2025 02:16:14 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60241) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUfto-0001IG-GE for 78896@debbugs.gnu.org; Thu, 26 Jun 2025 02:15:53 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id DE694444D6; Thu, 26 Jun 2025 06:15:44 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#78896: 29.4; display-time-mode breaks minibuffer in emacsclient In-Reply-To: <86plerccjs.fsf@gnu.org> Organization: LINKOV.NET References: <87qzz7d4yt.fsf@mail.linkov.net> <86plerccjs.fsf@gnu.org> Date: Thu, 26 Jun 2025 09:13:03 +0300 Message-ID: <87bjqb58zq.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvgeeltdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghofhffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepffegteefveelhfeljeefueehieduiedtfffhuddtkeeffffghfevheetgeeukeehnecukfhppeeluddruddvledruddttddrjeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutddtrdejjedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepjeekkeelieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehvrghruhhnrdhmrghllhgrughisehgmhgrihhlrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78896 Cc: varun.malladi@gmail.com, 78896@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 (-) > These kinds of initializations and customizations should be moved to > server-after-make-frame-hook. They should only be invoked directly > from the init file in non-daemon session (one could use the function > daemonp to check that). The rule is that any initialization or > customization that needs the Emacs GUI system to be up and running > should be done from server-after-make-frame-hook. > > Note that server-after-make-frame-hook is run after starting each new > frame, not just once. So if you have one-time initializations, you > need some state variable you can set to indicate that the one-time > stuff was already done, and set it after performing those > initializations for the first time. I confirm that everything works without problems with: ``` ;; min-init.el (require 'tab-bar) (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) (display-time-mode 1) (add-hook 'server-after-make-frame-hook 'toggle-frame-tab-bar) ``` From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 27 03:02:42 2025 Received: (at 78896) by debbugs.gnu.org; 27 Jun 2025 07:02:42 +0000 Received: from localhost ([127.0.0.1]:59803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uV36f-0005ww-Vv for submit@debbugs.gnu.org; Fri, 27 Jun 2025 03:02:42 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:55157) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uV36d-0005w8-KX for 78896@debbugs.gnu.org; Fri, 27 Jun 2025 03:02:40 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id B2ED544397; Fri, 27 Jun 2025 07:02:31 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#78896: 29.4; display-time-mode breaks minibuffer in emacsclient In-Reply-To: <87bjqb58zq.fsf@mail.linkov.net> Organization: LINKOV.NET References: <87qzz7d4yt.fsf@mail.linkov.net> <86plerccjs.fsf@gnu.org> <87bjqb58zq.fsf@mail.linkov.net> Date: Fri, 27 Jun 2025 09:57:06 +0300 Message-ID: <87jz4x1xft.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddvgeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeettdeiieegfeehtddvgeekhfelvdeggfevfeevgeelvdffudekkedtledtgfekvdenucfkphepledurdduvdelrddutddtrdejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddttddrjeejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopeejkeekleeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvhgrrhhunhdrmhgrlhhlrgguihesghhmrghilhdrtghomhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78896 Cc: varun.malladi@gmail.com, 78896@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 (-) --=-=-= Content-Type: text/plain > I confirm that everything works without problems with: > > ``` > ;; min-init.el > (require 'tab-bar) > (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) > (display-time-mode 1) > (add-hook 'server-after-make-frame-hook 'toggle-frame-tab-bar) > ``` Here is the patch that also allows using the original recipe: ``` ;; min-init.el (require 'tab-bar) (tab-bar-mode) (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) (display-time-mode -1) ``` This patch instructs tab-bar-mode to ignore daemon's initial frame: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=tab-bar-daemon-initial-frame.patch diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 306fed34e40..7dc39086044 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -280,11 +280,13 @@ tab-bar--update-tab-bar-lines (dolist (frame frame-lst) (unless (or (frame-parameter frame 'tab-bar-lines-keep-state) (and (eq auto-resize-tab-bars 'grow-only) - (> (frame-parameter frame 'tab-bar-lines) 1))) + (> (frame-parameter frame 'tab-bar-lines) 1)) + ;; Don't enable tab-bar in daemon's initial frame. + (and (daemonp) (not (frame-parameter frame 'client)))) (set-frame-parameter frame 'tab-bar-lines (tab-bar--tab-bar-lines-for-frame frame))))) ;; Update `default-frame-alist' - (when (eq frames t) + (when (and (eq frames t) (not (daemonp))) (setq default-frame-alist (cons (cons 'tab-bar-lines (if (and tab-bar-mode (eq tab-bar-show t)) 1 0)) @@ -600,7 +602,11 @@ toggle-frame-tab-bar or if you want to disable the tab bar individually on each new frame when the global `tab-bar-mode' is enabled, by using - (add-hook \\='after-make-frame-functions #\\='toggle-frame-tab-bar)" + (add-hook \\='after-make-frame-functions #\\='toggle-frame-tab-bar) + +Or when starting Emacs in daemon mode: + + (add-hook \\='server-after-make-frame-hook #\\='toggle-frame-tab-bar)" (interactive) (set-frame-parameter frame 'tab-bar-lines (if (> (frame-parameter frame 'tab-bar-lines) 0) 0 1)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 27 13:43:18 2025 Received: (at 78896) by debbugs.gnu.org; 27 Jun 2025 17:43:18 +0000 Received: from localhost ([127.0.0.1]:40412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVD6b-0001xx-Re for submit@debbugs.gnu.org; Fri, 27 Jun 2025 13:43:18 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]:60411) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uVD6Z-0001xH-O7; Fri, 27 Jun 2025 13:43:16 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6ABEF44390; Fri, 27 Jun 2025 17:43:08 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#78896: 29.4; display-time-mode breaks minibuffer in emacsclient In-Reply-To: <87jz4x1xft.fsf@mail.linkov.net> Organization: LINKOV.NET References: <87qzz7d4yt.fsf@mail.linkov.net> <86plerccjs.fsf@gnu.org> <87bjqb58zq.fsf@mail.linkov.net> <87jz4x1xft.fsf@mail.linkov.net> Date: Fri, 27 Jun 2025 20:42:02 +0300 Message-ID: <871pr52iad.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdefieelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutddtrdejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddttddrjeejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepgedprhgtphhtthhopegtohhnthhrohhlseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepjeekkeelieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehvrghruhhnrdhmrghllhgrughisehgmhgrihhlrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78896 Cc: varun.malladi@gmail.com, 78896@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 (-) close 78896 31.0.50 thanks > Here is the patch that also allows using the original recipe: > > ``` > ;; min-init.el > (require 'tab-bar) > (tab-bar-mode) > (add-to-list 'tab-bar-format 'tab-bar-format-global 'append) > (display-time-mode -1) > ``` > > This patch instructs tab-bar-mode to ignore daemon's initial frame: So now pushed and closed. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 29 03:01:07 2025 Received: (at 78896) by debbugs.gnu.org; 29 Jun 2025 07:01:07 +0000 Received: from localhost ([127.0.0.1]:54513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVm2D-0003EI-Pa for submit@debbugs.gnu.org; Sun, 29 Jun 2025 03:01:07 -0400 Received: from relay15.mail.gandi.net ([2001:4b98:dc4:8::235]:41957) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uVm1t-00038P-HF for 78896@debbugs.gnu.org; Sun, 29 Jun 2025 03:00:47 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id C853A442E0; Sun, 29 Jun 2025 07:00:37 +0000 (UTC) From: Juri Linkov To: Sean Whitton Subject: Re: master cd8319677d8: * lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896). In-Reply-To: <87y0tc42z1.fsf@zephyr.silentflame.com> Organization: LINKOV.NET References: <175104617609.20653.16889152809947270644@vcs2.savannah.gnu.org> <20250627174256.6B059C10DC9@vcs2.savannah.gnu.org> <87ms9t53i9.fsf@zephyr.silentflame.com> <87y0tc42z1.fsf@zephyr.silentflame.com> Date: Sun, 29 Jun 2025 09:58:08 +0300 Message-ID: <87frfjrq4f.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdekudeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutddtrdejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddttddrjeejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejkeekleeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 78896 Cc: 78896@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.0 (-) [Moving back to bug#78896 for continuity] >>> * lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896). >>> (tab-bar--update-tab-bar-lines): Don't set the frame parameter >>> 'tab-bar-lines' in daemon's initial frame because it messes up the >>> frames when 'format-mode-line' called from 'tab-bar-format-global' >>> on daemon's initial frame forces focus switch to daemon's initial >>> frame. Also don't set 'default-frame-alist' in daemon mode because >>> 'frame-notice-user-settings' copies the frame parameter 'tab-bar-lines' >>> from 'default-frame-alist' to daemon's initial frame. Here updating >>> 'default-frame-alist' is not much needed anyway since the frame >>> parameter 'tab-bar-lines' for new frames is set in 'make_terminal_frame' >>> and 'x-create-frame'. 'default-frame-alist' might be need only >>> to handle non-default 'tab-bar-show', but this can be handled by >>> 'toggle-frame-tab-bar' called from 'server-after-make-frame-hook'. >>> (toggle-frame-tab-bar): Document a useful case of calling it >>> from 'server-after-make-frame-hook'. >> >> This would seem to have broken (setopt tab-bar-show 1). >> In my Emacs the tab bar is now always shown. > > The change to not update default-frame-alist, when (daemonp), is the > problem. According to your commit message "this can be handled by > 'toggle-frame-tab-bar' called from 'server-after-make-frame-hook'". > But clearly it is not being handled. It seems like a regression that I > would now have to add something to server-after-make-frame-hook to make > my tab-bar-show customisation work. Sorry, indeed not handled in 'toggle-frame-tab-bar'. And not sure if it should handle 'tab-bar-show' at all. So need to find a solution that doesn't require using 'toggle-frame-tab-bar'. The most reliable way is to update 'default-frame-alist' even when (daemonp). The problem is that it requires ad-hoc changes in 'frame-notice-user-settings' that I tried to avoid. The docstring of 'default-frame-alist' says: Setting this variable does not affect existing frames, only new ones. But in fact 'frame-notice-user-settings' affects the existing daemon's initial frame. We need to find a fix that ignores it in 'frame-notice-user-settings'. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 29 13:07:52 2025 Received: (at 78896) by debbugs.gnu.org; 29 Jun 2025 17:07:53 +0000 Received: from localhost ([127.0.0.1]:58695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVvVQ-0003GI-BO for submit@debbugs.gnu.org; Sun, 29 Jun 2025 13:07:52 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]:54985) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uVvVN-0003Eq-Bd for 78896@debbugs.gnu.org; Sun, 29 Jun 2025 13:07:50 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 2AD0A439AC; Sun, 29 Jun 2025 17:07:40 +0000 (UTC) From: Juri Linkov To: Sean Whitton Subject: Re: bug#78896: master cd8319677d8: * lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896). In-Reply-To: <87frfjrq4f.fsf@mail.linkov.net> Organization: LINKOV.NET References: <175104617609.20653.16889152809947270644@vcs2.savannah.gnu.org> <20250627174256.6B059C10DC9@vcs2.savannah.gnu.org> <87ms9t53i9.fsf@zephyr.silentflame.com> <87y0tc42z1.fsf@zephyr.silentflame.com> <87frfjrq4f.fsf@mail.linkov.net> Date: Sun, 29 Jun 2025 20:06:44 +0300 Message-ID: <87plempjdn.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdelfeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutddtrdejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddttddrjeejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejkeekleeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78896 Cc: 78896@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 (-) > The most reliable way is to update 'default-frame-alist' even when > (daemonp). The problem is that it requires ad-hoc changes in > 'frame-notice-user-settings' that I tried to avoid. > > The docstring of 'default-frame-alist' says: > > Setting this variable does not affect existing frames, only new ones. > > But in fact 'frame-notice-user-settings' affects the existing > daemon's initial frame. We need to find a fix that ignores it > in 'frame-notice-user-settings'. So I added 'tab-bar-lines' handling for daemon's initial frame to 'frame-notice-user-settings'. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 29 17:28:55 2025 Received: (at 78896) by debbugs.gnu.org; 29 Jun 2025 21:28:55 +0000 Received: from localhost ([127.0.0.1]:60815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVza2-0007KG-PR for submit@debbugs.gnu.org; Sun, 29 Jun 2025 17:28:55 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:44744) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uVzZz-0007Iv-76 for 78896@debbugs.gnu.org; Sun, 29 Jun 2025 17:28:52 -0400 DKIM-Signature: a=rsa-sha256; b=v6tBnyt3yNt6UNEiejKX3f5YsmJdp0Jdpgyyy7s1Kmhqcp0cudEOh1ycVZYB8nVxkrvfCiiGSNEBHIi4Q0GS34c5a2f+oC27STRCttYluIlbvaoaf+KVmwU/q56ufd0h8Z2uEo4RjWBjvqcKHcgM88trXlM9YSwP8+9yA+dz5MA/HG+7+x54f5Iatpg80eUY2VBe9GLUXa6dguCCp29DGUiR2Pjk4rtM4sY6W7DbYxGcTBXXyAgb/yB9Y6dC0LkdU31slV7gQ6p7wQIgKN9ZRY2iCtA2b22a/TDSSZ/DWhqyTDXgSv9XR/0hIo+B8gT3wXSh138CPtrkSBgetsqQug==; s=purelymail1; d=spwhitton.name; v=1; bh=oyRRUF9kJ0Z7FbzumPLiwamHeXii2TtDBG0neeSP9kE=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=YxvNsV2hAfWHyA+afziEk8dkHnXFXua6Qz7God1AAZoXrXRF+jT6IEkK2dqRRKykeDFc0kg/0twPsLWfoikCqknTOb7lP+TjItjXigy2VRU2WLzHfVYKHdHIen7D7nPXlplRAzp0JeoKpCqiA13sAi+2mmScJJ16YcxnQp362RW9nPNURoUHQ3Di+/TMLg+8YJIuyj20jIVw2A0qIyeAZYuWXQPZgEf2TaMra7sU9LhYCWNaJI85jZ1uRzYcO/kp2IvAJj9MOAR/EhIeotz/LNlzcQtYVy65nntr/O5t6UV1ZJi1loi7o1hRI/6wu0U1eQ/NBaaOT5GSi1tVdyffpQ==; s=purelymail1; d=purelymail.com; v=1; bh=oyRRUF9kJ0Z7FbzumPLiwamHeXii2TtDBG0neeSP9kE=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 78896@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -947240890; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 29 Jun 2025 21:28:42 +0000 (UTC) Received: by zephyr.silentflame.com (Postfix, from userid 1000) id 0027D9403D3; Sun, 29 Jun 2025 22:28:41 +0100 (BST) From: Sean Whitton To: Juri Linkov Subject: Re: bug#78896: master cd8319677d8: * lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896). In-Reply-To: <87plempjdn.fsf@mail.linkov.net> References: <175104617609.20653.16889152809947270644@vcs2.savannah.gnu.org> <20250627174256.6B059C10DC9@vcs2.savannah.gnu.org> <87ms9t53i9.fsf@zephyr.silentflame.com> <87y0tc42z1.fsf@zephyr.silentflame.com> <87frfjrq4f.fsf@mail.linkov.net> <87plempjdn.fsf@mail.linkov.net> Date: Sun, 29 Jun 2025 22:28:41 +0100 Message-ID: <87jz4uutiu.fsf@zephyr.silentflame.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78896 Cc: 78896@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.0 (-) Hello, On Sun 29 Jun 2025 at 08:06pm +03, Juri Linkov wrote: >> The most reliable way is to update 'default-frame-alist' even when >> (daemonp). The problem is that it requires ad-hoc changes in >> 'frame-notice-user-settings' that I tried to avoid. >> >> The docstring of 'default-frame-alist' says: >> >> Setting this variable does not affect existing frames, only new ones. >> >> But in fact 'frame-notice-user-settings' affects the existing >> daemon's initial frame. We need to find a fix that ignores it >> in 'frame-notice-user-settings'. > > So I added 'tab-bar-lines' handling for daemon's initial frame > to 'frame-notice-user-settings'. That fixes the problem I was seeing -- thanks! -- Sean Whitton From unknown Fri Aug 15 12:49:21 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, 28 Jul 2025 11:24:07 +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