GNU bug report logs - #2066
Face `unspecified' inheritance ignores face-remapping-alist

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Mon, 26 Jan 2009 17:45:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 2066 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 2066 <at> debbugs.gnu.org
Subject: Re: Face `unspecified' inheritance ignores face-remapping-alist
Date: Tue, 27 Jan 2009 14:16:40 -0500
> Faces with an unspecified `inherit' attribute inherit from `default',  
> right?
>
> Unfortunately, this mechanism does not respect remapped faces (face- 
> remapping-alist).  Faces, by default, seem to inherit from the frame  
> default.  To demonstrate:
>
> emacs -Q
> (fundamental-mode)
> (setq face-remapping-alist '((default . highlight)))
> (insert (propertize "test" 'face 'fringe))

I don't see any bug here.  The "test" string inserted into the buffer
has a background different from `highlight', but that's because its
background is not unspecified:

(defface fringe
  '((((class color) (background light))
     :background "grey95")
    (((class color) (background dark))
     :background "grey10")
    (t
     :background "gray"))
  "Basic face for the fringes to the left and right of windows under X."
  :version "21.1"
  :group 'frames
  :group 'basic-faces)




This bug report was last modified 13 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.