all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Semyonov via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 55207@debbugs.gnu.org
Subject: bug#55207: 29.0.50; tab-bar-format-align-right only works correctly with monospace characters
Date: Tue, 03 May 2022 10:40:35 +0300	[thread overview]
Message-ID: <87mtfzt66k.fsf@dsemy.com> (raw)
In-Reply-To: <86h767pxe7.fsf@mail.linkov.net> (Juri Linkov's message of "Mon,  02 May 2022 22:06:24 +0300")

[-- Attachment #1: Type: text/plain, Size: 2091 bytes --]

>>>>> Juri Linkov writes:

    > I guess you are using global-mode-string with XBM images.

I should've added this to the last message, but this is my tab bar
configuration (just a little bit over engineered):

(init-base-customize display-time-format "%H:%M %d/%m/%y"
                     display-time-mail-function #'ignore)
(display-time-mode)

(setq global-mode-string
      '(:eval
        `(""
          ,(and (boundp 'init-gnus-unread-mail-string)
                init-gnus-unread-mail-string)
          ,(and (boundp 'init-gnus-unread-news-string)
                init-gnus-unread-news-string)
          ,(and (boundp 'init-volume-string)
                init-volume-string)
          ,(and (boundp 'emms-mode-line-string)
                emms-mode-line-string)
          ,(and (boundp 'emms-playing-time-string)
                emms-playing-time-string)
          " | " ,(string-trim-right display-time-string))))
(init-base-customize tab-bar-format
                     '( tab-bar-format-tabs tab-bar-format-align-right
                        tab-bar-format-global))
(tab-bar-mode)


('init-base-customize' is just a convenience macro which calls
'customize-set-variable' under the hood and the value of 'init-*-string' is
a string of the form "x: y " where 'x' is a letter and 'y' is a number or
percentage; 'x:' is replaced with an XBM image using the 'display'
property on GUI frames).

    > Could you then try something like this to see what number it
    > returns?

I did some further testing, first adding arbitrary text to the
'global-mode-string', then adding more images and finally adding both.
I've attached screen shots of my full Emacs frame with an example of
each test case, taken right after evaluating your provided expression
(so the number is shown in the echo area).  The buffer shown in the
images shows the exact changes I made to the 'global-mode-string' in
each test.

I've also attached the envelope and volume icons seen in the screen
shots, just in case they may be useful.

Hopefully this information proves useful, thank you for looking into
this.


[-- Attachment #2: control --]
[-- Type: image/png, Size: 135538 bytes --]

[-- Attachment #3: added text --]
[-- Type: image/png, Size: 135443 bytes --]

[-- Attachment #4: added image --]
[-- Type: image/png, Size: 131180 bytes --]

[-- Attachment #5: added image and text --]
[-- Type: image/png, Size: 131534 bytes --]

[-- Attachment #6: volume icon --]
[-- Type: image/x-xbitmap, Size: 240 bytes --]

[-- Attachment #7: envelope icon --]
[-- Type: image/x-xbitmap, Size: 222 bytes --]

  reply	other threads:[~2022-05-03  7:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01 15:50 bug#55207: 29.0.50; tab-bar-format-align-right only works correctly with monospace characters Daniel Semyonov via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-01 17:55 ` Juri Linkov
2022-05-01 18:01   ` Lars Ingebrigtsen
2022-05-01 18:21     ` Juri Linkov
2022-05-02 15:25       ` Daniel Semyonov via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-02 19:06         ` Juri Linkov
2022-05-03  7:40           ` Daniel Semyonov via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-05-03 17:52             ` Juri Linkov
2022-05-04 11:00               ` Daniel Semyonov via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtfzt66k.fsf@dsemy.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=55207@debbugs.gnu.org \
    --cc=daniel@dsemy.com \
    --cc=juri@linkov.net \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.