GNU bug report logs -
#4130
issues with js2-mode faces
Previous Next
Reported by: Steve Yegge <steve.yegge <at> gmail.com>
Date: Wed, 12 Aug 2009 06:00:03 UTC
Severity: normal
Merged with 4097
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Sun, Aug 9, 2009 at 11:00 AM, Dan Nicolaescu <dann <at> ics.uci.edu> wrote:
>
> js2-mode uses -face suffix for faces.
>
> We are not using this suffix anymore and the tree has been cleaned up of
> such with backward compatibility code added. This is new code, so
> there's little point in having the suffix...
>
Agree; I'll fix it. The docs (info pages) are incorrect on a relevant
point,
incidentally; they claim that defining variables whose value is set to the
face of the same name is popular but obsolete; the reality is that
font-lock-add-keywords requires the variable definitions.
>
> Also, instead of defining a new js2-error-face why not just use
> font-lock-warning-face?
>
Why not just define a font-lock-error-face instead? Other modes
(such as compilation) define their own error faces. Fix it in Emacs
and the modes will follow.
-steve
[Message part 2 (text/html, inline)]
This bug report was last modified 15 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.