GNU bug report logs -
#27238
24.5; Rename `face-spec-set-2' and give it a better doc string
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sun, 4 Jun 2017 17:43:01 UTC
Severity: wishlist
Found in version 24.5
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Mon, 5 Jun 2017 10:56:13 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: 27238 <at> debbugs.gnu.org
>
> (I still suggest fixing the doc string of `face-spec-set-2', as it is
> misleading about its "SPEC" arg.)
I'm not sure I understand why it's misleading. You said:
> Wrt the doc, the SPEC arg is apparently NOT a face spec, i.e., a spec
> such as is returned by (get FACE 'face-defface-spec). Instead, it seems
> to be an attributes list such as what is returned by `face-spec-choose'
> or `face-attr-construct'.
However, "face spec" is described in '(elisp)Defining Faces' as and
alist whose elements each have the form
(DISPLAY . PLIST)
and I believe the SPEC argument accepted by face-spec-choose has this
form. The argument received by face-spec-set-2 is just the PLIST
which matches the frame's display, i.e. a simple list. So what would
you want the doc string to say about this?
This bug report was last modified 7 years and 348 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.