all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Buffer size indicator on the mode line.
@ 2003-08-26 14:46 Lute Kamstra
  2003-08-28 16:53 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Lute Kamstra @ 2003-08-26 14:46 UTC (permalink / raw)


A user recently asked (on comp.emacs) for a buffer size indicator on
the mode line.  I liked idea and implemented it.  Similar to the
line/column number indication, I wrote a size-indication-mode that
toggles displaying the buffer size on the mode line like this

... 19% 46673 (251,5) ...

To show the size, I added `(size-indication-mode " %i")' to
`mode-line-position' and implemented the `%i'-construct for
`mode-line-format'.

Do you people think this is a nice feature?

The indicator could be improved by printing the buffer size more human
readable by using K, M, G, T, etc.  Gnulib and coreutils (fileutils)
offer this functionality through human.{c,h}, but this would add a new
library dependency.  Maybe we can just steal human.{c,h} from gnulib?


  Lute.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-02  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26 14:46 Buffer size indicator on the mode line Lute Kamstra
2003-08-28 16:53 ` Richard Stallman
2003-08-29 10:19   ` Lute Kamstra
2003-09-02  9:42     ` Lute Kamstra

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.