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: Richard Stallman
Subject: Re: header-line-format interpreting tab chars differently now?
Date: Sat, 12 Feb 2005 14:18:02 -0500

    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?




reply via email to

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