From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: 13819@debbugs.gnu.org
Subject: bug#13819: 24.3.50; keywords args are no more font-locked
Date: Tue, 26 Feb 2013 20:43:37 +0100 [thread overview]
Message-ID: <87zjyqzwra.fsf@gmail.com> (raw)
In-Reply-To: <87a9qrtmza.fsf@gmail.com>
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>
>>> "Drew Adams" <drew.adams@oracle.com> writes:
>>>
>>>>> >> looks like keywords args are no more font-locked:
>>>>> >> e.g :group, :type, &optional etc...
>>>>> >
>>>>> > See bugs #13767 and #13755.
>>>>>
>>>>> Thanks Drew, found the last but not #13767.
>>>>
>>>> It is here - see the last part about `&optional'.
>>>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13767
>>>
>>> Ok thanks, got it on gmane too.
>>
>> Looks like the problem comes from this commit:
>>
>> ,----
>> | commit 3885cfcaa8293ce29760022faeab6a8213a87827
>> | Author: Stefan Monnier <monnier@iro.umontreal.ca>
>> | Date: Sun Feb 17 11:58:12 2013 -0500
>> `----
> Modifying these regexps make `&optional', `:sources' etc... font-locked
> again :-):
>
> diff --git a/lisp/font-lock.el b/lisp/font-lock.el
> index e5ce4db..de71cf5 100644
> --- a/lisp/font-lock.el
> +++ b/lisp/font-lock.el
> @@ -2336,9 +2336,9 @@ in which C preprocessor directives are used. e.g. `asm-mode' and
> ("`\\(\\(?:\\sw\\|\\s_\\)\\(?:\\sw\\|\\s_\\)+\\)'"
> (1 font-lock-constant-face prepend))
> ;; Constant values.
> - ("\\<:\\(?:\\sw\\|\\s_\\)+\\>" 0 font-lock-builtin-face)
> + (":\\(?:\\sw\\|\\s_\\)+" 0 font-lock-builtin-face)
> ;; ELisp and CLisp `&' keywords as types.
> - ("\\<\\&\\(?:\\sw\\|\\s_\\)+\\>" . font-lock-type-face)
> + ("\\&\\(?:\\sw\\|\\s_\\)+" . font-lock-type-face)
> ;; ELisp regexp grouping constructs
> ((lambda (bound)
> (catch 'found
Even better is this one:
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index e5ce4db..9436012 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -2336,9 +2336,9 @@ in which C preprocessor directives are used. e.g. `asm-mode' and
("`\\(\\(?:\\sw\\|\\s_\\)\\(?:\\sw\\|\\s_\\)+\\)'"
(1 font-lock-constant-face prepend))
;; Constant values.
- ("\\<:\\(?:\\sw\\|\\s_\\)+\\>" 0 font-lock-builtin-face)
+ ("\\_<:\\(?:\\sw\\|\\s_\\)+\\_>" 0 font-lock-builtin-face)
;; ELisp and CLisp `&' keywords as types.
- ("\\<\\&\\(?:\\sw\\|\\s_\\)+\\>" . font-lock-type-face)
+ ("\\_<\\&\\(?:\\sw\\|\\s_\\)+\\_>" . font-lock-type-face)
;; ELisp regexp grouping constructs
((lambda (bound)
(catch 'found
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2013-02-26 19:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-26 9:59 bug#13819: 24.3.50; keywords args are no more font-locked Thierry Volpiatto
2013-02-26 15:05 ` Drew Adams
2013-02-26 15:26 ` Thierry Volpiatto
2013-02-26 15:39 ` Drew Adams
2013-02-26 15:44 ` Thierry Volpiatto
2013-02-26 16:34 ` Thierry Volpiatto
2013-02-26 18:50 ` Thierry Volpiatto
2013-02-26 19:43 ` Thierry Volpiatto [this message]
2013-02-26 21:05 ` Stefan Monnier
2013-02-26 21:17 ` Thierry Volpiatto
2013-02-27 15:30 ` Stefan Monnier
2013-02-27 16:39 ` Thierry Volpiatto
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjyqzwra.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=13819@debbugs.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.