From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43405: Tool bar item doesn't align to the right edge Date: Mon, 14 Sep 2020 22:34:21 +0300 Message-ID: <837dsw9mpu.fsf@gnu.org> References: <87mu1xrjqw.fsf@gkayaalp.com> <48ed4897-356c-4669-a330-1fdb5d65402b@default> <83lfhhijbl.fsf@gnu.org> <871rj9uz12.fsf@gkayaalp.com> <875z8k4wv8.fsf@posteo.net> <83pn6shjni.fsf@gnu.org> <20200911074445.GB5194@tuxteam.de> <87zh5uqdqm.fsf@mail.linkov.net> <834ko1da33.fsf@gnu.org> <87sgbloe5z.fsf@mail.linkov.net> <83een5bkja.fsf@gnu.org> <87v9ghlc5c.fsf@mail.linkov.net> <83d02pbhny.fsf@gnu.org> <87een4qi9i.fsf_-_@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43405@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 14 21:35:16 2020 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 1kHuFu-0002ax-Ux for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 21:35:14 +0200 Original-Received: from localhost ([::1]:50206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHuFt-0005xK-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 15:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHuFj-0005wr-ER for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHuFh-0006Zf-O8 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHuFh-0005Qm-L0 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Sep 2020 19:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43405 X-GNU-PR-Package: emacs Original-Received: via spool by 43405-submit@debbugs.gnu.org id=B43405.160011206620816 (code B ref 43405); Mon, 14 Sep 2020 19:35:01 +0000 Original-Received: (at 43405) by debbugs.gnu.org; 14 Sep 2020 19:34:26 +0000 Original-Received: from localhost ([127.0.0.1]:56319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHuF7-0005Pe-Ra for submit@debbugs.gnu.org; Mon, 14 Sep 2020 15:34:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHuF5-0005PR-AO for 43405@debbugs.gnu.org; Mon, 14 Sep 2020 15:34:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58889) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHuEy-0006Vc-Mw; Mon, 14 Sep 2020 15:34:16 -0400 Original-Received: from [176.228.60.248] (port=3600 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kHuEy-0003IY-6k; Mon, 14 Sep 2020 15:34:16 -0400 In-Reply-To: <87een4qi9i.fsf_-_@mail.linkov.net> (message from Juri Linkov on Mon, 14 Sep 2020 22:18:33 +0300) 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:188085 Archived-At: > From: Juri Linkov > Date: Mon, 14 Sep 2020 22:18:33 +0300 > > >> emacs -Q and eval: > >> > >> (define-key-after (default-value 'tool-bar-map) [global-menu-bar] > >> `(menu-item (propertize " " 'display '(space :align-to (- right 5))) > >> (lambda () > >> (interactive) > >> (popup-menu (mouse-menu-bar-map))) > >> :image ,(tool-bar--image-expression "newsticker/narrow") > >> :help "Pop up the global menu bar")) > >> (force-mode-line-update) > >> > >> It doesn't align the icon to the right edge of the tool-bar > >> whereas the same code aligns it on the tab-bar. > > > > Here, the above displays nothing at all on the tool bar. > > The icon is displayed only after more changes in window-configuration like > switching buffers, i.e. force-mode-line-update (copied from tool-bar-local-item) > has no effect. > > Another bug? Or should this code use both (redraw-display) and > (force-mode-line-update) like in bug#43397? I didn't yet look into that bug report, so I cannot say. Btw, are you trying this in a GTK build or with some other toolkit?