all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4097: issues with js2-mode faces
@ 2009-08-09 18:00 Dan Nicolaescu
  2009-08-12  5:50 ` bug#4130: " Steve Yegge
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Nicolaescu @ 2009-08-09 18:00 UTC (permalink / raw
  To: bug-gnu-emacs; +Cc: Steve Yegge


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?






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4130: issues with js2-mode faces
  2009-08-09 18:00 bug#4097: issues with js2-mode faces Dan Nicolaescu
@ 2009-08-12  5:50 ` Steve Yegge
  2009-08-12  7:00   ` bug#4097: " Dan Nicolaescu
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Yegge @ 2009-08-12  5:50 UTC (permalink / raw
  To: Dan Nicolaescu; +Cc: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

On Sun, Aug 9, 2009 at 11:00 AM, Dan Nicolaescu <dann@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

[-- Attachment #2: Type: text/html, Size: 1354 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4097: issues with js2-mode faces
  2009-08-12  5:50 ` bug#4130: " Steve Yegge
@ 2009-08-12  7:00   ` Dan Nicolaescu
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2009-08-12  7:00 UTC (permalink / raw
  To: Steve Yegge; +Cc: 4097

Steve Yegge <steve.yegge@gmail.com> writes:

  > On Sun, Aug 9, 2009 at 11:00 AM, Dan Nicolaescu <dann@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@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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-12  7:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-09 18:00 bug#4097: issues with js2-mode faces Dan Nicolaescu
2009-08-12  5:50 ` bug#4130: " Steve Yegge
2009-08-12  7:00   ` bug#4097: " Dan Nicolaescu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.