all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 16488@debbugs.gnu.org
Subject: bug#16488: 24.3.50; :inherit ignored in `defface', :box border color used as foreground
Date: Sat, 18 Jan 2014 17:13:04 -0800 (PST)	[thread overview]
Message-ID: <edcfd8be-7672-4fa5-b498-6d921d5a5420@default> (raw)

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@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'





             reply	other threads:[~2014-01-19  1:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-19  1:13 Drew Adams [this message]
2014-01-19  1:20 ` bug#16488: 24.3.50; :inherit ignored in `defface', :box border color used as foreground Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=edcfd8be-7672-4fa5-b498-6d921d5a5420@default \
    --to=drew.adams@oracle.com \
    --cc=16488@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.