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: Fri, 18 Sep 2020 11:58:21 +0300 Message-ID: <83v9gb4g2a.fsf@gnu.org> References: <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> <837dsw9mpu.fsf@gnu.org> <87r1r3ncwq.fsf@mail.linkov.net> <83a6xq995x.fsf@gnu.org> <831rj07c0j.fsf@gnu.org> <83v9gc5u94.fsf@gnu.org> <83sgbg5sg2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3112"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43405@debbugs.gnu.org, juri@linkov.net To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 18 11:04:01 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 1kJCJF-0000h6-As for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 11:04:01 +0200 Original-Received: from localhost ([::1]:59312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJCJE-0007iD-8n for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 05:04:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJCEQ-0003ux-9I for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 04:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJCEP-0001R5-W0 for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 04:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJCEP-00020Y-UG for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 04:59: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: Fri, 18 Sep 2020 08:59: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.16004194997659 (code B ref 43405); Fri, 18 Sep 2020 08:59:01 +0000 Original-Received: (at 43405) by debbugs.gnu.org; 18 Sep 2020 08:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:40839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJCDj-0001zS-0Q for submit@debbugs.gnu.org; Fri, 18 Sep 2020 04:58:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJCDh-0001zD-G3 for 43405@debbugs.gnu.org; Fri, 18 Sep 2020 04:58:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59292) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJCDY-0001O0-HQ; Fri, 18 Sep 2020 04:58:08 -0400 Original-Received: from [176.228.60.248] (port=3038 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kJCDX-0003IC-QO; Fri, 18 Sep 2020 04:58:08 -0400 In-Reply-To: (message from Robert Pluim on Fri, 18 Sep 2020 10:38:18 +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:188277 Archived-At: > From: Robert Pluim > Cc: 43405@debbugs.gnu.org, juri@linkov.net > Date: Fri, 18 Sep 2020 10:38:18 +0200 > > Eli> Some attribute of the binding, similar to :image and :vert-only, I > Eli> guess? > > >> I mean, I have no idea if the macOS or MS-Windows tool bar have a > >> similar feature. > > Eli> I don't know about macOS, but MS-Windows uses the native tool bar > Eli> produced by our own code, i.e. it displays a Lisp string in a special > Eli> window. > > OK, so I took a look, and Iʼm not sure itʼs possible with the native > tool bar. We have '(space :align-to right)', but that just inserts > space up to a specified location, everything subsequent is > appended. In order to calculate the correct location, Iʼd need to know > the width of everything that came after the space, which only > redisplay can tell us, unless thereʼs a function Iʼve missed? The support for doing this with the native tool bar must be in C, and should indeed be part of the display engine. So everything redisplay knows should be at your fingertips.