Subject: Re: bug#61521: "default" is now the first item returned from (font-faces), breaking various code.

From: Eli Zaretskii <[email-masked]>
Date: Wed, 15 Feb 2023 14:58:00 +0200

> Date: Tue, 14 Feb 2023 19:31:30 -0500
> From: Brennan Vincent <[email-masked]>
> 
> Various code seems to expect "default" to be the /last/ item in the list
> returned by that function, not the first. For example, this comment in faces.el:
> 
>   ;; The `reverse' is so that `default' goes first.
>   (dolist (face (nreverse (face-list)))

That comment is obsolete and needs to be changed (and the call to
nreverse should perhaps be removed).

> Also, org-html-htmlize-generate-css does not work when default comes first in
> the list (as it skips processing all fonts after default).

Isn't that a bug in that Org function?  It shouldn't rely on any
particular order.