unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51595: 26.3; Face attribute value `unspecified' in `defface' breaks Customize UI
@ 2021-11-03 21:09 Drew Adams
  2021-11-03 22:13 ` Stefan Kangas
  2021-11-04  6:49 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Drew Adams @ 2021-11-03 21:09 UTC (permalink / raw)
  To: 51595

emacs -Q

(defface foo '((t :background "LightBlue")) "DOC ..." :group 'faces)
(defface bar '((t :foreground unspecified :background "LightBlue"))
  "DOC..." :group 'faces)

`M-x customize-face foo' shows the UI for the attributes of the face.

`M-x customize-face bar' shows only the Lisp value of the face spec.  A
user has no way to get from there to showing all of the attributes.
There's no way to edit the face.

The doc (Elisp manual) draws no such distinction - speaks of no such
limitation.  It just lists `unspecified' as one of the possible face
attributes:

  "Apart from the values given below, each face attribute can have the
   value 'unspecified'."

This looks like a lacuna in the UI.  You can specify `unspecified' in a
`defface', and the face is perfectly usable and well-defined, but users
can't edit it - can't manipulate its attributes.

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.19042
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''






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

end of thread, other threads:[~2021-11-04 17:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 21:09 bug#51595: 26.3; Face attribute value `unspecified' in `defface' breaks Customize UI Drew Adams
2021-11-03 22:13 ` Stefan Kangas
2021-11-04  6:49 ` Eli Zaretskii
2021-11-04 17:58   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).