From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally) Date: Fri, 28 Jul 2017 09:46:51 +0300 Message-ID: <83o9s53vok.fsf@gnu.org> References: <83shhh4wsk.fsf@gnu.org> <87r2x1i8lf.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1501224503 1103 195.159.176.226 (28 Jul 2017 06:48:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2017 06:48:23 +0000 (UTC) Cc: 27847@debbugs.gnu.org To: Alexis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 08:48:13 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 1daz4F-00087x-Ao for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jul 2017 08:48:11 +0200 Original-Received: from localhost ([::1]:46361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daz4K-0003h5-UA for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jul 2017 02:48:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daz4A-0003gC-IB for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 02:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daz46-0007Pe-AG for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 02:48:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1daz46-0007Pa-6k for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 02:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1daz46-0002RU-0Q for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 02:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2017 06:48:01 +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.15012244339310 (code B ref 27847); Fri, 28 Jul 2017 06:48:01 +0000 Original-Received: (at 27847) by debbugs.gnu.org; 28 Jul 2017 06:47:13 +0000 Original-Received: from localhost ([127.0.0.1]:59119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daz3J-0002Q5-3d for submit@debbugs.gnu.org; Fri, 28 Jul 2017 02:47:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daz3I-0002Pr-1U for 27847@debbugs.gnu.org; Fri, 28 Jul 2017 02:47:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daz38-0006h0-Mg for 27847@debbugs.gnu.org; Fri, 28 Jul 2017 02:47:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daz38-0006gs-Ib; Fri, 28 Jul 2017 02:47:02 -0400 Original-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 ) id 1daz37-0002qK-V6; Fri, 28 Jul 2017 02:47:02 -0400 In-reply-to: <87r2x1i8lf.fsf@gmail.com> (message from Alexis on Fri, 28 Jul 2017 12:44:12 +1000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:135063 Archived-At: > From: Alexis > Cc: Eli Zaretskii , 27847@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?