From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alexis 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 18:07:45 +1000 Message-ID: <87poclhtm6.fsf@gmail.com> References: <83shhh4wsk.fsf@gnu.org> <87r2x1i8lf.fsf@gmail.com> <83o9s53vok.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1501230291 14990 195.159.176.226 (28 Jul 2017 08:24:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2017 08:24:51 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.2.1 Cc: 27847@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 10:24:47 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 1db0Zh-0003bl-Bo for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jul 2017 10:24:45 +0200 Original-Received: from localhost ([::1]:46737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db0Zn-0002hQ-3r for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jul 2017 04:24:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db0Ja-0001Kr-4V for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 04:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db0JW-0001VX-UY for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 04:08:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1db0JW-0001VI-Qb for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 04:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1db0JW-0004K7-E3 for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2017 04:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2017 08:08: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.150122927716608 (code B ref 27847); Fri, 28 Jul 2017 08:08:02 +0000 Original-Received: (at 27847) by debbugs.gnu.org; 28 Jul 2017 08:07:57 +0000 Original-Received: from localhost ([127.0.0.1]:59154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db0JR-0004Jo-Hu for submit@debbugs.gnu.org; Fri, 28 Jul 2017 04:07:57 -0400 Original-Received: from mail-pf0-f195.google.com ([209.85.192.195]:34127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db0JP-0004Jc-Tv for 27847@debbugs.gnu.org; Fri, 28 Jul 2017 04:07:56 -0400 Original-Received: by mail-pf0-f195.google.com with SMTP id u17so1704824pfa.1 for <27847@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) Original-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) In-reply-to: <83o9s53vok.fsf@gnu.org> 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:135068 Archived-At: Eli Zaretskii writes: >> 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? 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.