Subject: 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 15:43:34 +0200

> Cc: [email-masked]
> Date: Wed, 15 Feb 2023 09:00:44 +0000
> From: Gregory Heytings <[email-masked]>
> 
> Thanks.  It seems the change you describe is not a recent one: the first 
> element of the list returned by 'face-list' is 'default' in Emacs 27, 28, 
> 29 and 30.  (This is caused by e3b8ddd500, since which frame faces are 
> stored in a hash table instead of an alist.)

Right.  So I wonder whether we should remove the nreverse call in
face-set-after-frame-default.  WDYT?

> Given this, and the fact that the docstring of 'face-list' does not 
> specify the order in which the faces are returned, it's not clear to me 
> that there is a bug here.  Code that assumes a given order should probably 
> be fixed.

I agree.