From: Eli Zaretskii <eliz@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: 64971@debbugs.gnu.org
Subject: bug#64971: 30.0.50; string-pixel-width return value is affected by 'line-prefix
Date: Mon, 31 Jul 2023 21:52:02 +0300 [thread overview]
Message-ID: <83y1iv29t9.fsf@gnu.org> (raw)
In-Reply-To: <871qgoi900.fsf@localhost> (message from Ihor Radchenko on Mon, 31 Jul 2023 12:02:55 +0000)
> From: Ihor Radchenko <yantar92@posteo.net>
> Date: Mon, 31 Jul 2023 12:02:55 +0000
>
>
> According to the docstring of `string-pixel-width', it "Return the width
> of STRING in pixels."
>
> Consider the following:
>
> (string-pixel-width "asd") ;=> 30
> (string-pixel-width (propertize "asd" 'line-prefix "123")) ;=> 60
Thanks, should be fixed now on the emacs-29 branch.
next prev parent reply other threads:[~2023-07-31 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-31 12:02 bug#64971: 30.0.50; string-pixel-width return value is affected by 'line-prefix Ihor Radchenko
2023-07-31 18:52 ` Eli Zaretskii [this message]
2023-08-10 9:17 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y1iv29t9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64971@debbugs.gnu.org \
--cc=yantar92@posteo.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).