From: thorne <thorne@timbral.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Hiding text
Date: Fri, 16 Feb 2007 21:48:16 -0800 [thread overview]
Message-ID: <m3ejopnxlr.fsf@timbral.net> (raw)
In-Reply-To: jwvhctlie7i.fsf-monnier+gnu.emacs.help@gnu.org
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 þ
next prev parent reply other threads:[~2007-02-17 5:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 3:03 Hiding text thorne
2007-02-17 3:21 ` Matthew Flaschen
2007-02-17 3:24 ` Matthew Flaschen
[not found] ` <mailman.4638.1171682684.2155.help-gnu-emacs@gnu.org>
2007-02-17 5:28 ` thorne
2007-02-17 4:56 ` Stefan Monnier
2007-02-17 5:48 ` thorne [this message]
2007-02-17 6:34 ` Matthew Flaschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ejopnxlr.fsf@timbral.net \
--to=thorne@timbral.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).