GNU logs - #27847, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 27 Jul 2017 13:09:01 +0000
Resent-Message-ID: <handler.27847.B.15011609119094 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 27847 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.15011609119094
          (code B ref -1); Thu, 27 Jul 2017 13:09:01 +0000
Received: (at submit) by debbugs.gnu.org; 27 Jul 2017 13:08:31 +0000
Received: from localhost ([127.0.0.1]:58067 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1daiWk-0002Mb-Vn
	for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 09:08:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33510)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1daiWj-0002MO-Cy
 for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 09:08:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1daiWd-0003tq-6U
 for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 09:08:23 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41115)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dmoncayo@HIDDEN>) id 1daiWd-0003tm-3c
 for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 09:08:23 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52708)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1daiWc-0000j3-2U
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jul 2017 09:08:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1daiWb-0003rA-7Y
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jul 2017 09:08:22 -0400
Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:37321)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <dmoncayo@HIDDEN>) id 1daiWa-0003pz-Vb
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jul 2017 09:08:21 -0400
Received: by mail-lf0-x22d.google.com with SMTP id m86so72833898lfi.4
 for <bug-gnu-emacs@HIDDEN>; Thu, 27 Jul 2017 06:08:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=EkgARSrVPap8Mxqo/4wMI9hSHPZX4fGDhKJTWH4MiiA=;
 b=rSu9lIibzgyrDsFCmjC4Xv5A/TWZglbwCnaH0AYsPtbV8ReL6U7OmvMCgeHQo08OW9
 h04te6qaHm6VzWGsvRAsHYWbPd0v2cL6BAtFQ5qdrLlQ3yxgw5O0vztkQf26rI92eyAN
 5mrOrZhOvxQ2WLZIL3t0NZodkXXiA5ZZhwwma5eu1SDY3RR+VckaDn15tfermqgRJc21
 qNFABM/c8GyeTbA4by+g27+KMSL5wUwzXOzMTEh+OyHjdbW4ZrF7NcpFvtvIX7/P5Qi+
 vNN3ix20uo30dFo+s7VA5VStPjud1iNIOMA1iDW+uLW0WjvTnA+PgE6jeJLEbtsmJMub
 6wlQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=EkgARSrVPap8Mxqo/4wMI9hSHPZX4fGDhKJTWH4MiiA=;
 b=jtRrjRM2tuwsAZ6aVAZ58Y6jxRQwL6ceWZSJP0gQ0/fxnqJepay7YtCEKHQyww/mZ9
 mIcWMwvTqshhSZgB5EIT2Zm8n2JseOkbnGojASaWPbo8hiLOTyAmOVfa4iCLydi2rdY1
 CgRAqgCuXJ/LCnaqEieXHdcsTMeEwDMQroET9er/3BYCEIdqJSBE9IjdAiiziBe7Zu2a
 1q/DzToeMGzYTDZjgcVZzQSO0BTXaZVXVwR1s0SppidzvQu2JxNysJ8BQ7rX/Fx0eHBZ
 0nIrTVjwQ353gdH8HTbQZUIU9DILexK+/In3Eco87gAbe19KLS7LroRtXUpT3Fc5MLFf
 hMZA==
X-Gm-Message-State: AIVw110R9Bo3psRsijR+YyrsYH8HcF2WLPum+84WVHixnvmPJbwGbVXo
 Q8UScBHPKqnXlSHsrp3oP7pjEjKHZrk+
X-Received: by 10.25.167.136 with SMTP id q130mr1556971lfe.162.1501160899493; 
 Thu, 27 Jul 2017 06:08:19 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.76.85 with HTTP; Thu, 27 Jul 2017 06:08:18 -0700 (PDT)
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Thu, 27 Jul 2017 15:08:18 +0200
Message-ID: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Severity: wishlist

Hi,

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.

TIA.

-- 
Dani Moncayo

In GNU Emacs 26.0.50 (build 1, x86_64-unknown-cygwin)
 of 2017-07-24 built on ZVDES404
Repository revision: 6dc5d45c542a6f9cfbcf3e37d597c9e0efb3070d
Windowing system distributor 'Microsoft Corp.', version 6.3.9600

Configured using:
 'configure --with-mailutils --with-w32'

Configured features:
SOUND ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: C.ISO-8859-1
  locale-coding-system: iso-latin-1-unix




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Dani Moncayo <dmoncayo@HIDDEN>
Subject: bug#27847: Acknowledgement (26.0.50; mode-line-percent-position:
 line-based instead of char-based (optionally))
Message-ID: <handler.27847.B.15011609119094.ack <at> debbugs.gnu.org>
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
X-Gnu-PR-Message: ack 27847
X-Gnu-PR-Package: emacs
Reply-To: 27847 <at> debbugs.gnu.org
Date: Thu, 27 Jul 2017 13:09:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 27847 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
27847: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27847
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 27 Jul 2017 17:26:01 +0000
Resent-Message-ID: <handler.27847.B27847.15011763383785 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: 27847 <at> debbugs.gnu.org
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.15011763383785
          (code B ref 27847); Thu, 27 Jul 2017 17:26:01 +0000
Received: (at 27847) by debbugs.gnu.org; 27 Jul 2017 17:25:38 +0000
Received: from localhost ([127.0.0.1]:58856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1damXa-0000yz-0Y
	for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 13:25:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54392)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1damXY-0000ym-Ie
 for 27847 <at> debbugs.gnu.org; Thu, 27 Jul 2017 13:25:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1damXQ-0002bE-20
 for 27847 <at> debbugs.gnu.org; Thu, 27 Jul 2017 13:25:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56237)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1damXP-0002b9-Vb; Thu, 27 Jul 2017 13:25:27 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2435
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1damXP-0003Da-9t; Thu, 27 Jul 2017 13:25:27 -0400
Date: Thu, 27 Jul 2017 20:25:15 +0300
Message-Id: <83shhh4wsk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
 (message from Dani Moncayo on Thu, 27 Jul 2017 15:08:18 +0200)
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Dani Moncayo <dmoncayo@HIDDEN>
> Date: Thu, 27 Jul 2017 15:08:18 +0200
> 
> I'd prefer this (those) percentage(s) to be based on the number of
> _lines_ instead

What do you want to be displayed in that case when line numbers are
not counted and displayed as "???" ?  Do you want Emacs to count lines
even though the limits which control that are exceeded?

Also note that for your feature to be implemented, Emacs needs to
count lines in the entire buffer each time the buffer is changed, so I
expect this feature to slow down redisplay.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Drew Adams <drew.adams@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 27 Jul 2017 18:01:02 +0000
Resent-Message-ID: <handler.27847.B27847.15011784497067 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>, 27847 <at> debbugs.gnu.org
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.15011784497067
          (code B ref 27847); Thu, 27 Jul 2017 18:01:02 +0000
Received: (at 27847) by debbugs.gnu.org; 27 Jul 2017 18:00:49 +0000
Received: from localhost ([127.0.0.1]:58891 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dan5c-0001pv-My
	for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 14:00:48 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:46662)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1dan5a-0001pi-Vi
 for 27847 <at> debbugs.gnu.org; Thu, 27 Jul 2017 14:00:47 -0400
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
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
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
MIME-Version: 1.0
Message-ID: <8ee6307c-3c9f-48a3-8260-06a47e530762@default>
Date: Thu, 27 Jul 2017 11:00:35 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
In-Reply-To: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 12.0.6770.5000 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0021.oracle.com [156.151.31.71]
X-Spam-Score: -1.8 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

> 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




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 27 Jul 2017 20:46:02 +0000
Resent-Message-ID: <handler.27847.B27847.150118830721435 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27847 <at> debbugs.gnu.org
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.150118830721435
          (code B ref 27847); Thu, 27 Jul 2017 20:46:02 +0000
Received: (at 27847) by debbugs.gnu.org; 27 Jul 2017 20:45:07 +0000
Received: from localhost ([127.0.0.1]:58976 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1daped-0005Ze-7o
	for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 16:45:07 -0400
Received: from mail-lf0-f48.google.com ([209.85.215.48]:38197)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1dapeb-0005Yt-Jy
 for 27847 <at> debbugs.gnu.org; Thu, 27 Jul 2017 16:45:05 -0400
Received: by mail-lf0-f48.google.com with SMTP id y15so84533666lfd.5
 for <27847 <at> debbugs.gnu.org>; Thu, 27 Jul 2017 13:45:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=UkAjblqNl3BsjgkFUOIYCByEIbKdS1vPkD9CloG6XWE=;
 b=kJZGHVqJnvsrMrl1ipPYOK4e9W5HGKh44HnF4Yhh3k5Jj4vqsOkOF0j1z8/REmQYUl
 a0xyMIb0T4inUiA41AC99068zW0EXMjfay4krklrVy0BT/WOeuGAC8yCC44CG3KF6Pxz
 bFMcXV8FhArwk4rN4BepceAa3e/W3YELp4YfxkFM1slIX4zm5sbwx3VmGbwNqglGFfNr
 Uv21L+cw4iwLnSywaXGO9AaUxIPsclAjNy/zCf9/8Flu+53MUIMdxFR6uqiDwl8s6nxr
 3g4cPkeWO5joIiF7e0in+dsv3+Qrxb997VU2muZWcSGRibGpBsmhxhi8MTIODAlTxZg7
 8yDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=UkAjblqNl3BsjgkFUOIYCByEIbKdS1vPkD9CloG6XWE=;
 b=Ky0/gjbwHfl12g8frrklxmfVSkLJ+5N+9YI9xdZ1B8kRHbwLQD725CFVv3p+N0wx4E
 Q1yvjwUN8iUWvmtiuqs9Fn9gMD9KkYIOWhY6BJx3CaiPDVeFhr9kzEkWbi96Trf2+3Lq
 wk+yuhz+akNsihS6V2kcSpAkinOkbuGh/ASqamrz8VNowhTKZDVElEg2qsunRqBO4NdB
 JZ0GOBVWLVWibB9pSiJO6X+GVKgP6B1tLAirwUIpGOkBZKvlm8FpiUViNkRtuomPbQNp
 SuxaxnsA1Bf7KaUKrN8c2u5X5u+iot5NwW3gB43VfVzTWAgMRvQpQw85zWnxo/W9X4i0
 gJ1w==
X-Gm-Message-State: AIVw112CD0mYhKUkJNakEFSdZfnB2amirs4eaDAErscbItkgvq51jg7n
 g/WsO1OZtjxZAn9PUZ4PH+f2Xai/3Q==
X-Received: by 10.25.20.21 with SMTP id k21mr1982905lfi.89.1501188299568; Thu,
 27 Jul 2017 13:44:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.76.85 with HTTP; Thu, 27 Jul 2017 13:44:58 -0700 (PDT)
In-Reply-To: <83shhh4wsk.fsf@HIDDEN>
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
 <83shhh4wsk.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Thu, 27 Jul 2017 22:44:58 +0200
Message-ID: <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

>> I'd prefer this (those) percentage(s) to be based on the number of
>> _lines_ instead
>
> What do you want to be displayed in that case when line numbers are
> not counted and displayed as "???" ?  Do you want Emacs to count lines
> even though the limits which control that are exceeded?

In cases where line numbers are not counted (I didn't know about such
cases, BTW), I guess Emacs could display "??" as the percentage,
meaning that the value is unknown at that moment.

> Also note that for your feature to be implemented, Emacs needs to
> count lines in the entire buffer each time the buffer is changed, so I
> expect this feature to slow down redisplay.

Maybe this computation could be optimized somehow.  In any case, if
someone implements it and the slow down is observable, it could be
advertised in the manual and/or the docstring of the variable which
enables this feature.

-- 
Dani Moncayo




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Alexis <flexibeast@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 28 Jul 2017 02:45:02 +0000
Resent-Message-ID: <handler.27847.B27847.150120986520241 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 27847 <at> debbugs.gnu.org
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.150120986520241
          (code B ref 27847); Fri, 28 Jul 2017 02:45:02 +0000
Received: (at 27847) by debbugs.gnu.org; 28 Jul 2017 02:44:25 +0000
Received: from localhost ([127.0.0.1]:59066 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1davGK-0005GP-UI
	for submit <at> debbugs.gnu.org; Thu, 27 Jul 2017 22:44:25 -0400
Received: from mail-pg0-f45.google.com ([74.125.83.45]:38216)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <flexibeast@HIDDEN>) id 1davGI-0005GA-P0
 for 27847 <at> debbugs.gnu.org; Thu, 27 Jul 2017 22:44:23 -0400
Received: by mail-pg0-f45.google.com with SMTP id k190so39775622pgk.5
 for <27847 <at> debbugs.gnu.org>; Thu, 27 Jul 2017 19:44:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version;
 bh=U+YptL0vYNKfWh3I0y1ZC/mZvkGo6XUyayLFabuWn5Y=;
 b=WathRaKczESL4UcFv+N+qGbbuc5dQ7P/w4IsUDWG5ZUa2eHBopsp7mvhaF+Zt38SeG
 +cpVCKdRP942ewmUtHB7bZp5W9LY71j8jikR7n5HD7CPSyX4/MYPovy0fA0Hkl+i5ZnB
 rCXwQ2KnS+we3mNZN4xBTZhg19aV+k3/De4kjidOFgSbGgzJPudzQbgQ5eR4lCV5nMLd
 35iOc2dVt0Ue/y5lx0AGNKbO7KNadQ0spdDHGwCHrOtLRMsuIUOoOo3vcW1yuHyN+bHm
 +rjx/UZ0B1bxgYY8OkiekhRwg5W2Aq0PilvWb/2rRgf/KhGRsbeiBvpsWZV8OD/C6qQo
 0ZEg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version;
 bh=U+YptL0vYNKfWh3I0y1ZC/mZvkGo6XUyayLFabuWn5Y=;
 b=QmwK3LX4nsytqj6P4Jq/+WULQXocTNdn+MTgmzO7zlhNWc+jzI4g3aS/GNfN2NnZTX
 DQyapxqXe5B6aGM1LTslEs7CEpms10COUat9mSJy613iQ9vI9BZKCN5cY4ywKUPVQJkW
 rtuVy+iXZ8pSXIObjMIkVCM6DaWdsFyfwOSYWUU9j1xZWg3TVa0O/EmAJZeN2pOdm2R5
 oDMGrz+TvOtoULOyfXtwrSSCtML9sG6UmqzKe0L+9U6Ll4QhZ0MALaB0RbRylpYIwoPg
 wmZzwSCT4P9TtYv56N395oPDXrmGztPKO6GnudWWZ7H3ng1vbLvbbzP8o8cIlmuhlpNg
 bwGA==
X-Gm-Message-State: AIVw113vrFnMHVHqo+yHGx+IG9EREeXg0jEJxN51qwZeQN4W0VT83xst
 ArBBYWYt5HRqnA==
X-Received: by 10.99.60.83 with SMTP id i19mr5982590pgn.51.1501209856827;
 Thu, 27 Jul 2017 19:44:16 -0700 (PDT)
Received: from localhost (CAPCPE-124-189-167-250.rsqv1.lon.bigpond.net.au.
 [124.189.167.250])
 by smtp.gmail.com with ESMTPSA id c64sm3328731pfj.91.2017.07.27.19.44.15
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 27 Jul 2017 19:44:16 -0700 (PDT)
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
 <83shhh4wsk.fsf@HIDDEN>
 <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN>
User-agent: mu4e 0.9.19; emacs 25.2.1
From: Alexis <flexibeast@HIDDEN>
In-reply-to: <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN>
Date: Fri, 28 Jul 2017 12:44:12 +1000
Message-ID: <87r2x1i8lf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)


Dani Moncayo <dmoncayo@HIDDEN> writes:

>>> I'd prefer this (those) percentage(s) to be based on the 
>>> number of
>>> _lines_ instead
>>
>> What do you want to be displayed in that case when line numbers 
>> are
>> not counted and displayed as "???" ?  Do you want Emacs to 
>> count lines
>> even though the limits which control that are exceeded?
>
> In cases where line numbers are not counted (I didn't know about 
> such
> cases, BTW), I guess Emacs could display "??" as the percentage,
> meaning that the value is unknown at that moment.
>
>> Also note that for your feature to be implemented, Emacs needs 
>> to
>> count lines in the entire buffer each time the buffer is 
>> changed, so I
>> expect this feature to slow down redisplay.
>
> Maybe this computation could be optimized somehow.  In any case, 
> if
> someone implements it and the slow down is observable, it could 
> be
> advertised in the manual and/or the docstring of the variable 
> which
> enables this feature.

As a data point, i have this as part of my `mode-line-format` 
setup:

    '(:eval
      (let ((buffer-line-count (count-lines (point-min) 
      (point-max))))
        (number-to-string
         (round
          (* 100 (/
                  (float (count-lines 1 (point)))
                  (if (equal 0 buffer-line-count)
                      1
                    buffer-line-count)))))))
    "%%"

which gives me at least a rough percentage (i.e. 'good enough' for 
my
needs), and i've not noticed any slowdown as a result.


Alexis.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Nick Helm <nick@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 28 Jul 2017 05:29:02 +0000
Resent-Message-ID: <handler.27847.B27847.15012197132157 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 27847 <at> debbugs.gnu.org
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.15012197132157
          (code B ref 27847); Fri, 28 Jul 2017 05:29:02 +0000
Received: (at 27847) by debbugs.gnu.org; 28 Jul 2017 05:28:33 +0000
Received: from localhost ([127.0.0.1]:59090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1daxpA-0000Yj-Ur
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2017 01:28:33 -0400
Received: from mail-me1aus01on0095.outbound.protection.outlook.com
 ([104.47.116.95]:53888 helo=AUS01-ME1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nick@HIDDEN>) id 1daxp7-0000YU-RY
 for 27847 <at> debbugs.gnu.org; Fri, 28 Jul 2017 01:28:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=75pn2f+kkwfPOO6Bv6vNhbH/iR/8TlPmK73G8B5BhAI=;
 b=nd6xwR8lqPep9ZWsktOmGwQ0NvogBh8fl8ULWpkkQz0BhlXZUf54+pHLZCfwW/Doi0pMkc5Ef5Nvu2obezV+raoPYdnYID/BuW6EcH3xV8jR3pnxvZmXe3JZzTnkmww0y0RvSVAamuPA1Fo218ewMq72w6tZLgM52gHEFbkprMA=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=nick@HIDDEN; 
Received: from jupiter.local (125.239.123.172) by
 SYXPR01MB1072.ausprd01.prod.outlook.com (10.169.175.13) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
 15.1.1282.10; Fri, 28 Jul 2017 05:28:17 +0000
From: Nick Helm <nick@HIDDEN>
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
 <83shhh4wsk.fsf@HIDDEN>
 <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN>
Date: Fri, 28 Jul 2017 17:28:13 +1200
In-Reply-To: <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN> (Dani
 Moncayo's message of "Thu, 27 Jul 2017 22:44:58 +0200")
Message-ID: <m2o9s5b05u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Originating-IP: [125.239.123.172]
X-ClientProxiedBy: SY3PR01CA0114.ausprd01.prod.outlook.com (10.173.248.151) To
 SYXPR01MB1072.ausprd01.prod.outlook.com (10.169.175.13)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: a829c3b5-2f43-4300-d750-08d4d57973da
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);
 SRVR:SYXPR01MB1072; 
X-Microsoft-Exchange-Diagnostics: 1; SYXPR01MB1072;
 3:OuRmgtrTavVQlyOqiezmZrIaVngdiBzrhmLak5sAZ6StU4DyozEDuZB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x75cHEaO38mF5NmKns0E2prQRVxwcIB+1xkjZCxxOfaBwpytAZO+bx8y8dkiKW2FkMszScfD/vlbRgenVgS+mlDYRmpjYj9a/P33CHXSBop+spkwkzDQpP1R+Y6c9aW28yDVKi81ELoO9vwzCEFCV9cd9PSBmZhprHJ4+x7zkSGLyQ83xsrVcPYYpxQgyAVnS8yoOiGAJ9OmWQOrtGl+IaD2CZOLoTVyOvd5VZJdYsptyThKW4eiv4WDCOXtqwRo176PUmb3B/pThFExYvNovh7pu2PffCFfXziJlpMMiIfxPnhgnJEuV4A/StSFHg=
X-Exchange-Antispam-Report-Test: UriScan:;
X-Microsoft-Antispam-PRVS: <SYXPR01MB1072F7280EA1C5E7EB1D37F1FEBF0@HIDDEN>
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
 RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123555025)(20161123564025)(201703131423075)(201703061421075)(20161123560025)(20161123562025)(2016111802025)(20161123558100)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095);
 SRVR:SYXPR01MB1072; BCL:0; PCL:0;
 RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);
 SRVR:SYXPR01MB1072; 
X-Microsoft-Exchange-Diagnostics: 1; SYXPR01MB1072;
 4:u0GazzOsJpgtWFRg29i1WcEo3Ij12l3nQo5big/iA9QwDxtbDvjpr1Oxh6jnYWeN/grgJsglHQAdpXRhQ00dJ8wk9gLeBXr6TSp22xI9E2Ul94CQhXAJ/X3htkL0a0pEO33VjXRyBOnZaMjWNcgBOVz90Q13PujvkuCBzWfIzhovBk1iKK8TnDeEQuo4COS6YyFmj6SShXQbWc34wTzn8cXcedaYtky8ustWg/PoqLqbou75zbGRzhfwW/4iV3+WNTYuvJA1eWXRPzuhfBFKUdbmRkAa441Etw5xUMkIwwJ4wui3E9YJTY4m22w5jH7YPzI2ZafTz3C88bq9HuBLDXUxcTPq6nmZhjkIvVEgLLYY5MmuuQjqbhnDD32lUNw1YMKga5s4g5T4dU61z1m8W31E5ETHkohzfObZtfktrG4kNFZ3G4kYhj2daCfPO9YLCqESt6kAmPJItI0gFuvDTDl3YQ48+v1dGC683hxEqRp2GM+k0i0w/KAJ+ZIzBIhB5KhEbpoFTPGdTHPm2snJvNhm6pOoxn7coxwysnfUy9Vpv2oBxnS7bAJxv2NEoZMOs9voE5jb5GuDOiWltsyjFJkhe922PwhnFjoqqkervG06JQv7rH8hEc6BdwIxULPv3jSeb48hEW6zCinRLzNpQJCY6OagXq9poTsStSupBEJRN+INMNLkfVZwbWQHux9gl5S3TNBPAA5n8h7S8aA8TELuo/FplJRlvXtJjsnskc+vJM4VhsYxBVs2tV+mJXA5fxfK+bp81MTgi3gej8+2KmRqpypYJCe7XQftDXV4tbTIWH30z6AKmJTEtjXKuavy6wwNtPScLunCUxAePB+1igaoZOW/+EKZSOy1DOY25pB8mUE90PZCSkl+CcCKzl+dfX/ydAzdidXWY5Q+3tCsjdRnrDwT0dMc9BDMF2zn+knpMSPRb+EW0mOIiEgDDYiH+gFxwnOKnR1t8x1OSKKnZhXhGCBOCvkZOKeEfxD2WRVIKAegjjrNaAu2fdtRm7oCbepoA6TLVkCCJF7o4uliDwGEdBY8dLe68xjCF3rIScKxeUNDN8LKLNmGyzLPhCjD547bc6+Ro1IiAf3DHg6PWA24bIbQtoVqE554ES/cedo=
X-Forefront-PRVS: 03827AF76E
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(4630300001)(7370300001)(6009001)(39400400002)(39450400003)(189002)(52314003)(5423002)(199003)(24454002)(6116002)(81166006)(81156014)(68736007)(6666003)(3846002)(106356001)(305945005)(7736002)(74482002)(86362001)(2906002)(2351001)(105586002)(47776003)(66066001)(76176999)(5003940100001)(50986999)(6916009)(2950100002)(54356999)(8676002)(42186005)(42882006)(6486002)(230783001)(5660300001)(36756003)(101416001)(229853002)(7350300001)(48376002)(110136004)(83506001)(6246003)(25786009)(2361001)(53936002)(6506006)(38730400002)(33646002)(97736004)(50466002)(6512007)(4001350100001)(189998001)(508600001);
 DIR:OUT; SFP:1102; SCL:1; SRVR:SYXPR01MB1072; H:jupiter.local; FPR:; SPF:None;
 PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate
 permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: 1; SYXPR01MB1072;
 23:CBio6Icmp++0Ve+spwX/3BMWEr4GkJXFv8vz9E/Un7hVQJFwy6BzJLQXJ2rGtpz8oTc7zgPUUsFIiaR3Ce7nmCuOVqZfil1S/gz0kyeLDLE4JPm1Z+0nKSn1Lb3Amy8V+0QUPG6juz9PPk9sZdyt6vFR2rhL4EQnR0sW3kd0gFooArV6ww9dwgYPXBsFm/417KOiimFZC51d/QTNdo91m8p5IkxQOKEQRxuRBPMw9jW3C31EW8zo1pfBLu1uvY94NginaeOg+s9msjqgG/ZOv7s7If6/l62/0p7f9tJO2F4mH3apbL9i8gotVx/RIOrTdwR8vR8sRLs2wVUjVdPGWH8BDDCzyhvFdM93Q+hVRVhmixavWYd+h/itLvIY0hfJ+w3aUbyfTfXQu5Dye+qEz+l5JEfibHii0rAXoyp/+itTU0InBQrM+ziiigg81ouSfx/UHdOoEkO7152Ryws6EHKLmN3hoBGHgqcT0uGtsuMcoD5xdqJRGhxePICSzQ161QGdYMj3SJ6MDISu10FpEr7PjSpTxUxyE6jrpcbBXbAP5HXe1INh9k9FRHIge7YqCAmdi6v2iF5jfaPDqPBInv7RO8k1rqYLbWH67OPcpnciSWGJGEEMk+My+bE7+/FcxsEFdraAuHMqH8/sinGDjr4KZnB5pYrOaLxgKyViHWymHhRT8ARoILGf1OlLE7djZW50sw+/b6zzHGxuqsNaEmYGnkuEbUVN4QQW5rbesZKdc5y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7pbFqeyFzo4ktKCifdnTuU=
X-OriginatorOrg: tenpoint.co.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2017 05:28:17.6000 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1072
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Thu, Jul 27 2017, Dani Moncayo wrote:

>>> I'd prefer this (those) percentage(s) to be based on the number of
>>> _lines_ instead
>>
>> What do you want to be displayed in that case when line numbers are
>> not counted and displayed as "???" ?  Do you want Emacs to count lines
>> even though the limits which control that are exceeded?
>
> In cases where line numbers are not counted (I didn't know about such
> cases, BTW), I guess Emacs could display "??" as the percentage,
> meaning that the value is unknown at that moment.
>
>> Also note that for your feature to be implemented, Emacs needs to
>> count lines in the entire buffer each time the buffer is changed, so I
>> expect this feature to slow down redisplay.
>
> Maybe this computation could be optimized somehow.  In any case, if
> someone implements it and the slow down is observable, it could be
> advertised in the manual and/or the docstring of the variable which
> enables this feature.

As another example, I also wrote something to do this in my mode
line:

  (:eval
  
    (let ((lines (float (+ (count-lines (point-min)
                                        (point-max))
                           1))))
  
      (concat  
  
       ;% of lines above upper edge of window
       (number-to-string (floor
                          (* (/ (- (line-number-at-pos
                                    (window-start))
                                   1)
                                lines)
                             100)))
       " "
  
       ;% of lines above lower edge of window
       (number-to-string (ceiling
                          (* (/ (line-number-at-pos
                                 (window-end))
                                lines)
                             100))))))

With all the calls to count-lines the performance was pretty
rough though, especially near the end of long buffers.

I ended up just learning to live with line-based length. I didn't
notice much difference anyway, unless the line lengths varied a
lot, eg loads of trailing newlines.






Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 28 Jul 2017 06:48:01 +0000
Resent-Message-ID: <handler.27847.B27847.15012244339310 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Alexis <flexibeast@HIDDEN>
Cc: 27847 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.15012244339310
          (code B ref 27847); Fri, 28 Jul 2017 06:48:01 +0000
Received: (at 27847) by debbugs.gnu.org; 28 Jul 2017 06:47:13 +0000
Received: from localhost ([127.0.0.1]:59119 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1daz3J-0002Q5-3d
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2017 02:47:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36584)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1daz3I-0002Pr-1U
 for 27847 <at> debbugs.gnu.org; Fri, 28 Jul 2017 02:47:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1daz38-0006h0-Mg
 for 27847 <at> debbugs.gnu.org; Fri, 28 Jul 2017 02:47:06 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59444)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1daz38-0006gs-Ib; Fri, 28 Jul 2017 02:47:02 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2974
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1daz37-0002qK-V6; Fri, 28 Jul 2017 02:47:02 -0400
Date: Fri, 28 Jul 2017 09:46:51 +0300
Message-Id: <83o9s53vok.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <87r2x1i8lf.fsf@HIDDEN> (message from Alexis on Fri, 28 Jul
 2017 12:44:12 +1000)
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
 <83shhh4wsk.fsf@HIDDEN>
 <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN>
 <87r2x1i8lf.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Alexis <flexibeast@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>, 27847 <at> debbugs.gnu.org
> Date: Fri, 28 Jul 2017 12:44:12 +1000
> 
> As a data point, i have this as part of my `mode-line-format` 
> setup:
> 
>     '(:eval
>       (let ((buffer-line-count (count-lines (point-min) 
>       (point-max))))
>         (number-to-string
>          (round
>           (* 100 (/
>                   (float (count-lines 1 (point)))
>                   (if (equal 0 buffer-line-count)
>                       1
>                     buffer-line-count)))))))
>     "%%"
> 
> which gives me at least a rough percentage (i.e. 'good enough' for 
> my needs), and i've not noticed any slowdown as a result.

How large are the files you usually edit?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Resent-From: Alexis <flexibeast@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 28 Jul 2017 08:08:02 +0000
Resent-Message-ID: <handler.27847.B27847.150122927716608 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27847
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27847 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Received: via spool by 27847-submit <at> debbugs.gnu.org id=B27847.150122927716608
          (code B ref 27847); Fri, 28 Jul 2017 08:08:02 +0000
Received: (at 27847) by debbugs.gnu.org; 28 Jul 2017 08:07:57 +0000
Received: from localhost ([127.0.0.1]:59154 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1db0JR-0004Jo-Hu
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2017 04:07:57 -0400
Received: from mail-pf0-f195.google.com ([209.85.192.195]:34127)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <flexibeast@HIDDEN>) id 1db0JP-0004Jc-Tv
 for 27847 <at> debbugs.gnu.org; Fri, 28 Jul 2017 04:07:56 -0400
Received: by mail-pf0-f195.google.com with SMTP id u17so1704824pfa.1
 for <27847 <at> debbugs.gnu.org>; Fri, 28 Jul 2017 01:07:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version;
 bh=pWYdIr4Tuhgnj4q3jsYBkgkCsU01PI3kez8dUP/BNzs=;
 b=e3HvAW9CMzzuH7yZhJFiJafFFdm5M7fcDPMBDNSEBDKT4GXE20ttNMzC6mWL93FVDF
 kEhmzQGOprxa9hnJB4g/BqbqjzZgG3MJPYAaNK9KIW0+AkrhLbMQZgmGsYUOdSx7OBgw
 PS0vygQ3OgmSTnDY9nEH+WBX71L5K900yShXNIGHb8Sq/B3Sgmug97VQHSnfCmHvsGBm
 SNoPH7/bfp0PW7KGW/kvdGRudAGLnCm5n9EpVQ/n+HMJqvjNMBbrnT6h/d1ka8P9Rs1W
 7zbtLlFVWv06AA6E9rxLR/w2lBJcPoepq6Hv5/9PtZ1z34xaqJ2QJAH71wHX9NT6qkYB
 Vk6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version;
 bh=pWYdIr4Tuhgnj4q3jsYBkgkCsU01PI3kez8dUP/BNzs=;
 b=njP7li2yIFEg99wueEQqGCJeDrnqmC31FPmurqqascCX3E9e0cTU9e7Wnl+nold6GW
 i//f1Y031OVxYGur40wiaPKS3EBf75lZxs5rX8aX3UsXUrzmpiYyp7tEpUAjwP+oqbQv
 WkmSN907D8omIznJuET8kKFGv1ZnOtaar0K0tNaHMkDKOtO5u+in0YzqOPlaw0sqFANb
 U/5WBUF7oxK15GUH6Lz10gAmVKbHYDu1cQMR95VggVMLar2kN6kbYAJUdq9SOQ15Kq4G
 kPS2O3QGcutEkUtmVgt3TshVSyMEBEEOPm1o/qMYtX+Ref5VEHgwZrgd+RfozF8SJHZM
 n+QA==
X-Gm-Message-State: AIVw112BZKXykIO+bZt8BLnggRPVncWJQqCoWL6GiCBIjnXsaROKdHhZ
 kZtuPuQklFZufw==
X-Received: by 10.84.140.235 with SMTP id 98mr7123534plt.26.1501229269787;
 Fri, 28 Jul 2017 01:07:49 -0700 (PDT)
Received: from localhost (CAPCPE-124-189-167-250.rsqv1.lon.bigpond.net.au.
 [124.189.167.250])
 by smtp.gmail.com with ESMTPSA id f15sm8490087pgr.92.2017.07.28.01.07.48
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 28 Jul 2017 01:07:49 -0700 (PDT)
References: <CAH8Pv0guw1DHJsfbz34F0Akwjhc_gcBTOXj-SQ7uM0H62Rk_Cw@HIDDEN>
 <83shhh4wsk.fsf@HIDDEN>
 <CAH8Pv0iKfisjOjzvUKETX72Qf1vU75WKZTD6M2UB6Dv8FjFimw@HIDDEN>
 <87r2x1i8lf.fsf@HIDDEN> <83o9s53vok.fsf@HIDDEN>
User-agent: mu4e 0.9.19; emacs 25.2.1
From: Alexis <flexibeast@HIDDEN>
In-reply-to: <83o9s53vok.fsf@HIDDEN>
Date: Fri, 28 Jul 2017 18:07:45 +1000
Message-ID: <87poclhtm6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Alexis <flexibeast@HIDDEN>
>> Cc: Eli Zaretskii <eliz@HIDDEN>, 27847 <at> debbugs.gnu.org
>> Date: Fri, 28 Jul 2017 12:44:12 +1000
>>
>> As a data point, i have this as part of my `mode-line-format`
>> setup:
>>
>>     '(:eval
>>       (let ((buffer-line-count (count-lines (point-min)
>>       (point-max))))
>>         (number-to-string
>>          (round
>>           (* 100 (/
>>                   (float (count-lines 1 (point)))
>>                   (if (equal 0 buffer-line-count)
>>                       1
>>                     buffer-line-count)))))))
>>     "%%"
>>
>> which gives me at least a rough percentage (i.e. 'good enough' 
>> for
>> my needs), and i've not noticed any slowdown as a result.
>
> How large are the files you usually edit?

Good point; usually not that large, maybe only a few thousand 
lines at
most. So i just tried opening xdisp.c, and there's certainly some
movement lag there. Not unusably so for me, but i can imagine it 
would
be for others. This is on a Core i5-6200U running Debian x86_64.


Alexis.





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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