[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mysterious fontification/C++ context issue
From: |
martin rudalics |
Subject: |
Re: Mysterious fontification/C++ context issue |
Date: |
Mon, 11 Dec 2006 09:32:22 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
>>BTW, in Elisp an open bracket in column zero of a string should not
>>confuse Emacs. Yet you highlight it with `font-lock-warning-face'.
>
>
> Indeed, it *shouldn't*, but it does confuse Emacs, which is why it's
> highlighted ;-(. We should fix it so it doesn't confuse Emacs any more (and
> doesn't get highlighted either).
Due to the fact that "\\s(" is hardwired in `font-lock-compile-keywords'
and can't be set individually by a major mode. A minor issue showing
that it's not entirely trivial to give a simple recipe fitting all major
modes.
What I meant is "stay away from putting an open paren in column zero
unless it starts a defun" in any programming mode where "open paren" is
what the syntax table says it is. It's one constraint for the user,
easy to explain, understand, and implement, difficult to defend, tho.
- Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw., (continued)
- Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw., Stefan Monnier, 2006/12/15
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/10
- Re: Mysterious fontification/C++ context issue, Kim F. Storm, 2006/12/10
- Re: Mysterious fontification/C++ context issue, Alan Mackenzie, 2006/12/14
- Re: Mysterious fontification/C++ context issue, Miles Bader, 2006/12/14
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/15
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/10
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/10
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/11
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/11
- Re: Mysterious fontification/C++ context issue,
martin rudalics <=
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/11
- Re: Mysterious fontification/C++ context issue, Stefan Monnier, 2006/12/10
- Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/10
Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/06
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/06
- Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/08
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/09
- Re: Mysterious fontification/C++ context issue, Richard Stallman, 2006/12/09
- Re: Mysterious fontification/C++ context issue, martin rudalics, 2006/12/10
- Re: Mysterious fontification/C++ context issue, Alan Mackenzie, 2006/12/10