Mercurial > emacs
comparison src/xdisp.c @ 37039:9adfbb593c57
(reseat_to_string): If STRING is multibyte, set
the iterator's multibyte_p flag.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 28 Mar 2001 14:31:56 +0000 |
parents | da4aab5d8b60 |
children | f48e8fc252ee |
comparison
equal
deleted
inserted
replaced
37038:528310f62c34 | 37039:9adfbb593c57 |
---|---|
3981 bzero (&it->current, sizeof it->current); | 3981 bzero (&it->current, sizeof it->current); |
3982 it->current.overlay_string_index = -1; | 3982 it->current.overlay_string_index = -1; |
3983 it->current.dpvec_index = -1; | 3983 it->current.dpvec_index = -1; |
3984 xassert (charpos >= 0); | 3984 xassert (charpos >= 0); |
3985 | 3985 |
3986 /* Use the setting of MULTIBYTE if specified. */ | 3986 /* If STRING is specified, use its multibyteness, otherwise use the |
3987 if (multibyte >= 0) | 3987 setting of MULTIBYTE, if specified. */ |
3988 if (STRINGP (string)) | |
3989 it->multibyte_p = STRING_MULTIBYTE (string); | |
3990 else if (multibyte >= 0) | |
3988 it->multibyte_p = multibyte > 0; | 3991 it->multibyte_p = multibyte > 0; |
3989 | 3992 |
3990 if (s == NULL) | 3993 if (s == NULL) |
3991 { | 3994 { |
3992 xassert (STRINGP (string)); | 3995 xassert (STRINGP (string)); |
13941 int hpos_at_start = it->hpos; | 13944 int hpos_at_start = it->hpos; |
13942 int saved_face_id = it->face_id; | 13945 int saved_face_id = it->face_id; |
13943 struct glyph_row *row = it->glyph_row; | 13946 struct glyph_row *row = it->glyph_row; |
13944 | 13947 |
13945 /* Initialize the iterator IT for iteration over STRING beginning | 13948 /* Initialize the iterator IT for iteration over STRING beginning |
13946 with index START. We assume that IT may be modified here (which | 13949 with index START. */ |
13947 means that display_line has to do something when displaying a | |
13948 mini-buffer prompt, which it does). */ | |
13949 reseat_to_string (it, string, lisp_string, start, | 13950 reseat_to_string (it, string, lisp_string, start, |
13950 precision, field_width, multibyte); | 13951 precision, field_width, multibyte); |
13951 | 13952 |
13952 /* If displaying STRING, set up the face of the iterator | 13953 /* If displaying STRING, set up the face of the iterator |
13953 from LISP_STRING, if that's given. */ | 13954 from LISP_STRING, if that's given. */ |