help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: counting chars in buffer


From: Yuri Khan
Subject: Re: counting chars in buffer
Date: Tue, 13 Jun 2017 02:16:03 +0700

On Tue, Jun 13, 2017 at 1:53 AM, Emanuel Berg <moasen@zoho.com> wrote:
> How would one do that?

Interactively, M-= (count-words-region) displays region or buffer size
in characters as part of its output.

Programmatically, (buffer-size) is documented to return a character
count (as opposed to an octet count). Also, any positions are
specified in characters so you can just subtract them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]