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

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

Re: header-line-format interpreting tab chars differently now?


From: Magnus Henoch
Subject: Re: header-line-format interpreting tab chars differently now?
Date: Sun, 13 Feb 2005 16:41:12 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix)

Richard Stallman <address@hidden> writes:

>     Evaluate the following and you will see what I mean:
>
>     (setq header-line-format "Here is a tab:[\t].")
>
>     The result in the new version is that "^I" is displayed, in
>     blue text, in the buffer header line, while previously it 
>     was displayed as a whitespace.
>
> This must be due to this code in xdisp.c:
>
>         else if ((it->c < ' '
>                   && (it->area != TEXT_AREA
>                       /* In mode line, treat \n like other crl chars.  */
>                       || (it->c != '\n'
>                           && it->glyph_row && it->glyph_row->mode_line_p)
>                       || (it->c != '\n' && it->c != '\t')))
>
> If we change that to
>
>         else if ((it->c < ' '
>                   && (it->area != TEXT_AREA
>                       /* In mode line, treat \n like other crl chars.  */
>                       || (it->c != '\t'
>                           && it->glyph_row && it->glyph_row->mode_line_p)
>                       || (it->c != '\n' && it->c != '\t')))
>
> does that give the right results?

Yes, this fixes the problem.

Magnus





reply via email to

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