emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Global Font Lock by default


From: Dan Nicolaescu
Subject: Re: Global Font Lock by default
Date: Mon, 31 Oct 2005 13:24:04 -0800

Romain Francoise <address@hidden> writes:

  > Dan Nicolaescu <address@hidden> writes:
  > 
  > > IMO font-lock-comment-face is missing a default as in the patch below.
  > 
  > It's probably the wrong fix -- the face definition appears to work fine
  > on window-system displays.  What makes it behave differently on ttys?

It seems that the difference is the fact that on 8 color ttys the face
does not specify any properties.

Try adding the faces test1 and test2 to font-lock.el:

(defface test1
  '((((class color) (min-colors 88))
     (:foreground "Firebrick"))
    (((class color) (min-colors 8))
     (:background "magenta4" :foreground "cyan1"))
    (t (:weight bold :slant italic)))
  "test1"
  :group 'font-lock-highlighting-faces)

(defface test2
  '((((class color) (min-colors 88))
     (:foreground "Firebrick"))
    (((class color) (min-colors 8))
     )
    (t (:weight bold :slant italic)))
  "test2"
  :group 'font-lock-highlighting-faces)

then you can observe that test1 is not bold, but face2 is on an 8
color xterm.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]