bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7307: 24.0.50; Mode line had more than just dashes removed


From: Andreas Schwab
Subject: bug#7307: 24.0.50; Mode line had more than just dashes removed
Date: Fri, 05 Nov 2010 19:45:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Stephen Berman <stephen.berman@gmx.net> writes:

> --- 19342,19362 ----
>       case '-':
>         {
>       register int i;
> !     int fill_len;
> !     int lots_of_filler = 140 * sizeof (char);

What is the point of sizeof (char)?

> !     /* Make a string of mode_line_filler characters.  */
> !     fill_len = 
> !       (mode_line_target == MODE_LINE_NOPROP
> !        || mode_line_target == MODE_LINE_STRING) 
> !       ? 2
> !       : ((field_width <= 0 || field_width > lots_of_filler)
> !          ? FRAME_MESSAGE_BUF_SIZE (f) - 1 
> !          : lots_of_filler);
> !     for (i = 0; i < fill_len; ++i)
> !       decode_mode_spec_buf[i] = mode_line_filler;

What happens if mode_line_filler is a non-ASCII character?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]