From: Drew Adams <drew.adams@oracle.com>
To: Dani Moncayo <dmoncayo@gmail.com>, 27847@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) [thread overview]
Message-ID: <8ee6307c-3c9f-48a3-8260-06a47e530762@default> (raw)
In-Reply-To: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@mail.gmail.com>
> 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
prev parent reply other threads:[~2017-07-27 18:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-27 13:08 bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally) Dani Moncayo
2017-07-27 17:25 ` Eli Zaretskii
2017-07-27 20:44 ` Dani Moncayo
2017-07-28 2:44 ` Alexis
2017-07-28 6:46 ` Eli Zaretskii
2017-07-28 8:07 ` Alexis
2017-07-28 5:28 ` Nick Helm
2017-07-27 18:00 ` Drew Adams [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=8ee6307c-3c9f-48a3-8260-06a47e530762@default \
--to=drew.adams@oracle.com \
--cc=27847@debbugs.gnu.org \
--cc=dmoncayo@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).