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

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

bug#20704: info.el bug fix; Interprets Info format wrongly


From: Stefan Monnier
Subject: bug#20704: info.el bug fix; Interprets Info format wrongly
Date: Tue, 09 Jun 2015 12:01:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> Using byte-to-position would make things worse for Latin-1 and the
>> likes.

> No, byte-to-position already checks for that:

> ---- src/marker.c, line 302
>   /* If this buffer has as many characters as bytes,
>      each character must be one byte.
>      This takes care of the case where enable-multibyte-characters is nil.  */
>   if (best_above == best_above_byte)
>     return bytepos;
> ----

> Therefore, an Info file in Latin-1 should work just fine.

No, because the representation in the buffer will still be a utf-8
derivative, so best_above will generally not be equal to best_above_byte.


        Stefan





reply via email to

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