GNU bug report logs - #27847
26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Thu, 27 Jul 2017 13:09:01 UTC

Severity: wishlist

Found in version 26.0.50

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Dani Moncayo <dmoncayo <at> gmail.com>, 27847 <at> debbugs.gnu.org
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Date: Thu, 27 Jul 2017 11:00:35 -0700 (PDT)
> AFAIK, the percentage(s) shown in the modeline by the variable
> "mode-line-percent-position" are all character-based, i.e., the
> percentage(s) is (are) computed based on the number of _characters_
> before a certain visible character (first visible, last visible, first
> in middle line, ...)
> 
> I'd prefer this (those) percentage(s) to be based on the number of
> _lines_ instead, because that would give me the information I really
> want to see: the relative _vertical_ position of the window/viewport
> wrt the whole buffer (i.e., the kind of information that a graphical
> vertical scrollbar provides visually).
> 
> So I'd like I could set some variable for switching to this way of
> computing the modeline percentage(s).  I think that many users would
> like it.

FYI, you can use library `modeline-posn.el' to get what you
want.  In this case you would define a custom behavior (it
is not one of the predefined choices), but that is easy to do.

https://www.emacswiki.org/emacs/modeline-posn.el




This bug report was last modified 7 years and 324 days ago.

Previous Next


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