GNU bug report logs -
#4097
issues with js2-mode faces
Previous Next
Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>
Date: Sun, 9 Aug 2009 18:10:05 UTC
Severity: normal
Merged with 4130
Done: Chong Yidong <cyd <at> stupidchicken.com>
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 4097 in the body.
You can then email your comments to 4097 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4097
; Package
emacs
.
(Sun, 09 Aug 2009 18:10:05 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
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...
Also, instead of defining a new js2-error-face why not just use
font-lock-warning-face?
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4097
; Package
emacs
.
(Wed, 12 Aug 2009 07:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dan Nicolaescu <dann <at> ics.uci.edu>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 12 Aug 2009 07:10:05 GMT)
Full text and
rfc822 format available.
Message #8 received at 4097 <at> emacsbugs.donarmstrong.com (full text, mbox):
Steve Yegge <steve.yegge <at> gmail.com> writes:
> 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.
It shouldn't require, if you have a situation where it does, please
report it to bug-gnu-emacs <at> gnu.org
>
> 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?
That's a separate issue. You want a face with a red foreground, right?
Currently that is font-lock-warning-face.
> Other modes
> (such as compilation) define their own error faces. Fix it in Emacs
> and the modes will follow.
The issue with compilation is that it uses yellow for
compilation-warning and red for compilation-error (good choices), but
font-lock-warning-face is red. So we'd need to define a new
font-lock-error-face that is red, replace all the existing uses of
font-lock-warning-face with font-lock-error-face and change
font-lock-warning-face to be yellow. I'll propose that.
But meanwhile, there's not reason for js2-mode to define a new face
instead of using font-lock-warning-face.
bug closed, send any further explanations to Dan Nicolaescu <dann <at> ics.uci.edu>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 15 Aug 2009 01:25:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 12 Sep 2009 14:24:43 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 27 Jan 2010 01:53:01 GMT)
Full text and
rfc822 format available.
Merged 4097 4130.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 27 Jan 2010 01:53:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 24 Feb 2010 12:24:05 GMT)
Full text and
rfc822 format available.
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.