unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Paweł Kraśnicki" <paul.krasnicki@gmail.com>
Cc: 46476@debbugs.gnu.org
Subject: bug#46476: Feature request: Right-aligning part of the modeline
Date: Sat, 13 Feb 2021 20:08:30 +0200	[thread overview]
Message-ID: <837dnbden5.fsf@gnu.org> (raw)
In-Reply-To: <CAPZgK76fK9xBLv+v-Hsf0cKGUyVODaDgf4zhyma0YTnpFEkNmQ@mail.gmail.com> (message from Paweł Kraśnicki on Sat, 13 Feb 2021 18:45:14 +0100)

> From: Paweł Kraśnicki <paul.krasnicki@gmail.com>
> Date: Sat, 13 Feb 2021 18:45:14 +0100
> Cc: 46476@debbugs.gnu.org
> 
> > If people use :align-to, then what would be the advantage of providing
> > %-constructs to produce the same?
> 
> Well, the only advantage is that people wouldn't need to install an external
> package or write a short but advanced piece of Lisp. I think that right
> alignment is such a commonly used feature that it would be good to have it
> accessible very easily. (Center alignment and segments are less popular.)
> I actually got the idea for using %= in particular from Vim, which has right
> alignment under this %-construct.

This currently seems to be somewhat problematic, given the recursive
manner in which the mode line elements are produced by the display
code.

> > That'd require two passes to generate the mode-line display, right?
> 
> I think so. Emacs would have to first expand the modeline constructs in the
> segments separately into some internal data structure, then decide which ones to
> actually display.

Patches welcome.





      reply	other threads:[~2021-02-13 18:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-12 22:59 bug#46476: Feature request: Right-aligning part of the modeline Paweł Kraśnicki
2021-02-13  8:18 ` Eli Zaretskii
2021-02-13 16:30   ` Paweł Kraśnicki
2021-02-13 16:58     ` Eli Zaretskii
2021-02-13 17:45       ` Paweł Kraśnicki
2021-02-13 18:08         ` Eli Zaretskii [this message]

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=837dnbden5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=46476@debbugs.gnu.org \
    --cc=paul.krasnicki@gmail.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 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).