From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43397: 28.0.50; Adding tool bar items: update tool bar Date: Fri, 27 Aug 2021 18:04:33 -0400 Message-ID: References: <87h7s0jurl.fsf@gmail.com> <83lfhb83hm.fsf@gnu.org> <874kban5vm.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40068"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43397@debbugs.gnu.org, Eli Zaretskii , Caio Henrique To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 28 00:05:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJjyM-000ABo-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Aug 2021 00:05:14 +0200 Original-Received: from localhost ([::1]:57306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJjyK-0005E3-AN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 18:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJjyA-0005DW-Sc for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 18:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJjyA-0008H5-Ku for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 18:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJjyA-0002sc-6c for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 18:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Aug 2021 22:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43397 X-GNU-PR-Package: emacs Original-Received: via spool by 43397-submit@debbugs.gnu.org id=B43397.163010189111048 (code B ref 43397); Fri, 27 Aug 2021 22:05:02 +0000 Original-Received: (at 43397) by debbugs.gnu.org; 27 Aug 2021 22:04:51 +0000 Original-Received: from localhost ([127.0.0.1]:53124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJjxv-0002s5-NM for submit@debbugs.gnu.org; Fri, 27 Aug 2021 18:04:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJjxp-0002rn-Ut for 43397@debbugs.gnu.org; Fri, 27 Aug 2021 18:04:46 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0A41F100216; Fri, 27 Aug 2021 18:04:36 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 29FBE1001EE; Fri, 27 Aug 2021 18:04:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1630101874; bh=WJ7OZEnFITJj7CdVmLPFCuTszBpMwiseOtxC9HJS/qk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MSD+wPhMZz80XVM3rgAgwKyv8qKJYz98q0vlVuRi3xrjk/lB53FWIHYhxjyBpOgoW x8/B6+k4zydiAT+wwYGZAYgK937NL5y5U8+GglcwdiMBqM8lZnCmrA/iBGrVFZrgoB o1kNLomgLa77RPkAqq1/jDQjBNOZFpwuI5gwmhWva7gWj1MbfJ8CZFI9y7gYIwRZIO d5j8Yhi5v7uq4zpX6K3obC2T7l5BXDsoT7ElEifE51ysXehZjX6OQWkBXNxNcwn6V7 FT3KumVJPnqRmOMVdiknaWxwEltrsiK1sBWRNs8nGcSIWO62SQzlJ46i46z5lMolsT wiUj/7hIu3law== Original-Received: from alfajor (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E14FF12023D; Fri, 27 Aug 2021 18:04:33 -0400 (EDT) In-Reply-To: <874kban5vm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 27 Aug 2021 19:40:13 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212847 Archived-At: Lars Ingebrigtsen [2021-08-27 19:40:13] wrote: > Eli Zaretskii writes: >> Then evaluate the forms and press F5. The tool bar won't change. > > This was a year ago, but I can still reproduce this on the current > trunk. Here's an even easier variation of the recipe: > > (progn > (blink-cursor-mode -1) > (global-eldoc-mode -1) > > (defun myfun () > (interactive) > (tool-bar-add-item "redo" 'undo-redo 'undo-redo)) > > (global-set-key [f5] 'myfun)) > > And then M-: (garbage-collect) makes the tool bar update. > However! The garbage-collect in itself isn't sufficient to trigger it. Of course, it's the use of the minibuffer (as part of `M-:`) which triggered it. Stefan