Effective February 22, 2024, Google Groups will no longer support new Usenet content. Posting and subscribing will be disallowed, and new content from Usenet peers will not appear. Viewing and searching of historical data will still be supported as it is done today.

bug#2630: most keywords in emacs-lisp-mode has no syntax highlight

11 views
Skip to first unread message

xah lee

unread,
Mar 10, 2009, 11:31:25 PM3/10/09
to bug-gn...@gnu.org
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/


Reply all
Reply to author
Forward
0 new messages