From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs 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) Message-ID: <8ee6307c-3c9f-48a3-8260-06a47e530762@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501178483 25543 195.159.176.226 (27 Jul 2017 18:01:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2017 18:01:23 +0000 (UTC) To: Dani Moncayo , 27847@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 27 20:01:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dan62-0005rA-9v for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 20:01:14 +0200 Original-Received: from localhost ([::1]:44222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dan61-0004vh-M6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 14:01:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dan5w-0004vX-1T for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 14:01:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dan5q-0003nZ-Il for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 14:01:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dan5q-0003nV-FY for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 14:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dan5q-0001qT-4H for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2017 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2017 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27847-submit@debbugs.gnu.org id=B27847.15011784497067 (code B ref 27847); Thu, 27 Jul 2017 18:01:02 +0000 Original-Received: (at 27847) by debbugs.gnu.org; 27 Jul 2017 18:00:49 +0000 Original-Received: from localhost ([127.0.0.1]:58891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dan5c-0001pv-My for submit@debbugs.gnu.org; Thu, 27 Jul 2017 14:00:48 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:46662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dan5a-0001pi-Vi for 27847@debbugs.gnu.org; Thu, 27 Jul 2017 14:00:47 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v6RI0bkD013516 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Jul 2017 18:00:37 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v6RI0bMn017610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Jul 2017 18:00:37 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v6RI0aCE001216; Thu, 27 Jul 2017 18:00:36 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6770.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135053 Archived-At: > 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, ...) >=20 > 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). >=20 > 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