GNU bug report logs - #2630
most keywords in emacs-lisp-mode has no syntax highlight

Previous Next

Package: emacs;

Reported by: xah lee <xah <at> xahlee.org>

Date: Tue, 10 Mar 2009 21:40:03 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: xah lee <xah <at> xahlee.org>
To: bug-gnu-emacs <at> gnu.org
Subject: most keywords in emacs-lisp-mode has no syntax highlight
Date: Tue, 10 Mar 2009 14:31:25 -0700
the syntax highlighting in emacs-lisp-mode only support the very  
minimum of highlighting.

for example, these keywords would be colored purple by default:

 defun, lambda, while, if, progn, save-restriction

while the following built-in keywords are uncolored (black):
narrow-to-region, mapc, goto-char, point-min, search-forward, car,
nil, replace-match ... etc.

it appears that this is because only proper elisp “special forms”  
are are colored, while all the others are not (macros, functions,  
commands, variables ...). (thanks to Nikolaj Schumacher & Tassilo Horn)

but in summary, i think the way it is is rather odd. It is rather  
strange and difficult to understand unless the user has expert elisp  
knowledge, and it is somewhat not typical with how most other major  
mode for languages syntax color the lang's keywords.

(emacs-lisp-mode doesn't seem to support customize-group and font- 
lock-maximum-decoration)

i think the current behavior is severe enough to be considered a bug.

This is emacs 22.x.

  Xah
∑ http://xahlee.org/

This bug report was last modified 5 years and 237 days ago.

Previous Next


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