GNU bug report logs -
#51469
27.2; Mismatch: `set-face-attribute' and `face-all-attributes'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Thu, 28 Oct 2021 23:05:02 UTC
Severity: normal
Tags: wontfix
Found in version 27.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 51469 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> Why is the &rest argument ARGUMENTS of `set-face-attribute' a plist of
> attributes, but `face-all-attributes' returns an alist of attributes?
It's not essentially a plist, but a list of :keyword value pairs, but
that's splitting hairs.
face-all-attributes could return such a plist, but we usually prefer to
return alists from functions instead of plists.
> Is there a good reason for this status quo? If not, can we change it to
> get a better fit and not require conversion?
We can't change the output of face-all-attributes (because that would
break code), so I don't think there's anything to do here, and I'm
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.