+2011-09-15 Andreas Schwab <schwab@linux-m68k.org>
+
+ * editfns.c (Fformat): Correctly handle text properties on "%%".
+
2011-09-15 Eli Zaretskii <eliz@gnu.org>
* xterm.c (x_draw_composite_glyph_string_foreground):
memset (&discarded[format0 - format_start], 1, format - format0);
conversion = *format;
if (conversion == '%')
- goto copy_char;
+ {
+ format0++;
+ nchars++;
+ goto copy_char;
+ }
discarded[format - format_start] = 1;
format++;
while (! CHAR_HEAD_P (*format));
convbytes = format - src;
- memset (&discarded[format0 + 1 - format_start], 2,
- format - (format0 + 1));
+ memset (&discarded[format0 + 1 - format_start], 2, convbytes - 1);
}
else
{