[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51469: 27.2; Mismatch: `set-face-attribute' and `face-all-attributes
From: |
Lars Ingebrigtsen |
Subject: |
bug#51469: 27.2; Mismatch: `set-face-attribute' and `face-all-attributes' |
Date: |
Fri, 29 Oct 2021 15:12:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Drew Adams <drew.adams@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