GNU bug report logs - #46476
Feature request: Right-aligning part of the modeline

Previous Next

Package: emacs;

Reported by: Paweł Kraśnicki <paul.krasnicki <at> gmail.com>

Date: Sat, 13 Feb 2021 01:08:02 UTC

Severity: wishlist

Tags: confirmed

Full log


View this message in rfc822 format

From: Paweł Kraśnicki <paul.krasnicki <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 46476 <at> debbugs.gnu.org
Subject: bug#46476: Feature request: Right-aligning part of the modeline
Date: Sat, 13 Feb 2021 18:45:14 +0100
> 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.

> 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.




This bug report was last modified 4 years and 122 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.