[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27847: 26.0.50; mode-line-percent-position: line-based instead of ch
bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally)
Fri, 28 Jul 2017 18:07:45 +1000
mu4e 0.9.19; emacs 25.2.1
Eli Zaretskii <address@hidden> writes:
From: Alexis <address@hidden>
Cc: Eli Zaretskii <address@hidden>, address@hidden
Date: Fri, 28 Jul 2017 12:44:12 +1000
As a data point, i have this as part of my `mode-line-format`
(let ((buffer-line-count (count-lines (point-min)
(* 100 (/
(float (count-lines 1 (point)))
(if (equal 0 buffer-line-count)
which gives me at least a rough percentage (i.e. 'good enough'
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
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
be for others. This is on a Core i5-6200U running Debian x86_64.
bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally), Drew Adams, 2017/07/27