From: Eli Zaretskii <eliz@gnu.org>
To: Alexis <flexibeast@gmail.com>
Cc: 27847@debbugs.gnu.org
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 [thread overview]
Message-ID: <83o9s53vok.fsf@gnu.org> (raw)
In-Reply-To: <87r2x1i8lf.fsf@gmail.com> (message from Alexis on Fri, 28 Jul 2017 12:44:12 +1000)
> From: Alexis <flexibeast@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 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?
next prev parent reply other threads:[~2017-07-28 6:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-27 13:08 bug#27847: 26.0.50; mode-line-percent-position: line-based instead of char-based (optionally) Dani Moncayo
2017-07-27 17:25 ` Eli Zaretskii
2017-07-27 20:44 ` Dani Moncayo
2017-07-28 2:44 ` Alexis
2017-07-28 6:46 ` Eli Zaretskii [this message]
2017-07-28 8:07 ` Alexis
2017-07-28 5:28 ` Nick Helm
2017-07-27 18:00 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83o9s53vok.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=27847@debbugs.gnu.org \
--cc=flexibeast@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.