GNU bug report logs - #62606
[PATCH] function to align mode-line elements to right

Previous Next

Package: emacs;

Reported by: hugo <at> heagren.com

Date: Sun, 2 Apr 2023 04:48:03 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #71 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: hugo <at> heagren.com, 62606 <at> debbugs.gnu.org, juri <at> linkov.net
Subject: Re: bug#62606: [PATCH] function to align mode-line elements to right
Date: Sun, 21 Jan 2024 12:12:09 +0200
unarchive 62606
thanks

> From: João Távora <joaotavora <at> gmail.com>
> Cc: juri <at> linkov.net,  hugo <at> heagren.com,  62606 <at> debbugs.gnu.org
> Date: Sun, 21 Jan 2024 08:49:21 +0000
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > FWIW, I don't want to complicate xdisp.c on behalf of this obscure
> > option.  If it can be fixed in Lisp, I won't object, but otherwise I'm
> > inclined to document the above as the limitation of the option, and
> > move on.
> 
> Won't be fixed in Lisp without redesigning the API.

Then it probably will stay as a limitation.

> Option is new but it is not "obscure".  Fancy side-aligning mode-lines
> are are all the rage.  I have to admit for pretty good reason, even I
> use this kind of mode-line now.
> 
> Anyway, here's a patch fixing it.  It's 1 LOC in display_mode_element
> and a new variable. mode-line-format-right-align is simplified and
> possibly even slightly sped up.

Thanks, but I don't want to expose the tail of the mode-line to Lisp,
let alone do it on every iteration through mode-line-format.  If this
is the only reasonable way of lifting the restriction, it will remain
to be a restriction of this optional behavior.

Sorry.




This bug report was last modified 1 year and 184 days ago.

Previous Next


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