all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16488: 24.3.50; :inherit ignored in `defface', :box border color used as foreground
@ 2014-01-19  1:13 Drew Adams
  2014-01-19  1:20 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2014-01-19  1:13 UTC (permalink / raw)
  To: 16488

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'





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#16488: 24.3.50; :inherit ignored in `defface', :box border color used as foreground
  2014-01-19  1:13 bug#16488: 24.3.50; :inherit ignored in `defface', :box border color used as foreground Drew Adams
@ 2014-01-19  1:20 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2014-01-19  1:20 UTC (permalink / raw)
  To: 16488

Sorry; nevermind.  I'll close this.

This is the correct form:

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-19  1:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-19  1:13 bug#16488: 24.3.50; :inherit ignored in `defface', :box border color used as foreground Drew Adams
2014-01-19  1:20 ` Drew Adams

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.