Commit e500c47d authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(font_at): Set `multibyte' at first.

parent ca516334
2008-12-03 Kenichi Handa <handa@m17n.org>
* font.c (font_at): Set `multibyte' at first.
* coding.c (decode_coding_charset): Check type of an element of
vector VALIDS.
......
......@@ -3622,11 +3622,13 @@ font_at (c, pos, face, w, string)
int multibyte;
Lisp_Object font_object;
multibyte = (NILP (string)
? ! NILP (current_buffer->enable_multibyte_characters)
: STRING_MULTIBYTE (string));
if (c < 0)
{
if (NILP (string))
{
multibyte = ! NILP (current_buffer->enable_multibyte_characters);
if (multibyte)
{
EMACS_INT pos_byte = CHAR_TO_BYTE (pos);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment