GNU bug report logs - #42957
28.0.50; Tool bar button click doesn't update the tool bar immediately

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Mauro Aranda <maurooaranda@HIDDEN>; dated Thu, 20 Aug 2020 14:53:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Aug 2020 14:52:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 20 10:52:24 2020
Received: from localhost ([127.0.0.1]:43376 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k8lvU-0003Kd-8k
	for submit <at> 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 <maurooaranda@HIDDEN>) id 1k8lvR-0003KU-OC
 for submit <at> 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 <maurooaranda@HIDDEN>)
 id 1k8lvR-0002cx-CH
 for bug-gnu-emacs@HIDDEN; 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 <maurooaranda@HIDDEN>)
 id 1k8lvP-0003v1-2P
 for bug-gnu-emacs@HIDDEN; Thu, 20 Aug 2020 10:52:20 -0400
Received: by mail-wr1-x42c.google.com with SMTP id f7so2333216wrw.1
 for <bug-gnu-emacs@HIDDEN>; 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 <maurooaranda@HIDDEN>
Date: Thu, 20 Aug 2020 11:52:04 -0300
Message-ID: <CABczVwfRy+KG0fGWdoJaA64W65FsgsPi=9DM7MmMz-UAkKnsUg@HIDDEN>
Subject: 28.0.50; Tool bar button click doesn't update the tool bar immediately
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000002c477905ad504421"
Received-SPF: pass client-ip=2a00:1450:4864:20::42c;
 envelope-from=maurooaranda@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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

<div dir=3D"ltr">Consider the following:<br>1. emacs -Q<br>2. In the scratc=
h buffer, evaluate the following:<br>(defvar foo t)<br><br>(defun set-foo-t=
o-nil ()<br>=C2=A0 &quot;Set `foo&#39; to nil.&quot;<br>=C2=A0 (interactive=
)<br>=C2=A0 (setq foo nil))<br><br>(tool-bar-add-item &quot;refresh&quot; &=
#39;set-foo-to-nil nil :enable &#39;foo<br>		 =C2=A0 :label &quot;foo-refre=
sh&quot;)<br><br>3. Do some clicks or whatever, so that the item foo-refres=
h appears (I<br>guess this is bug#19480).<br>4. Now click the foo-refresh b=
utton.=C2=A0 I expected the button to get<br>disabled immediately, but that=
 doesn&#39;t happen.<br>5. Click in the buffer, and the button will be disa=
bled.<br><br>Could Emacs update the tool bar immediately when the user clic=
ks on a<br>tool bar button? Or am I forced (no pun intended) to use<br>`for=
ce-mode-line-update&#39; in the commands that may alter the<br><div>enable/=
disable state of the tool bar buttons, even when the commands</div><div>run=
 because of a tool bar button click?</div><div><br></div><div></div><br>In =
GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cair=
o version 1.15.10)<br>=C2=A0of 2020-08-20 built on tbb-desktop<br>Repositor=
y revision: a566e409d0d962d3c2870691175836da22c31111<br>Repository branch: =
master<br>Windowing system distributor &#39;The X.Org Foundation&#39;, vers=
ion 11.0.12008000<br>System Description: Ubuntu 18.04.5 LTS<br><br>Configur=
ed features:<br>XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIF=
Y INOTIFY<br>GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3=
 X11 XDBE<br>XIM MODULES THREADS PDUMPER<br><br>Important settings:<br>=C2=
=A0 value of $LC_MONETARY: es_AR.UTF-8<br>=C2=A0 value of $LC_NUMERIC: es_A=
R.UTF-8<br>=C2=A0 value of $LC_TIME: es_AR.UTF-8<br>=C2=A0 value of $LANG: =
en_US.UTF-8<br>=C2=A0 locale-coding-system: utf-8-unix<br><br>Major mode: L=
isp Interaction<br><br>Minor modes in effect:<br>=C2=A0 tooltip-mode: t<br>=
=C2=A0 global-eldoc-mode: t<br>=C2=A0 eldoc-mode: t<br>=C2=A0 electric-inde=
nt-mode: t<br>=C2=A0 mouse-wheel-mode: t<br>=C2=A0 tool-bar-mode: t<br>=C2=
=A0 menu-bar-mode: t<br>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-fo=
nt-lock-mode: t<br>=C2=A0 font-lock-mode: t<br>=C2=A0 blink-cursor-mode: t<=
br>=C2=A0 auto-composition-mode: t<br>=C2=A0 auto-encryption-mode: t<br>=C2=
=A0 auto-compression-mode: t<br>=C2=A0 line-number-mode: t<br>=C2=A0 transi=
ent-mark-mode: t<br><br>Load-path shadows:<br>None found.<br><br>Features:<=
br>(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs<br=
>rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config<br>g=
nus-util rmail rmail-loaddefs text-property-search seq byte-opt gv<br>bytec=
omp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse<br>rfc2231 =
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045<br>ietf-drums mm-u=
til mail-prsvr mail-utils time-date subr-x cl-loaddefs<br>cl-lib tooltip el=
doc electric uniquify ediff-hook vc-hooks<br>lisp-float-type mwheel term/x-=
win x-win term/common-win x-dnd tool-bar<br>dnd fontset image regexp-opt fr=
inge tabulated-list replace newcomment<br>text-mode elisp-mode lisp-mode pr=
og-mode register page tab-bar menu-bar<br>rfn-eshadow isearch timer select =
scroll-bar mouse jit-lock font-lock<br>syntax facemenu font-core term/tty-c=
olors frame minibuffer cl-generic<br>cham georgian utf-8-lang misc-lang vie=
tnamese tibetan thai tai-viet lao<br>korean japanese eucjp-ms cp51932 hebre=
w greek romanian slovak czech<br>european ethiopic indian cyrillic chinese =
composite charscript charprop<br>case-table epa-hook jka-cmpr-hook help sim=
ple abbrev obarray<br>cl-preloaded nadvice loaddefs button faces cus-face m=
acroexp files<br>text-properties overlay sha1 md5 base64 format env code-pa=
ges mule<br>custom widget hashtable-print-readable backquote threads dbusbi=
nd<br>inotify dynamic-setting system-font-setting font-render-setting cairo=
<br>move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)<br><=
br>Memory information:<br>((conses 16 44547 5333)<br>=C2=A0(symbols 48 5963=
 1)<br>=C2=A0(strings 32 15413 1637)<br>=C2=A0(string-bytes 1 503972)<br>=
=C2=A0(vectors 16 9833)<br>=C2=A0(vector-slots 8 144854 10085)<br>=C2=A0(fl=
oats 8 21 45)<br>=C2=A0(intervals 56 224 4)<br>=C2=A0(buffers 992 11))<br><=
/div>

--0000000000002c477905ad504421--




Acknowledgement sent to Mauro Aranda <maurooaranda@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#42957; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 20 Aug 2020 15:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.