From: Jim Porter <jporterbugs@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Spencer Baugh <sbaugh@janestreet.com>
Cc: emacs-devel@gnu.org
Subject: Re: min-width display property, but with padding at the start
Date: Tue, 20 Aug 2024 12:46:24 -0700 [thread overview]
Message-ID: <5906225b-379e-08bb-89e2-5ddb0a3537d4@gmail.com> (raw)
In-Reply-To: <867ccbwcgf.fsf@gnu.org>
On 8/20/2024 6:28 AM, Eli Zaretskii wrote:
>> That is probably what I'll do if I can't find another solution, but
>> doing it with display properties works with non-fixed-width characters
>> and faces, which a user might have configured.
[snip]
> Are there many people who use variable-pitch fonts on the mode line?
For what it's worth, I could see 'visual-wrap-line-mode' + SHR/EWW using
this. If I make an ordered list like so,
1. Here is
some text
2. Here is
some more
...
10. Here is
even more
the two-digit items won't line up. It's not hard to compute the max
number of characters for the numbers, but then you'd end up with:
1. Here is
some text
...
10. Here is
even more
It'd be nice to right-align the numbers. As you mention up-thread, we
could do this today via 'format', but that only works because SHR
currently uses a fixed-pitch font for item numbers no matter what. (I'd
like to change that so the fonts in EWW are consistent.)
That's not to say we need to add this feature; but if it existed
already, I'd probably be tinkering with it right now. :)
next prev parent reply other threads:[~2024-08-20 19:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-19 20:53 min-width display property, but with padding at the start Spencer Baugh
2024-08-20 11:59 ` Eli Zaretskii
2024-08-20 12:09 ` Spencer Baugh
2024-08-20 13:28 ` Eli Zaretskii
2024-08-20 13:42 ` Spencer Baugh
2024-08-20 14:03 ` Ihor Radchenko
2024-08-20 14:26 ` Eli Zaretskii
2024-08-20 14:34 ` Ihor Radchenko
2024-08-20 18:23 ` Eli Zaretskii
2024-08-20 18:33 ` Ihor Radchenko
2024-08-20 19:31 ` Petteri Hintsanen
2024-08-20 19:46 ` Jim Porter [this message]
2024-08-20 12:21 ` tomas
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=5906225b-379e-08bb-89e2-5ddb0a3537d4@gmail.com \
--to=jporterbugs@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sbaugh@janestreet.com \
/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.