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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16488 in the body.
You can then email your comments to 16488 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16488; Package emacs. (Sun, 19 Jan 2014 01:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Jan 2014 01:14:03 GMT) Full text and rfc822 format available.

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'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16488; Package emacs. (Sun, 19 Jan 2014 01:21:01 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: 16488 <at> debbugs.gnu.org
Subject: RE: bug#16488: 24.3.50; :inherit ignored in `defface', :box border
 color used as foreground
Date: Sat, 18 Jan 2014 17:20:35 -0800 (PST)
Sorry; nevermind.  I'll close this.

This is the correct form:

((t (:box (:line-width -1 :color "Red") :inherit region)))




bug closed, send any further explanations to 16488 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Drew Adams <drew.adams <at> oracle.com> to control <at> debbugs.gnu.org. (Sun, 19 Jan 2014 01:21:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 16 Feb 2014 12:24:04 GMT) Full text and rfc822 format available.

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.