From: sbaugh@catern.com
To: emacs-devel@gnu.org
Subject: Re: Horizontal centering in the display engine
Date: Wed, 14 Apr 2021 09:28:53 -0400 [thread overview]
Message-ID: <87tuo9uh9m.fsf@catern.com> (raw)
In-Reply-To: 8335vt1hiw.fsf@gnu.org
Eli Zaretskii <eliz@gnu.org> writes:
>> > E.g., are you planning on centering each line separately, or
>> > everything together, or something else?
>>
>> Each line separately.
>
> So each line should have a different value of :align-to?
If they each had a different value of :align-to, then I'd have to update
those values of align-to every time text size or window size changes,
which is something I want to avoid.
> And if we go one level higher, I guess you intend to write a
> post-command-hook that recalculates the :align-to specs whenever text
> changes, is that right? Or how did you plan on taking text changes
> into consideration?
No, I want my :align-to specs to stay the same as text changes. If
that's not possible with :align-to specs, then I'd use some other
feature to implement the centering.
As I mentioned in my initial email, it's entirely possible to center
text in Emacs today, even by just inserting spaces. But that doesn't
update automatically when text or window size changes; those spaces (or
:align-to specs, in your proposal - they're basically the same) need to
be updated by Lisp code running in post-command-hook or elsewhere, as
you say.
I want this centering display to be handled by the display engine, as
other similar things are.
next prev parent reply other threads:[~2021-04-14 13:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 18:25 Horizontal centering in the display engine sbaugh
2021-04-13 18:39 ` Eli Zaretskii
2021-04-13 19:28 ` sbaugh
2021-04-13 19:43 ` Eli Zaretskii
2021-04-13 20:49 ` sbaugh
2021-04-14 6:56 ` Eli Zaretskii
2021-04-14 13:28 ` sbaugh [this message]
2021-04-14 13:42 ` Yuan Fu
2021-04-14 14:04 ` Stefan Monnier
2021-04-14 15:22 ` sbaugh
2021-04-14 14:42 ` Eli Zaretskii
2021-04-14 15:25 ` sbaugh
2021-04-14 15:52 ` Eli Zaretskii
2021-04-14 8:28 ` martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2021-04-15 5:13 Paul W. Rankin via Emacs development discussions.
2021-04-15 7:04 ` Eli Zaretskii
2021-04-15 11:39 ` Paul W. Rankin via Emacs development discussions.
2021-04-15 12:43 ` Stefan Monnier
2021-04-15 13:05 ` Paul W. Rankin via Emacs development discussions.
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=87tuo9uh9m.fsf@catern.com \
--to=sbaugh@catern.com \
--cc=emacs-devel@gnu.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.