From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#43405: Tool bar item doesn't align to the right edge Date: Mon, 14 Sep 2020 22:18:33 +0300 Organization: LINKOV.NET Message-ID: <87een4qi9i.fsf_-_@mail.linkov.net> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15245"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 43405@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 14 21:27:33 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 1kHu8R-0003q1-FN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 21:27:31 +0200 Original-Received: from localhost ([::1]:46560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHu8Q-0003qV-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 15:27:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHu7z-0003X0-43 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHu7y-0005de-JT for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHu7y-0005Bz-GP for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Sep 2020 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43405 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.160011157119873 (code B ref -1); Mon, 14 Sep 2020 19:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Sep 2020 19:26:11 +0000 Original-Received: from localhost ([127.0.0.1]:56287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHu79-0005AT-FM for submit@debbugs.gnu.org; Mon, 14 Sep 2020 15:26:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHu77-0005AK-K5 for submit@debbugs.gnu.org; Mon, 14 Sep 2020 15:26:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHu77-0002iJ-94 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:26:09 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHu6v-0005Tj-Uy for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 15:26:08 -0400 X-Originating-IP: 91.129.97.241 Original-Received: from mail.gandi.net (m91-129-97-241.cust.tele2.ee [91.129.97.241]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id B2FB020004 for ; Mon, 14 Sep 2020 19:25:51 +0000 (UTC) In-Reply-To: <83d02pbhny.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 13 Sep 2020 22:28:17 +0300") Received-SPF: pass client-ip=217.70.183.200; envelope-from=juri@linkov.net; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 15:25:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" Xref: news.gmane.io gmane.emacs.bugs:188084 Archived-At: This bug report is from emacs-devel thread: >> Anyway, there is a bug in tool-bar code that doesn't allow to use >> align-to, whereas align-to works perfectly when used on the tab-bar. >> >> Here is the test case to reproduce the bug on the tool-bar: >> >> 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?