diff options
| author | Gerd Moellmann | 2001-03-28 14:32:24 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-03-28 14:32:24 +0000 |
| commit | e719f5aea7acd2ffeb79c359c7be3b2f2ba8e553 (patch) | |
| tree | c37083d23ff0d5add9b5f4e4f2f7f8e768a04616 | |
| parent | a2a15d1a578b1909ebf77e81c284d1b802b24c21 (diff) | |
| download | emacs-e719f5aea7acd2ffeb79c359c7be3b2f2ba8e553.tar.gz emacs-e719f5aea7acd2ffeb79c359c7be3b2f2ba8e553.zip | |
(reseat_to_string): If STRING is multibyte, set
the iterator's multibyte_p flag.
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 47f6bdfa98d..83a0653a3c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2001-03-28 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-03-28 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (reseat_to_string): If STRING is multibyte, set | ||
| 4 | the iterator's multibyte_p flag. | ||
| 5 | |||
| 3 | * xfaces.c (realize_basic_faces): Decrement menu_face_change_count | 6 | * xfaces.c (realize_basic_faces): Decrement menu_face_change_count |
| 4 | instead of setting it to zero; it's incremented for each frame | 7 | instead of setting it to zero; it's incremented for each frame |
| 5 | where the menu face is changed. | 8 | where the menu face is changed. |
diff --git a/src/xdisp.c b/src/xdisp.c index 669b0d77ebf..c31062232f1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -3983,8 +3983,11 @@ reseat_to_string (it, s, string, charpos, precision, field_width, multibyte) | |||
| 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) |
| @@ -13943,9 +13946,7 @@ display_string (string, lisp_string, face_string, face_string_pos, | |||
| 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 | ||