[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `(' fontification.
From: |
Stefan Monnier |
Subject: |
Re: `(' fontification. |
Date: |
Fri, 21 Oct 2005 11:11:50 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> When I looked to how to implement this, I discovered that this is already
> implemented in `font-lock-compile-keywords' as:
Yes, I installed that yesterday.
> (if (memq (get-text-property (match-beginning 0) 'face)
> '(font-lock-string-face font-lock-doc-face
> font-lock-comment-face))
> (list 'face font-lock-warning-face
> 'help-echo "Looks like a toplevel defun: escape the
> parenthesis"))
> But this doesn't work, because in the actual value of `font-lock-keywords'
> this part has no `help-echo' property:
> (if (memq (get-text-property (match-beginning 0) 'face)
> '(font-lock-string-face font-lock-doc-face
> font-lock-comment-face))
> font-lock-warning-face)
> I don't understand what in Emacs removes this useful help message and why?
Nothing removes it, you probably were looking at a more recent code than the
one you were using ;-)
Stefan