aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-07-26 04:07:18 +0000
committerKenichi Handa2002-07-26 04:07:18 +0000
commit522b161cd51e44cff2b37e8473c8cbea7ddde9f9 (patch)
tree9bc673b8221aa0b7362678e2d9a67bb9ced3c545
parentf6218dab9d5e31154893106facdfca7d64e8fa96 (diff)
downloademacs-522b161cd51e44cff2b37e8473c8cbea7ddde9f9.tar.gz
emacs-522b161cd51e44cff2b37e8473c8cbea7ddde9f9.zip
(message_dolog, set_message_1,
extend_face_to_end_of_line): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. (highlight_trailing_whitespace): Adjusted for the change of lookup_named_face.
-rw-r--r--src/xdisp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 1041bf44791..b61e7277e4a 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5685,7 +5685,7 @@ message_dolog (m, nbytes, nlflag, multibyte)
5685 for (i = 0; i < nbytes; i += nbytes) 5685 for (i = 0; i < nbytes; i += nbytes)
5686 { 5686 {
5687 c = string_char_and_length (m + i, nbytes - i, &char_bytes); 5687 c = string_char_and_length (m + i, nbytes - i, &char_bytes);
5688 work[0] = (SINGLE_BYTE_CHAR_P (c) 5688 work[0] = (ASCII_CHAR_P (c)
5689 ? c 5689 ? c
5690 : multibyte_char_to_unibyte (c, Qnil)); 5690 : multibyte_char_to_unibyte (c, Qnil));
5691 insert_1_both (work, 1, 1, 1, 0, 0); 5691 insert_1_both (work, 1, 1, 1, 0, 0);
@@ -6946,7 +6946,7 @@ set_message_1 (a1, a2, nbytes, multibyte_p)
6946 for (i = 0; i < nbytes; i += n) 6946 for (i = 0; i < nbytes; i += n)
6947 { 6947 {
6948 c = string_char_and_length (s + i, nbytes - i, &n); 6948 c = string_char_and_length (s + i, nbytes - i, &n);
6949 work[0] = (SINGLE_BYTE_CHAR_P (c) 6949 work[0] = (ASCII_CHAR_P (c)
6950 ? c 6950 ? c
6951 : multibyte_char_to_unibyte (c, Qnil)); 6951 : multibyte_char_to_unibyte (c, Qnil));
6952 insert_1_both (work, 1, 1, 1, 0, 0); 6952 insert_1_both (work, 1, 1, 1, 0, 0);
@@ -12707,7 +12707,7 @@ extend_face_to_end_of_line (it)
12707 ASCII face. This will be automatically undone the next time 12707 ASCII face. This will be automatically undone the next time
12708 get_next_display_element returns a multibyte character. Note 12708 get_next_display_element returns a multibyte character. Note
12709 that the character will always be single byte in unibyte text. */ 12709 that the character will always be single byte in unibyte text. */
12710 if (!SINGLE_BYTE_CHAR_P (it->c)) 12710 if (!ASCII_CHAR_P (it->c))
12711 { 12711 {
12712 it->face_id = FACE_FOR_CHAR (f, face, 0); 12712 it->face_id = FACE_FOR_CHAR (f, face, 0);
12713 } 12713 }
@@ -12815,7 +12815,7 @@ highlight_trailing_whitespace (f, row)
12815 && glyph->u.ch == ' ')) 12815 && glyph->u.ch == ' '))
12816 && trailing_whitespace_p (glyph->charpos)) 12816 && trailing_whitespace_p (glyph->charpos))
12817 { 12817 {
12818 int face_id = lookup_named_face (f, Qtrailing_whitespace, 0); 12818 int face_id = lookup_named_face (f, Qtrailing_whitespace);
12819 12819
12820 while (glyph >= start 12820 while (glyph >= start
12821 && BUFFERP (glyph->object) 12821 && BUFFERP (glyph->object)