From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#71601: 29.1; force-mode-line-update does not refresh names of tab-lines Date: Sun, 16 Jun 2024 23:58:02 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10213"; mail-complaints-to="usenet@ciao.gmane.io" To: 71601@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 17 00:59:17 2024 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 1sIyqC-0002Xa-UX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 00:59:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIypy-0007TA-R4; Sun, 16 Jun 2024 18:59:02 -0400 Original-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 1sIypx-0007SZ-Kk for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 18:59:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIypx-0003xv-Cn for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 18:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIypy-0004Cb-Hy for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2024 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71601 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.171857869916104 (code B ref -1); Sun, 16 Jun 2024 22:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jun 2024 22:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:56549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIypH-0004Bg-CZ for submit@debbugs.gnu.org; Sun, 16 Jun 2024 18:58:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIypF-0004BY-4F for submit@debbugs.gnu.org; Sun, 16 Jun 2024 18:58:17 -0400 Original-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 1sIypD-0007Ie-8O for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 18:58:15 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIypB-0003s7-GS for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 18:58:15 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-35f22d3abf1so3479430f8f.1 for ; Sun, 16 Jun 2024 15:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718578691; x=1719183491; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=rpMQZJ08VnjWjGCcHUVGwT/UxQBYRLvuVToUrBOgRTc=; b=OypNhWx8mrYIeQBuQ/QbCdqeP5cmAfwAeLqNpAwx2AvNNocLYiFIt+tOK5CzlE6mJv /LuI/1GOV++ksTzQGFZR1+NLUsMyQfDdRrUVUsbB66nJMcXHzUx1jl4HQY/ob62Md9Hx 4HracAB2qnWj6eqnsreUwpFIlNG4BNvkdksKXZdDsn/ap8W5dIYyi+gOOVkfhMyyrQwG 1Kl3YRyPoq/Q3KBDwS2F0q9UMMpfBeQWfXgxiN8eqLJlD4r1bLhMCTsTeXfJQkhf7UAh jl7EYar8lKppjCdZ4wi5WJD3vlr3njWUVQ7CZZfEyTUx6P3dWkWkUgjteArAZijehv/e 9V/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718578691; x=1719183491; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rpMQZJ08VnjWjGCcHUVGwT/UxQBYRLvuVToUrBOgRTc=; b=NeJj7gJjCu6YfpyHaDXAEz6M6OygeLvoFBFZaO1aE9x9NQzJ3tIuS0az3mk928GrXu 3q3cMrlOvhRQnGadotjpyW5hLbV2wmkSASS1KqObodODNYdEm2Xu5ZJgUrDbToBw1rVm G8Ql3fgkMadbKJRLdF+qgyuEDhN5wPYc3CE5KdgPxrDFtG5zfXinEKJVuOaIBmTF30pD UjF68hb0AG3W3fAwLL4CLmaF6W9M2QhtLNNdXOM2bHc+LlpbWZ0HXzA3KGnIQQEoghzg 4y3MHW8b5w66qGNiffqGGEBuIoWMNblmCPWdQdpMPK0FsPxa6eZHhgC4GGgJB0HcXX2/ hVfg== X-Gm-Message-State: AOJu0YyWKq7LGEs/fxeEVkrzECf6SMTKG6JNEzHmdeGphEu5/Pn/PxuT xICqc5GRt6b71QS2OColdjdIWC97M7PDPz5dvfcH03FwGecnh49Q0oSATQ== X-Google-Smtp-Source: AGHT+IE+y/Tx748Tw+JR864/jKaXNbmUuzVvoh9kjvkYHHpDgCvoIgTWX7TzMbD02CbSciaUaQruBA== X-Received: by 2002:adf:e503:0:b0:360:6e47:ce8a with SMTP id ffacd0b85a97d-3607a768386mr5682176f8f.32.1718578691079; Sun, 16 Jun 2024 15:58:11 -0700 (PDT) Original-Received: from localhost (sgyl-45-b2-v4wan-166941-cust3717.vm6.cable.virginm.net. [82.37.190.134]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-360750f2716sm10636696f8f.70.2024.06.16.15.58.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 15:58:10 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=abdo.haji.ali@gmail.com; helo=mail-wr1-x433.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287345 Archived-At: In an `emacs -Q`, I tried the following code: (progn (tab-line-mode) (setq-local tab-line-tab-name-function (defun my/tab-name(tab &optional _) (with-current-buffer tab (concat (buffer-name) " " (format-time-string "%S")))))) This works fine and I get the seconds after the buffer-name. However, I seem to have no way of updating the tab-line to cause the names to be refreshed (except to add or remove a tab). The documentation of `force-mode-line-update` and the `:set` code of `tab-line-tab-name-function` suggest that calling `(force-mode-line-update t)` would do the trick, but on my Emacs, this does not work. Is this a bug or am I misunderstanding the documentation? I apologize that I am unable to test this on Emacs 30. -- Al In GNU Emacs 29.1 (build 1, aarch64-apple-darwin22.5.0, Carbon Version 169 AppKit 2299.6) of 2023-09-09 built on m2air.local Windowing system distributor 'Apple Inc.', version 14.1.2 System Description: macOS 14.1.2 Configured using: 'configure --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-mac/emacs-29.1-mac-10.0/share/info --mandir=/opt/homebrew/Cellar/emacs-mac/emacs-29.1-mac-10.0/share/man --prefix=/opt/homebrew/Cellar/emacs-mac/emacs-29.1-mac-10.0 --with-mac --enable-mac-app=/opt/homebrew/Cellar/emacs-mac/emacs-29.1-mac-10.0 --with-gnutls --with-modules --with-mac-metal --with-native-compilation --with-tree-sitter 'CFLAGS=-I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include' 'LDFLAGS=-L/opt/homebrew/lib/gcc/13 -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include'' Configured features: ACL GLIB GMP GNUTLS JSON LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER XIM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tab-line-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mac-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 mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print byte-opt debug backtrace find-func tab-line time-date cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib jka-compr info rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/mac-win mac-win term/common-win 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 kqueue mac multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 96353 12870) (symbols 48 8005 0) (strings 32 24415 2462) (string-bytes 1 758586) (vectors 16 19730) (vector-slots 8 372131 16557) (floats 8 35 184) (intervals 56 535 0) (buffers 984 17))