(display_mode_element): If the mode element is a symbol
authorGerd Moellmann <gerd@gnu.org>
Tue, 25 Sep 2001 11:38:24 +0000 (11:38 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 25 Sep 2001 11:38:24 +0000 (11:38 +0000)
with a string value, use that string's multibyteness for
displaying.

src/ChangeLog
src/xdisp.c

index 1b59625..509cd8d 100644 (file)
@@ -1,5 +1,9 @@
 2001-09-25  Gerd Moellmann  <gerd@gnu.org>
 
+       * xdisp.c (display_mode_element): If the mode element is a symbol
+       with a string value, use that string's multibyteness for
+       displaying.
+
        * keyboard.c (read_char): Don't clear a message for a switch-frame
        event.   From Stefan Monnier  <monnier@cs.yale.edu>.
 
index cf51863..e7ee384 100644 (file)
@@ -13511,7 +13511,7 @@ display_mode_element (it, depth, field_width, precision, elt)
                  n += store_frame_title (XSTRING (tem)->data, -1, prec);
                else
                  n += display_string (NULL, tem, Qnil, 0, 0, it,
-                                      0, prec, 0, -1);
+                                      0, prec, 0, STRING_MULTIBYTE (tem));
              }
            else if (!EQ (tem, elt))
              {