emacs-devel
[Top][All Lists]
Advanced

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

Re: suggestion: function: buffer-bytes


From: Eli Zaretskii
Subject: Re: suggestion: function: buffer-bytes
Date: Sun, 01 Jul 2007 22:34:55 +0300

> From: Kenichi Handa <address@hidden>
> Date: Sun, 01 Jul 2007 17:22:29 +0900
> Cc: address@hidden, address@hidden, address@hidden
> 
> In emacs-unicode-2, you can use a little bit faster version.
> 
> (defun buffer-encoded-size (&optional buffer coding)
>   "Return the encoded size of the current byffer in bytes.
> ..."
>   (save-excursion
>     (and buffer (set-buffer buffer))
>     (or coding
>       (setq coding buffer-file-coding-system))
>     (length (encode-coding-region (point-min) (point-max) coding t))))

Why can't he use this version in Emacs 22?




reply via email to

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