emacs-devel
[Top][All Lists]
Advanced

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

Re: Patch: goto-address -vs- font-lock-mode


From: Stefan Monnier
Subject: Re: Patch: goto-address -vs- font-lock-mode
Date: Thu, 05 Jul 2007 10:29:48 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> 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




reply via email to

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