GNU bug report logs - #15009
cl-lib symbols in lisp-font-lock-keywords

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Fri, 2 Aug 2013 16:33:01 UTC

Severity: minor

Merged with 12761

Found in versions 24.2.50, 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15009 in the body.
You can then email your comments to 15009 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15009; Package emacs. (Fri, 02 Aug 2013 16:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juanma Barranquero <lekktu <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 02 Aug 2013 16:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: cl-lib symbols in lisp-font-lock-keywords
Date: Fri, 2 Aug 2013 18:31:57 +0200
Package: emacs
Version: 24.3.50

Now that cl-lib is the preferred way to use CL, cl-lib symbols like
cl-defun, cl-loop. cl-defstruct, etc.
should be added to lisp-font-lock-keywords-*.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15009; Package emacs. (Fri, 02 Aug 2013 16:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 15009 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 15009 <at> debbugs.gnu.org
Subject: Re: bug#15009: cl-lib symbols in lisp-font-lock-keywords
Date: Fri, 02 Aug 2013 12:40:50 -0400
Dupe of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12761




Forcibly Merged 12761 15009. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 02 Aug 2013 16:43:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15009; Package emacs. (Fri, 02 Aug 2013 17:17:02 GMT) Full text and rfc822 format available.

Message #13 received at 15009 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 15009 <at> debbugs.gnu.org
Subject: Re: bug#15009: cl-lib symbols in lisp-font-lock-keywords
Date: Fri, 02 Aug 2013 13:16:25 -0400
> Now that cl-lib is the preferred way to use CL, cl-lib symbols like
> cl-defun, cl-loop. cl-defstruct, etc.
> should be added to lisp-font-lock-keywords-*.

Right.

But: these are not valid in Lisp.  So we need to clean this up by
splitting lisp-font-lock-keywords into a "Lisp" part and an
"Elisp" part.

BTW, ideally, these keyword faces would be added by dynamically
collecting the set of known macros, rather than by a hardcoded list.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15009; Package emacs. (Fri, 02 Aug 2013 17:28:02 GMT) Full text and rfc822 format available.

Message #16 received at 15009 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15009 <at> debbugs.gnu.org
Subject: Re: bug#15009: cl-lib symbols in lisp-font-lock-keywords
Date: Fri, 2 Aug 2013 19:26:39 +0200
On Fri, Aug 2, 2013 at 7:16 PM, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:

> But: these are not valid in Lisp.  So we need to clean this up by
> splitting lisp-font-lock-keywords into a "Lisp" part and an
> "Elisp" part.

OK.

> BTW, ideally, these keyword faces would be added by dynamically
> collecting the set of known macros, rather than by a hardcoded list.

Why? It is a restricted and well-defined set, unlikely to change.
Adding them dynamically adds unnecessary complexity IMO.

   J




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15009; Package emacs. (Fri, 02 Aug 2013 19:24:02 GMT) Full text and rfc822 format available.

Message #19 received at 15009 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 15009 <at> debbugs.gnu.org
Subject: Re: bug#15009: cl-lib symbols in lisp-font-lock-keywords
Date: Fri, 02 Aug 2013 15:23:15 -0400
>> BTW, ideally, these keyword faces would be added by dynamically
>> collecting the set of known macros, rather than by a hardcoded list.
> Why? It is a restricted and well-defined set, unlikely to change.
> Adding them dynamically adds unnecessary complexity IMO.

In order to highlight the name of things defined with cl-defun and
friends, I agree.  But the part that highlights `cl-destructuring-bind'
in font-lock-keyword-face should do it based on the fact that
cl-destructuring-bind is a macro, not via some hard-coded list.


        Stefan




bug marked as fixed in version 24.4, send any further explanations to 12761 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 08 Oct 2013 17:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Nov 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.