From unknown Fri Jun 20 18:17:25 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#42957 <42957@debbugs.gnu.org> To: bug#42957 <42957@debbugs.gnu.org> Subject: Status: 28.0.50; Tool bar button click doesn't update the tool bar immediately Reply-To: bug#42957 <42957@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:17:25 +0000 retitle 42957 28.0.50; Tool bar button click doesn't update the tool bar im= mediately reassign 42957 emacs submitter 42957 Mauro Aranda severity 42957 normal tag 42957 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 20 10:52:24 2020 Received: (at submit) by debbugs.gnu.org; 20 Aug 2020 14:52:24 +0000 Received: from localhost ([127.0.0.1]:43376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8lvU-0003Kd-8k for submit@debbugs.gnu.org; Thu, 20 Aug 2020 10:52:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:34310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8lvR-0003KU-OC for submit@debbugs.gnu.org; Thu, 20 Aug 2020 10:52:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8lvR-0002cx-CH for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 10:52:21 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:34041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8lvP-0003v1-2P for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 10:52:20 -0400 Received: by mail-wr1-x42c.google.com with SMTP id f7so2333216wrw.1 for ; Thu, 20 Aug 2020 07:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kKvZ2i0TeALEn74ZHACJNcInxntZQ792z7ilTgPTYuU=; b=FRh3xaqloOBfQRwev5ad8rDv1gUExRFByJdacMRDr7Ts/u094BFmQmduFct8o5+844 nr6kIA0DmXlE5hTSp50axWr3a64rsM3hxfxVLYCm6RcwB8GfK8qmheOc4IJ+2O6/guO1 JR/0dEtPHzzMKW7s34r4jYZmfutWanoyEQ/xI30KBibrwDJHmDrMMivo/Aq1o0PsS1+t gk/zIZ7si28YNThSPIM9QGCdKLyibcOz6MZpQ0RHwZYqSI6IPsgRnmAE1zWpbNPHDKPa 1AN4PZi1V7/aLHdilOPXd+k1frPLZ4srtKuEY3TbWlN8axuLCRQoC9fFZbjne3dVvkPR 2TlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kKvZ2i0TeALEn74ZHACJNcInxntZQ792z7ilTgPTYuU=; b=irisb1HNh1rOuvjXWrptRT1eSEcV2cOPiMF41jNeS2A+2GA9INS6kIDNQ4UCA63fcK c5FSNHe3epmkgHZoFWJCj8/A0oFpjetKwhmFTo0l4RSn5gGFJkr0eHVnTjcYj25bOoed W8QVRvooCb3cvrKrqnmYxdOcbixw8ljvioEeHHSN/Fsq8H9I+JID8F74xt9ws/Qt7Mc1 2e2DweaBVjfVZV1HLd90OcN4/McTxjXO+JS8y3jeXe1oebua5ZoosbS6lpq8VCMp+33F km9nZAmi69qMi0lij9WAo/VCjeN2Nod4Pdm/czsZCu554Nf/PoFBk7YyNazN0CHQzrIC 5eLA== X-Gm-Message-State: AOAM533sl0yt15d/BW+f3kI3AwXZaZvRQkwDAoVnb00oJPjoqMlCLy1H rAGidP/Nfq7kSobhQd3p3e+ZoMndVRii5EZ/+bH0WgmWw2MIMQ== X-Google-Smtp-Source: ABdhPJwbO5ItMlcxywOX13N+1qCszb8pJxgr34VrkLHdUm1fbjRKjTgs/dNNU8eqL4ViE6/vFsGcXbCskt67BR7kyiw= X-Received: by 2002:adf:e94c:: with SMTP id m12mr3586443wrn.109.1597935136293; Thu, 20 Aug 2020 07:52:16 -0700 (PDT) MIME-Version: 1.0 From: Mauro Aranda Date: Thu, 20 Aug 2020 11:52:04 -0300 Message-ID: Subject: 28.0.50; Tool bar button click doesn't update the tool bar immediately To: bug-gnu-emacs Content-Type: multipart/alternative; boundary="0000000000002c477905ad504421" Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=maurooaranda@gmail.com; helo=mail-wr1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=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.3 (--) --0000000000002c477905ad504421 Content-Type: text/plain; charset="UTF-8" Consider the following: 1. emacs -Q 2. In the scratch buffer, evaluate the following: (defvar foo t) (defun set-foo-to-nil () "Set `foo' to nil." (interactive) (setq foo nil)) (tool-bar-add-item "refresh" 'set-foo-to-nil nil :enable 'foo :label "foo-refresh") 3. Do some clicks or whatever, so that the item foo-refresh appears (I guess this is bug#19480). 4. Now click the foo-refresh button. I expected the button to get disabled immediately, but that doesn't happen. 5. Click in the buffer, and the button will be disabled. Could Emacs update the tool bar immediately when the user clicks on a tool bar button? Or am I forced (no pun intended) to use `force-mode-line-update' in the commands that may alter the enable/disable state of the tool bar buttons, even when the commands run because of a tool bar button click? In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-08-20 built on tbb-desktop Repository revision: a566e409d0d962d3c2870691175836da22c31111 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 18.04.5 LTS Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER Important settings: value of $LC_MONETARY: es_AR.UTF-8 value of $LC_NUMERIC: es_AR.UTF-8 value of $LC_TIME: es_AR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-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 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 easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs cl-lib 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 timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 loaddefs button faces cus-face macroexp files 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 move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 44547 5333) (symbols 48 5963 1) (strings 32 15413 1637) (string-bytes 1 503972) (vectors 16 9833) (vector-slots 8 144854 10085) (floats 8 21 45) (intervals 56 224 4) (buffers 992 11)) --0000000000002c477905ad504421 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Consider the following:
1. emacs -Q
2. In the scratc= h buffer, evaluate the following:
(defvar foo t)

(defun set-foo-t= o-nil ()
=C2=A0 "Set `foo' to nil."
=C2=A0 (interactive= )
=C2=A0 (setq foo nil))

(tool-bar-add-item "refresh" &= #39;set-foo-to-nil nil :enable 'foo
=C2=A0 :label "foo-refre= sh")

3. Do some clicks or whatever, so that the item foo-refres= h appears (I
guess this is bug#19480).
4. Now click the foo-refresh b= utton.=C2=A0 I expected the button to get
disabled immediately, but that= doesn't happen.
5. Click in the buffer, and the button will be disa= bled.

Could Emacs update the tool bar immediately when the user clic= ks on a
tool bar button? Or am I forced (no pun intended) to use
`for= ce-mode-line-update' in the commands that may alter the
enable/= disable state of the tool bar buttons, even when the commands
run= because of a tool bar button click?


In = GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cair= o version 1.15.10)
=C2=A0of 2020-08-20 built on tbb-desktop
Repositor= y revision: a566e409d0d962d3c2870691175836da22c31111
Repository branch: = master
Windowing system distributor 'The X.Org Foundation', vers= ion 11.0.12008000
System Description: Ubuntu 18.04.5 LTS

Configur= ed features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIF= Y INOTIFY
GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3= X11 XDBE
XIM MODULES THREADS PDUMPER

Important settings:
=C2= =A0 value of $LC_MONETARY: es_AR.UTF-8
=C2=A0 value of $LC_NUMERIC: es_A= R.UTF-8
=C2=A0 value of $LC_TIME: es_AR.UTF-8
=C2=A0 value of $LANG: = en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: L= isp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
= =C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-inde= nt-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2= =A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-fo= nt-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t<= br>=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2= =A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transi= ent-mark-mode: t

Load-path shadows:
None found.

Features:<= br>(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefsrfc822 mml easymenu mml-sec password-cache epa derived epg epg-config
g= nus-util rmail rmail-loaddefs text-property-search seq byte-opt gv
bytec= omp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse
rfc2231 = mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-u= til mail-prsvr mail-utils time-date subr-x cl-loaddefs
cl-lib tooltip el= doc 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 fr= inge tabulated-list replace newcomment
text-mode elisp-mode lisp-mode pr= og-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select = scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-c= olors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vie= tnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebre= w greek romanian slovak czech
european ethiopic indian cyrillic chinese = composite charscript charprop
case-table epa-hook jka-cmpr-hook help sim= ple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face m= acroexp files
text-properties overlay sha1 md5 base64 format env code-pa= ges mule
custom widget hashtable-print-readable backquote threads dbusbi= nd
inotify dynamic-setting system-font-setting font-render-setting cairo=
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)
<= br>Memory information:
((conses 16 44547 5333)
=C2=A0(symbols 48 5963= 1)
=C2=A0(strings 32 15413 1637)
=C2=A0(string-bytes 1 503972)
= =C2=A0(vectors 16 9833)
=C2=A0(vector-slots 8 144854 10085)
=C2=A0(fl= oats 8 21 45)
=C2=A0(intervals 56 224 4)
=C2=A0(buffers 992 11))
<= /div> --0000000000002c477905ad504421-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 05:10:44 2020 Received: (at 42957) by debbugs.gnu.org; 16 Oct 2020 09:10:45 +0000 Received: from localhost ([127.0.0.1]:57670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTLl6-0002Rv-Nn for submit@debbugs.gnu.org; Fri, 16 Oct 2020 05:10:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTLl1-0002Rd-Kr for 42957@debbugs.gnu.org; Fri, 16 Oct 2020 05:10:43 -0400 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=3msw7zKQxbw9LAQhkNqmULCTAtKNBhHMX3Wrcu8HpFs=; b=WoPDdgfVlWzH3MYWZnewyWJpGq +I1VxvPqsDmDGLSniJjpPzcxcjjoqEoMZZbJ1Lpbaf8f4bkVpPAwjvte25pFrK3SFegZgHCF8Gxqn c5HCaRGKDOr3GnprlnRanX19DsC6WpQkcjMbstvbYVw8DYMr/Zihvpy973NoPlEkiAqs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTLkn-00014r-P0; Fri, 16 Oct 2020 11:10:33 +0200 From: Lars Ingebrigtsen To: Mauro Aranda Subject: Re: bug#42957: 28.0.50; Tool bar button click doesn't update the tool bar immediately References: X-Now-Playing: Janka Nabay & The Bubu Gang's _En yah say_: "Ro lungi" Date: Fri, 16 Oct 2020 11:10:24 +0200 In-Reply-To: (Mauro Aranda's message of "Thu, 20 Aug 2020 11:52:04 -0300") Message-ID: <874kmubkov.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Mauro Aranda writes: > 4. Now click the foo-refresh button. I expected the button to get > disabled immediately, but that doesn't happen. > 5. Click in the buffer, and the button will be disabled. 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: 0.0 (/) X-Debbugs-Envelope-To: 42957 Cc: 42957@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 (-) Mauro Aranda writes: > 4. Now click the foo-refresh button. I expected the button to get > disabled immediately, but that doesn't happen. > 5. Click in the buffer, and the button will be disabled. Yup; this problem is still present on the trunk. > Could Emacs update the tool bar immediately when the user clicks on a > tool bar button? Or am I forced (no pun intended) to use > `force-mode-line-update' in the commands that may alter the > enable/disable state of the tool bar buttons, even when the commands > run because of a tool bar button click? I don't know, but if Emacs can't do that, then this should be documented, at least. This is documented in other context, like: -- The menu bar does not recalculate which items are enabled every time you look at a menu. This is because the X toolkit requires the whole tree of menus in advance. To force recalculation of the menu bar, call @code{force-mode-line-update} (@pxref{Mode Line Format}). -- But not in the tool bar sections, as far as I can see. But I guess if the menu bar doesn't update automatically on enabling, then it would perhaps be surprising that tool bars do. So I think we should just document this quirk? Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 08:56:50 2020 Received: (at 42957) by debbugs.gnu.org; 13 Dec 2020 13:56:50 +0000 Received: from localhost ([127.0.0.1]:47781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRrm-0001iE-8r for submit@debbugs.gnu.org; Sun, 13 Dec 2020 08:56:50 -0500 Received: from mail-qt1-f182.google.com ([209.85.160.182]:38130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRrk-0001i1-Fa for 42957@debbugs.gnu.org; Sun, 13 Dec 2020 08:56:48 -0500 Received: by mail-qt1-f182.google.com with SMTP id y15so10057155qtv.5 for <42957@debbugs.gnu.org>; Sun, 13 Dec 2020 05:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:to:cc:subject:references:date:in-reply-to :user-agent:mime-version; bh=DusFyxIovCRlZtZkneck+L2gAPEgJ3/P+49ZwQaSVw8=; b=nwR0fh3e7dB59EZIx3Sjg2c+z2YTm/l28vj6fVYNtZBI2bnCFCXQNIYrcZ+yRJn1J8 W+40q8S6KcIKoQj2ODYk6MMjmuSiDFAJrBg2gNyGeqHfuo4rEiJSQCv6clq0CAxZDaSb SZCwa/Wb/QGy4jwVMOzJeG5qvG8L3EoM9EHsTQlHd+J31pL7Gk2WHuU0Ku5IgtOI/ihs L+LOuknZGUGZ7oPt8ISjNPzo4ZLqhlk7Nd3TMxJU7HDgzRBEmXEsVq6TxlV1/u/SlO66 hdRIt1u9ewIIx45J42HgZkxqhQlU5M+JXdqxBadol/EJSBLWGFRB4FXxUcXWOxhltvIW zwcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:subject:references:date :in-reply-to:user-agent:mime-version; bh=DusFyxIovCRlZtZkneck+L2gAPEgJ3/P+49ZwQaSVw8=; b=FwO4NWSqBQcoIlPPuxxLbmidpn6o1LfOqVqrXnWXQYytZwM7wDgpqsNpFTV1YWX+DD KPTUA70DxaIrS00T+SVoNTgG5EDlADGoX+Zbn3Cicj8C1C/TW7ww3UQ6L/bSyiBnFW7J QBBHPXKDkLjteRjfJ6a6InA1pIpqANSzGpz05RL5opyB42VTHh+gms5CmWteLIz2O1+2 IEajAQTmAvK+9ZY+sxLxvMA944YcRME4FcVNiBz9E5hhI6idxUjZvpI6AW9ky5a6A8Or hJVD5GyduvWO0ATmi20C8HfYRb7TLMjK0gElKnXCfFBAd2O6ull0C5AiKCn6vyyfznSY RlDA== X-Gm-Message-State: AOAM533P2f33z/WWG7nW0qPHxDXgl2BzTYQ/nxk1JG2DBB7TWrjtHvme 0prVl/OLFU2bpFmIVqnhHhUSg54FEcG2Yg== X-Google-Smtp-Source: ABdhPJwrkHLQiVAGbo0y6GfHBv6bp3ElMsGQww6SwsAp9+aZO23s/MjsqGjQiQcURIUjftTbobSQfw== X-Received: by 2002:a05:622a:213:: with SMTP id b19mr27189237qtx.199.1607867802679; Sun, 13 Dec 2020 05:56:42 -0800 (PST) Received: from tbb-desktop ([201.213.132.172]) by smtp.gmail.com with ESMTPSA id a9sm1989571qtm.80.2020.12.13.05.56.41 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Dec 2020 05:56:42 -0800 (PST) Message-ID: <5fd61d9a.1c69fb81.48582.6656@mx.google.com> X-Google-Original-Message-ID: <87k0tl4xns.fsf@maurooaranda@gmail.com> From: Mauro Aranda To: Lars Ingebrigtsen Subject: Re: bug#42957: 28.0.50; Tool bar button click doesn't update the tool bar immediately References: <874kmubkov.fsf@gnus.org> Date: Sun, 13 Dec 2020 10:56:39 -0300 In-Reply-To: <874kmubkov.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Oct 2020 11:10:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 42957 Cc: 42957@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 (-) Lars Ingebrigtsen writes: > Mauro Aranda writes: > >> 4. Now click the foo-refresh button. I expected the button to get >> disabled immediately, but that doesn't happen. >> 5. Click in the buffer, and the button will be disabled. > > Yup; this problem is still present on the trunk. > >> Could Emacs update the tool bar immediately when the user clicks on a >> tool bar button? Or am I forced (no pun intended) to use >> `force-mode-line-update' in the commands that may alter the >> enable/disable state of the tool bar buttons, even when the commands >> run because of a tool bar button click? > > I don't know, but if Emacs can't do that, then this should be > documented, at least. This is documented in other context, like: > > -- > The menu bar does not recalculate which items are enabled every time you > look at a menu. This is because the X toolkit requires the whole tree > of menus in advance. To force recalculation of the menu bar, call > @code{force-mode-line-update} (@pxref{Mode Line Format}). > -- > > But not in the tool bar sections, as far as I can see. But I guess if > the menu bar doesn't update automatically on enabling, then it would > perhaps be surprising that tool bars do. > > So I think we should just document this quirk? Any opinions? Hi Lars, Thanks for taking a look, and sorry it took me so long to reply back. If it can't be done easily, I'm fine with closing this report as a wontfix. It doesn't annoy me too much to put some force-mode-line-update calls here and there. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 11:08:26 2020 Received: (at 42957) by debbugs.gnu.org; 14 Dec 2020 16:08:26 +0000 Received: from localhost ([127.0.0.1]:53920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqOf-0008KJ-Tn for submit@debbugs.gnu.org; Mon, 14 Dec 2020 11:08:26 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqOd-0008Jz-Q8 for 42957@debbugs.gnu.org; Mon, 14 Dec 2020 11:08:24 -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=WuFWRyYfEebZq8aVol+alDzafivy4ZxPAno3Aed0zkQ=; b=BPdkcm4HeaEkwrEMIFDVjYfI3d RVvDyAFLFJlSnFjXdhCo/7i2Y6WB00AC1AaT2UBnU68QNBLfa7lmh3N0Ru6Zk8IMiIaovthoDel5w hhrYGO0eJE6qVpdSZlT5WSq4ZKgq3ti0RoF+w8LCjMG0NvBeA4RyktDhZy0yyDUmsGFQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koqOV-00047Z-Bo; Mon, 14 Dec 2020 17:08:17 +0100 From: Lars Ingebrigtsen To: Mauro Aranda Subject: Re: bug#42957: 28.0.50; Tool bar button click doesn't update the tool bar immediately References: <874kmubkov.fsf@gnus.org> <5fd61d9a.1c69fb81.48582.6656@mx.google.com> X-Now-Playing: Laurie Freelove's _Songs From The Nineline_: "The Invisible Invisible" Date: Mon, 14 Dec 2020 17:08:14 +0100 In-Reply-To: <5fd61d9a.1c69fb81.48582.6656@mx.google.com> (Mauro Aranda's message of "Sun, 13 Dec 2020 10:56:39 -0300") Message-ID: <87mtyg1ic1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Mauro Aranda writes: > Thanks for taking a look, and sorry it took me so long to reply back. > > If it can't be done easily, I'm fine with closing this report as a > wontfix. It doesn't annoy me too much to put some > for [...] 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: 0.0 (/) X-Debbugs-Envelope-To: 42957 Cc: 42957@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 (-) Mauro Aranda writes: > Thanks for taking a look, and sorry it took me so long to reply back. > > If it can't be done easily, I'm fine with closing this report as a > wontfix. It doesn't annoy me too much to put some > force-mode-line-update calls here and there. I've now mentioned this quirk in the Tool Bar node in the manual, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 11:08:36 2020 Received: (at control) by debbugs.gnu.org; 14 Dec 2020 16:08:36 +0000 Received: from localhost ([127.0.0.1]:53923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqOq-0008Kk-5P for submit@debbugs.gnu.org; Mon, 14 Dec 2020 11:08:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqOo-0008KY-Rv for control@debbugs.gnu.org; Mon, 14 Dec 2020 11:08:35 -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=j83Kjj1UPoqBDAzdqowtYFuGBH0Rmf1/aKfTTtXY/fo=; b=nJpxF2ikPQcX2faKPY+tQJNfGQ lF79io8kqwGnltaDqmfiue5BpDBf7svDPFgVa89g3kWNtN4iXzdlOxtwHT0LsUqEqjsDeAoMnTTpu d2/axHvov4TIoHFwcA9Uuq8uOAUgsGxyfTnhVabytKbmJMVBe5+JIgdVo7wd6wzuap+A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koqOh-00047k-BD for control@debbugs.gnu.org; Mon, 14 Dec 2020 17:08:29 +0100 Date: Mon, 14 Dec 2020 17:08:26 +0100 Message-Id: <87lfe01ibp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42957 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 42957 fixed close 42957 28.1 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: 0.0 (/) 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: -1.0 (-) tags 42957 fixed close 42957 28.1 quit From unknown Fri Jun 20 18:17:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 12 Jan 2021 12: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