emacs-devel
[Top][All Lists]
Advanced

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

Re: mm-with-unibyte-current-buffer


From: Stefan Monnier
Subject: Re: mm-with-unibyte-current-buffer
Date: Mon, 10 May 2010 13:51:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Binding the value of enable-multibyte-characters may be a no-no, but
> _testing_ its value is still possible.  So I see no reason to
> set-buffer-multibyte unconditionally, because you may already be in a
> unibyte buffer.

But calling set-buffer-multibyte with the current value is harmless (it
checks a returns right away if there's nothing to do; this check might
even be faster than doing it in Elisp).


        Stefan



reply via email to

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