[Top][All Lists]

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

Re: Font locking #|...|# block in lisp mode?

From: Leo
Subject: Re: Font locking #|...|# block in lisp mode?
Date: Tue, 26 Oct 2010 11:24:31 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4)

On 2010-10-26 03:42 +0800, Sam Steingold wrote:
> emacs uses the heuristic that "^(" starts a function.
> this mean that a paren in column one which does not start a function
> will mess emacs us.
> you can add a space before it in comment or backslash in doc string:
> (defun f ()
>   "Doc which contains parens.
> \(backslash disappears in the reader but saves emacs)"
>   code...)
> #| add a space before "(defun" to help emacs
>  (defun f ())
> #|

On 2010-10-26 03:38 +0800, Stefan Monnier wrote:
> Don't know: works for me, so I'm not sure what case needs to
> be improved.
>         Stefan

>From time to time I have seen code inside #| |# not shown in a comment
face, unfortunately the font locking seems random to me i.e. sometimes
the block is properly font locked after deleting or re-opening the file.

For example:

Attachment: emacs-comment.png
Description: emacs-comment.png

I can get |# to be highlighted in a normal face by deleting or inserting
a blank line in front of it.


reply via email to

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