GNU bug report logs - #16488
24.3.50; :inherit ignored in `defface', :box border color used as foreground

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 19 Jan 2014 01:14:02 UTC

Severity: normal

Found in version 24.3.50

Done: Drew Adams <drew.adams <at> oracle.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; :inherit ignored in `defface', :box border color used as
 foreground
Date: Sat, 18 Jan 2014 17:13:04 -0800 (PST)
emacs -Q

Evaluate these, in this order, then try `customize-face' on each of
them.

(defface foo1 '((t :inherit region)) "..." :group 'faces)

(defface foo2 '((t (:box (:line-width -1 :color "Red")) :inherit foo1))
  "..." :group 'faces)

(defface foo3 '((t (:box (:line-width -1 :color "Red")) :inherit region))
  "..." :group 'faces)

Expected: `foo2' and `foo3' would each have the background highlighting
of face `region', surrounded by a red hollow box.

What I see: `foo2' and `foo3' do appear the same, but not as expected.

`foo1', as expected, looks like `region': just a highlighted background.

`foo2' and `foo3':

* Showing all attributes shows that `Inherit:' is not checked, and the
  `region' face highlighting is missing.

* The box attribute is checked, and all of its data is correct.

* The `sample' shows a face with a red foreground and no background.
  And no box at all.  And that is what the faces 

The problem arises with both direct (`foo3') and indirect (`foo2')
inheritance.

This problem appears (the same) in older Emacs versions also, at least
as far back as Emacs 22.  (Was :inherit introduced for Emacs 21 or 22?)

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2014-01-17 on ODIEONE
Bzr revision: 116059 michael.albinus <at> gmx.de-20140117182409-gz695p2c951idlee
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'




This bug report was last modified 11 years and 121 days ago.

Previous Next


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