From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tom Tromey <tromey@redhat.com>
Cc: Emacs Hackers <emacs-devel@gnu.org>
Subject: Re: Patch: goto-address -vs- font-lock-mode
Date: Thu, 05 Jul 2007 10:29:48 -0400 [thread overview]
Message-ID: <jwv644yq60d.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3zm2d2wld.fsf@fleche.redhat.com> (Tom Tromey's message of "Tue\, 03 Jul 2007 12\:03\:42 -0600")
> just about any source code buffer, provided the new font-lock keywords
> were restricted to comments. I didn't see an easy way to do that, though.
One way you can do it is instead of:
> + . (0 '(face ,goto-address-mail-face
> + mouse-face ,goto-address-mail-mouse-face
> + help-echo "mouse-2, C-c RET: mail this address"
> + keymap ,goto-address-highlight-keymap
> + follow-link t
> + goto-address t)))
Use:
. (0 (if (nth 8 (syntax-ppss))
'(face ,goto-address-mail-face
mouse-face ,goto-address-mail-mouse-face
help-echo "mouse-2, C-c RET: mail this address"
keymap ,goto-address-highlight-keymap
follow-link t
goto-address t))))
-- Stefan
prev parent reply other threads:[~2007-07-05 14:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-03 18:03 Patch: goto-address -vs- font-lock-mode Tom Tromey
2007-07-05 1:29 ` Richard Stallman
2007-07-05 1:37 ` Tom Tromey
2007-07-05 14:20 ` Stefan Monnier
2007-07-05 14:29 ` Stefan Monnier [this message]
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=jwv644yq60d.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tromey@redhat.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).