From: Kai Ma <justksqsf@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: brennan@umanwizard.com, gregory@heytings.org, 61521@debbugs.gnu.org
Subject: bug#61521: "default" is now the first item returned from (font-faces), breaking various code.
Date: Sat, 18 Feb 2023 14:54:12 +0800 [thread overview]
Message-ID: <24615FB3-774C-4D53-A72B-4FFF53E22EAF@gmail.com> (raw)
In-Reply-To: <83y1ovzcw6.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1987 bytes --]
> On Feb 18, 2023, at 14:49, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: Kai Ma <justksqsf@gmail.com <mailto:justksqsf@gmail.com>>
>> Cc: Eli Zaretskii <eliz@gnu.org <mailto:eliz@gnu.org>>, brennan@umanwizard.com <mailto:brennan@umanwizard.com>,
>> 61521@debbugs.gnu.org <mailto:61521@debbugs.gnu.org>
>> Date: Sat, 18 Feb 2023 06:17:25 +0800
>>
>> My config becomes broken after pulling this change: the child frame of
>> vertico-posframe does not appear under certain themes, and signals
>> errors like:
>>
>> Error in post-command-hook (vertico--exhibit): (error "Invalid face" consult-separator)
>> Error in post-command-hook (vertico--exhibit): (error "Invalid face" hl-todo)
>>
>> I'm not sure if this is a downstream issue, but this problem can be
>> solved by either reverting this commit or removing the nreverse in
>> x-create-frame-with-faces:
>>
>> diff --git a/lisp/faces.el b/lisp/faces.el
>> index 4933b495a6c..e91107e98cc 100644
>> --- a/lisp/faces.el
>> +++ b/lisp/faces.el
>> @@ -2226,7 +2226,7 @@ x-create-frame-with-faces
>> (unwind-protect
>> (progn
>> (x-setup-function-keys frame)
>> - (dolist (face (nreverse (face-list)))
>> + (dolist (face (face-list)))
>> (face-spec-recalc face frame))
>> (x-handle-reverse-video frame parameters)
>> (frame-set-background-mode frame t)
>>
>> This piece of code (w/ nreverse) was written as part of the hash table
>> rewrite, and at that time (face-list) did not sort its results. I don't
>> know why nreverse is significant here though.
>
> Which change are you talking about? Please clarify.
The fix of this bug, commit a555abc56d5 on branch emacs-29.
> The original problem was solved recently on the emacs-29 branch by
> reversing the order in which face-list sorts the faces, to make it
> similar to what we had before the hash table rewrite. So there should
> be no reason to change any other code anywhere else.
>
> Thanks.
[-- Attachment #2: Type: text/html, Size: 8167 bytes --]
next prev parent reply other threads:[~2023-02-18 6:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 0:31 bug#61521: "default" is now the first item returned from (font-faces), breaking various code Brennan Vincent
2023-02-15 0:52 ` Brennan Vincent
2023-02-15 1:00 ` Gregory Heytings
2023-02-15 1:06 ` Brennan Vincent
2023-02-15 9:00 ` Gregory Heytings
2023-02-15 13:43 ` Eli Zaretskii
2023-02-15 14:11 ` Gregory Heytings
2023-02-17 22:17 ` Kai Ma
2023-02-18 6:49 ` Eli Zaretskii
2023-02-18 6:54 ` Kai Ma [this message]
2023-02-18 7:40 ` Eli Zaretskii
2023-02-15 12:58 ` Eli Zaretskii
2023-02-15 14:01 ` Brennan Vincent
2023-02-15 14:19 ` Gregory Heytings
2023-02-15 14:24 ` Eli Zaretskii
2023-02-15 16:19 ` Brennan Vincent
2023-02-17 8:29 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24615FB3-774C-4D53-A72B-4FFF53E22EAF@gmail.com \
--to=justksqsf@gmail.com \
--cc=61521@debbugs.gnu.org \
--cc=brennan@umanwizard.com \
--cc=eliz@gnu.org \
--cc=gregory@heytings.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).