[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hiding text
From: |
thorne |
Subject: |
Re: Hiding text |
Date: |
Fri, 16 Feb 2007 21:48:16 -0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> My crystal ball tells me you did the "invisible" improperly (e.g. by setting
> their foreground color to the background color or some other hack).
> If you place an "invisible" property on those chars, they really will not
> appear at all, not even as spaces.
Your crystal ball is wise...
> Try font-lock rules like
>
> (defvar foo-mode-font-lock-keywords
> '(("\\(_\\)\\([^_ \t\n][^_\n]*\\)\\(_\\)"
> (1 '(face nil invisible t))
> (2 'italics)
> (3 '(face nil invisible t)))))
Ahh, so i had been on the right track. I had actualy been trying
this, but was not able to get it working because i couldn't follow the
,----
| FACENAME is an expression whose value is the face name to use.
| Instead of a face, FACENAME can evaluate to a property list
| of the form (face FACE PROP1 VAL1 PROP2 VAL2 ...)
`----
Now i'm starting to get it. Thank you.
--
þ theron tlax þ