GNU bug report logs - #77928
[PATCH] use-package :custom-face is meant to behave like custom-set-face

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Shields <shields@HIDDEN>; Keywords: patch; merged with #81658; dated Sat, 19 Apr 2025 20:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 77928 81658. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 19:22:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 15:22:30 2026
Received: from localhost ([127.0.0.1]:39842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woQuE-00050X-49
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 15:22:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45972)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1woQuA-00050G-Sj
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 15:22:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1woQu5-0000qW-9p; Mon, 27 Jul 2026 15:22:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=qfGeBnuSCSCdyf60ofCXNl4QcU3u/HG9Bmux2FPY+/s=; b=BNPM+AbxpOj5
 DuDueD5Ot2+MdKn6uO8xmUYK8B8YAobhJgIL6T22z7Xs/Bk5XOWmLnkYugJNeG5UxsnIi2cQdq7sV
 TyHYQSXIfUCvCVXO35Ym/fQGDpdW+CjXBTevHvT5ZYx2A6cGicMRx0L6jAZDgWf5NwtTa78Q+XjQB
 Ga9BaZU8nY2pqp2/sFZPqb4juNqj3q9iMX+ZatzcO/PcD3rkCY5tNUId6GqHPh8EzgMDxuDf4bS90
 dPTep8QJe9ZT5c4cRlAXnAxrsc8vQ88AR33ycSmDnTIMFkb0kmilGSzSDQVWTGtgOsr6qcfI5qt5G
 0rUK13E6fMFk1WfLDhejAw==;
Date: Mon, 27 Jul 2026 22:22:07 +0300
Message-Id: <86bjbsp7a8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGx30EzpbiwxPVUWt-+FbyacvX5qz9nTo7wTT94PypMhww@HIDDEN>
 (message from Roshan Shariff on Mon, 27 Jul 2026 11:13:40 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 <865x20r43j.fsf@HIDDEN>
 <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
 <86h5lkpl9r.fsf@HIDDEN>
 <CAG8iPGxKOY6RDdNZ--X2pAA0_rb1XEVEu2ZhdOA6Cjrvf14brQ@HIDDEN>
 <86fr14pgmb.fsf@HIDDEN>
 <CAG8iPGx30EzpbiwxPVUWt-+FbyacvX5qz9nTo7wTT94PypMhww@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Mon, 27 Jul 2026 11:13:40 -0600
> Cc: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Mon, 27 Jul 2026 at 10:00, Eli Zaretskii <eliz@HIDDEN> wrote:
> > However, I could perhaps agree to try this proposal of yours:
> 
> Just to be clear, this was exactly the (default) behaviour of
> :custom-face before this patch. I can prepare another patch to go back
> to that behaviour and hopefully document things better this time. We
> would simply be removing the optional last argument that allows the
> different behaviour that this patch forces.

I thought you were saying that it would also make the original use
case better?  If not, why not do that as well?  I'd prefer not to
revert the change completely.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 17:14:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 13:14:05 2026
Received: from localhost ([127.0.0.1]:39155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woOtv-0002uo-5h
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 13:14:05 -0400
Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:55334)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1woOtq-0002sl-Mi
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 13:14:00 -0400
Received: by mail-pj1-x1029.google.com with SMTP id
 98e67ed59e1d1-381c51fde6bso3291675a91.2
 for <77928 <at> debbugs.gnu.org>; Mon, 27 Jul 2026 10:13:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1785172433; cv=none;
 d=google.com; s=arc-20260327;
 b=dZ6weqRdDon94KFh1OReUCUv3vd9YSVCJGkF4k7kq06G/sHEq4pY/lFy7fBXmgWXwx
 w+rQsOWJM6isCAJdrQ6m2L0xK9znn6K0PQKyrHvsyU9UH22/tyAf8rRKh1PpnFIVQpXP
 /DoVrQtoZ8V9VnLORkcUJhGly0MBmpoZJ1q8ugli0v/1fJ6zg4B6hor/+JyoiQ0D5Sed
 +vdWXhupYj56kszNnpRj6dUZiFlqXj/Prr3pjz1Xf5SexT9M84YFn/bCCPEnQ/GUsZQ6
 eHjTJMerZ/s3FX9ouDup7fD0wZK97LVaSi5HwJm4bzwvFJkvWq9CDeTdxUDCGDIa9Iov
 7VVA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=3ImYeuRQXAlvgBKHDWU7OphqXTkmwlCt0v/JnA92CPI=;
 fh=qvRM8ybwndytByiXQBJPx1h9hww7W9xk7sODPQp0BY0=;
 b=BQvFMr0pyo4wMylS+tKTXIK8ixHn6liwTNgADfBPtdQUgIFtPvDzZvf1sD16wnyRFr
 JAShmvDmTNJUAlZzHp7AXTwv8ciGX4CYWf7InpoIv09q0AnEY2IX9OdSM44gR2nhe89v
 b+hjiuf0+iPpTb28Z/VKeeZdeEZxEE1ogzfybmtgwETup33KN0QzivdvybzORZHIIYa2
 FRPfyP1lh2TTaQFj3nhj02p5jqwygh15jSo+7Fku4fcRgeN4rNUJqE7u5hM8fpf051wR
 VVxtrfJB7/CtpvYktTKV5WY9FNMYysWjt9Slm8+4hLUtW3X2Xx5hQJh5dSSy+Dont+zi
 ltyw==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1785172433; x=1785777233; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=3ImYeuRQXAlvgBKHDWU7OphqXTkmwlCt0v/JnA92CPI=;
 b=kZU3royqq6mI72Qp4vO9d15kYLe/LB/jBfNKIC1iUbWCJfJ2GYkOG7W49wyaMNaUlf
 59TtL/hbE1zNitfDMr6IPwkWmSjvXLX60UgKtaIOzb4Up2oLnwCiCIncIdimFHynXRUp
 0ZyCOFRT5DJXu+qCCOehSs5Ui3jL3MyV83FFe0E89tesFAwq4ESsJOvPsERmSBWAVaDa
 /SqKOZCeDaJ08xBUsqBl/XAacS6guDTRNxjGkAI5lygAqv9tTC+gutg8+P6hshubqp0X
 0/C+vsAFVRSExlMsvZUUoQfhzBYB2QVEHTie9pa7dQlP+s0CmRruBaTX3ZQbd65lDXNj
 1VGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1785172433; x=1785777233;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=3ImYeuRQXAlvgBKHDWU7OphqXTkmwlCt0v/JnA92CPI=;
 b=aDxZr/J+ShuQRRBSKkYS1QlkVZSsNwbpjUZjm/D4gZRPAwK0MN9Pmi317OXqUyBMYi
 AkaFRcBFy7YygQfwJn1V0ZpUTUE6+cXf+kMvraqFogq6neCzuvGsRkiOpz2axYj5MzbU
 +EGECgp5vKF/pub03+TGs4qaXjxyDhYT2dwe1ftBmic3r145Xa64o+pkAm/qbotYH85Z
 hlX1rgt3r2ajsfs5Lm/lfWqKFVFQSkFRD1jgSrrwIBed/Gpel+LL+46bvWUziz12TTPd
 Ri+YP50gnp/BzPHCQUyyq5SnGzaDtFVveDI765A6FjvsRlpRfTLMB3R8UUeSuv1vu74e
 EXEw==
X-Forwarded-Encrypted: i=1;
 AHgh+RqoH6S7NNIqLQDdfMhTGPbZT9LVbYtWqxWZ9mwQJI/ZYuAZ0UKrYntU9mCBqO1ke0+FU1bKcQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyUBd1tJ9PYoakUGJxU8msz6hTgMufDN0CB7LBebLO5y1akcCQW
 hDnArD+rjcfRNPzXXhjlC+OZ49BO9bkldBmVyb4POG32O2PwB7u1TcPeZ+UeGQ00UQvLh1Snad1
 QIqvwkV73aJIslKjQOe4IZ754a8ESxBc=
X-Gm-Gg: AR+sD13sUMO9qe05EfeUqm8I33ZyND+SQglTNecX6pSUVdA0nnYoBTLuriNFZ/JeATG
 +Sn/iVjDVS3wGh9HdHwnwDFp5+WxOKof9OF8Ud97RCujdV0AwAg1eokFOG+SN79JhiRFr69v/nF
 9Ro/3Yqo7HbEybVnJ+5flGEln8a1mHgzBMrnxq8PHcWtHLp7AG/wGYLY5Yi2VSOrpnNhKOp580J
 17REopYdp1/cPL9vaJoPjiwAB5OiPg/2azc/phedC5qIAJA7LNshFvjNjw=
X-Received: by 2002:a17:90b:1d44:b0:381:28e0:624d with SMTP id
 98e67ed59e1d1-38f29613652mr8744548a91.28.1785172432592; Mon, 27 Jul 2026
 10:13:52 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 <865x20r43j.fsf@HIDDEN>
 <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
 <86h5lkpl9r.fsf@HIDDEN>
 <CAG8iPGxKOY6RDdNZ--X2pAA0_rb1XEVEu2ZhdOA6Cjrvf14brQ@HIDDEN>
 <86fr14pgmb.fsf@HIDDEN>
In-Reply-To: <86fr14pgmb.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Mon, 27 Jul 2026 11:13:40 -0600
X-Gm-Features: AUfX_myCHPMWSF2lABzIkoLm24GIpi8Y4MqijILQhqA6xhfihqQRLyp1tni39e8
Message-ID: <CAG8iPGx30EzpbiwxPVUWt-+FbyacvX5qz9nTo7wTT94PypMhww@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Mon, 27 Jul 2026 at 10:00, Eli Zaretskii <eliz@HIDDEN> wrote:
> However, I could perhaps agree to try this proposal of yours:

Just to be clear, this was exactly the (default) behaviour of
:custom-face before this patch. I can prepare another patch to go back
to that behaviour and hopefully document things better this time. We
would simply be removing the optional last argument that allows the
different behaviour that this patch forces.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 16:00:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 12:00:47 2026
Received: from localhost ([127.0.0.1]:38972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woNky-0005gC-1f
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 12:00:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56042)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1woNks-0005dm-T9
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 12:00:41 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1woNkn-0006lv-2y; Mon, 27 Jul 2026 12:00:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=T8kgpsPZD3iItWpeZCvESBnc2JbNoILIisn1hN636Tk=; b=Lt6B5Visy8BK
 PoEupsuIXy9ZAk/MzQbJ9qOUmuLaT1ouNOKhEftbV9Q78xT8pJFGpzthNzCdXu1HJO1N+ovC6EnQM
 rjBeHhxGpqcqor097KN+KeNG5Pi9lx2mkGdCN9KNhcu+E7DgKkVsdx5Uf0ktWksbcB3Paz6DzG8iO
 02i+i4wXHlam7+UCccVItasdE4buBedv63t+eJzbyGOcZcASwf1YUFQ7v2QZ5VZvWOtscty/GWOAZ
 jzSg9DDYgyxr3sVMqTif/O5Jfw8kYvkXQXrCiRE1/QMoLZXGpSloMnSb/FKQ9BbhuNuz3wW4UBrqh
 c1wa8j8C7ySYDX72fGr+nw==;
Date: Mon, 27 Jul 2026 19:00:28 +0300
Message-Id: <86fr14pgmb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGxKOY6RDdNZ--X2pAA0_rb1XEVEu2ZhdOA6Cjrvf14brQ@HIDDEN>
 (message from Roshan Shariff on Mon, 27 Jul 2026 08:39:42 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 <865x20r43j.fsf@HIDDEN>
 <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
 <86h5lkpl9r.fsf@HIDDEN>
 <CAG8iPGxKOY6RDdNZ--X2pAA0_rb1XEVEu2ZhdOA6Cjrvf14brQ@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Mon, 27 Jul 2026 08:39:42 -0600
> Cc: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Mon, 27 Jul 2026 at 08:20, Eli Zaretskii <eliz@HIDDEN> wrote:
> > I'm not even sure we all agree that it's a "regression".  That's why I
> > asked for opinions in the first place.
> 
> I won't go any further, because this is starting to seem Sisyphean.
> But I will point out that this bug report has extremely limited reach.
> Steven Allen very clearly noticed the change of behaviour, spent a
> great deal of time explaining it, and wrote a set of patches to try to
> correct it. Andy Moreton and Kristoffer Balintona also thought this
> was a regression. It could simply be that they're busy right now,
> especially after their earlier efforts didn't get much response (and
> the latter two are not specifically CC'd) . Except for Michael
> Shields, the patch author, everyone else who has an opinion preferred
> the status quo of previous Emacs versions. You yourself just said you
> wanted more clarification, which I attempted (and unfortunately,
> failed) to provide. I suspect, but of course can't know, that more
> people will report this as a bug when Emacs 31 is released.

Nevertheless, I would hesitate reverting to previous behavior for
Emacs 31.

However, I could perhaps agree to try this proposal of yours:

  Concretely, I'm proposing that the use-package :custom-face form
  should put its argument into the 'face-override-spec property. You can
  look at the implementation of face-spec-recalc to see what exactly
  that means, but briefly it is applied "on top of" either the defface
  spec or the user theme + customization. That broadly seems to me like
  the right semantics.

on the master branch.  If it produces good results, maybe we could
consider it for backporting in Emacs 31.2.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 14:40:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 10:40:05 2026
Received: from localhost ([127.0.0.1]:38802 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woMUu-0007gK-9w
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 10:40:05 -0400
Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:42434)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1woMUq-0007ec-VJ
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 10:40:01 -0400
Received: by mail-pl1-x630.google.com with SMTP id
 d9443c01a7336-2ce98cb8165so31752735ad.1
 for <77928 <at> debbugs.gnu.org>; Mon, 27 Jul 2026 07:40:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1785163195; cv=none;
 d=google.com; s=arc-20260327;
 b=kUmdUU3GvNW6QjKn31OOkOWsqzoqRjY4/ecGJ4Kf07pmTkEqMEYCCaJN1RP4gveI/z
 TI5/bWaFmxS0kMiXSJd1+LdSzyVu1Ui4CcCr4i3H5ZOLoa4QhT+go0WYhqBS98kdCu9U
 MQg814QfmYj2lcHQUpkCdVOdStnPafgTzG6+GJI9dll4rJ6CnXRHKbHkN8Kw4zveRqVB
 iP4R8zIjT/dVP+i6jExZVcRtlWn8YFNXg5/e0E1HQi5ovO4HIL6xKzMJCntX1u1m3IYJ
 6+AA0qfwervo6sMkLRG/g0eNcRnSbJPqSSltXvxXLPiMwWS4cFK1ouI1p+zTrcuJx5hv
 Mzyw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=cMJpJqKf6yPInVt3VI+7aaPRYJVBuGtnq0fvlUAuRAk=;
 fh=UkwLK++c7Jdud9CpCLXpPWiK8q5QBvvZcwGorugz0fU=;
 b=IDEfYpvVCeuJlf4QhRlMLB2loyKpE0ThoN5O4RlEDgYMiZ9NHgyF+nY8e1rgd9ysaw
 G71GUnrM9IaDeS7l5nSijuubzcy5m7yR3TRtxudN6zwYLKkY41QKcK0yRzPXVGTYcaEb
 rGob6btW6TpmbrLt+vqgy/eGFta4DGKeGwBsKyyRuHo/QiYHbBYBVUm9pMicEJlFtA4s
 mJLQuT3EKy6vI51licdUpss5ksFl6tdKIabcnLGHpbn/iR3W2mDkaTCavWcpbyLNGy/w
 fngOSJLJtPbtBQlZqXD6n5RlVEBStduhaWh2nAUZXW5US+/etrjxjdRJP/OxXt+GUlG9
 W3Wg==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1785163195; x=1785767995; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=cMJpJqKf6yPInVt3VI+7aaPRYJVBuGtnq0fvlUAuRAk=;
 b=nIH1lThSe1OWRow79Bm0vwaSIMsBl3UITITS2zqM3Nz3OXsSfTrO5yoRCUHMrvCd0Z
 8sn9VtC+cj+9sIM49Gbhw3TyYzBsMFOOdRmSb6NqfDg3COZUDN+5pfhTVZQzOyXztAWS
 E/NB3B1VkXJbAls/M4E7cXcnqq6UCsTJNLg/TU6OC3beaGE98/SiRRcWpdttL3/yrUK3
 XiHvz1HWIfjde7qXm6IxHoO7k8tEyTZFhPB7RfaaasvPnlLM2XgC5/UN4MHBc3mI/qV5
 r74MEov6EMg28kzZDNfjykrr9hZHizjqUVgPwZgTz1EiWzGsbdRPyzOSB+Ew4vkDGAFf
 RNsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1785163195; x=1785767995;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=cMJpJqKf6yPInVt3VI+7aaPRYJVBuGtnq0fvlUAuRAk=;
 b=tJTEdgFY/S/lcKBeDgAHCrKCkxN4JyE1CrTlcRrOYCIYsDb+d+2i3ehqWHVPS3t+e7
 W0Z3uh8pzX5qu3jt+tJeXrghP74AhZKwWvYiuqRopYTfyP57BCa4F40Ku0j3DKW9yebv
 3TafZxlPcxGHlvgjTaDaeEMLFBTxg5d1poK6yAmythc2lJ3IkxyAxRV5YvVq9OCkK/N8
 TCaz59STm4uCmAKiCKsRoxWyXROcha0R4GSogG/5/rLbEYHeGKjG/xL6p7RmiIyUXT80
 0bkEu8CgXKFVf5hI5D9wL/P69Jn5wxVpawtL0ktaIGpTIgDo/F67t8NwyViUzIs9TY6B
 j16w==
X-Forwarded-Encrypted: i=1;
 AHgh+RrijaADW81zUvtPznKAtIV8+ALVrFTbXubKkm+e6w/EDfAkViRWtjQEWm87jz7EX83yh4TOnQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyJ7P/0p9RrP8Jzp1PmttxbM2zUJxsV/QJsIV21r71SyWTcw7VT
 g1r8vOJvcMzY5/xZcnLZceZZzq/i1bYbZ7HOncMGMT3UAPoZv6gPUfImkD0XFH5mEdpNZqHSktN
 e/o+BPEQG66/RORB8IUpc28J/tipD+ps=
X-Gm-Gg: AR+sD13RVIJPXogjEDn+Eba70MqgnlvfwHK7JL44yfYM2/XjYEilAYQ/gOhJZdPemTe
 0R7M/gEbZ3UKeUICvYEsR25LqSs1dotv3KksCPQbM9Zqu+X9Xl6SGd8ZRn8g8NbdPVxYv3lTKqK
 Hto+IrdFysgk+XEMVzlWvKeFRufH6R0PPi5WlhbCLtv8atCDfuhp6OoqzC+VPnxkLTEAfHktnEx
 gXoYJFpxSDj8qOUnaRtQpjjjRMKElifswseHTPuZKDscE3oW/tNVyWLwpHUHUFr1VxfLQ==
X-Received: by 2002:a17:903:384d:b0:2cc:bdb9:3c04 with SMTP id
 d9443c01a7336-2cfd7179882mr97231015ad.17.1785163194638; Mon, 27 Jul 2026
 07:39:54 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 <865x20r43j.fsf@HIDDEN>
 <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
 <86h5lkpl9r.fsf@HIDDEN>
In-Reply-To: <86h5lkpl9r.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Mon, 27 Jul 2026 08:39:42 -0600
X-Gm-Features: AUfX_mw_eT7zfuywHgViehA-rAxsHQOtyEYE93QCbBxM1JW_ev-MtbB9FI3TqlI
Message-ID: <CAG8iPGxKOY6RDdNZ--X2pAA0_rb1XEVEu2ZhdOA6Cjrvf14brQ@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Mon, 27 Jul 2026 at 08:20, Eli Zaretskii <eliz@HIDDEN> wrote:
> I'm not even sure we all agree that it's a "regression".  That's why I
> asked for opinions in the first place.

I won't go any further, because this is starting to seem Sisyphean.
But I will point out that this bug report has extremely limited reach.
Steven Allen very clearly noticed the change of behaviour, spent a
great deal of time explaining it, and wrote a set of patches to try to
correct it. Andy Moreton and Kristoffer Balintona also thought this
was a regression. It could simply be that they're busy right now,
especially after their earlier efforts didn't get much response (and
the latter two are not specifically CC'd) . Except for Michael
Shields, the patch author, everyone else who has an opinion preferred
the status quo of previous Emacs versions. You yourself just said you
wanted more clarification, which I attempted (and unfortunately,
failed) to provide. I suspect, but of course can't know, that more
people will report this as a bug when Emacs 31 is released.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 14:20:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 10:20:17 2026
Received: from localhost ([127.0.0.1]:38760 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woMBi-0004He-7N
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 10:20:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54004)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1woMBd-0004DQ-6h
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 10:20:12 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1woMBX-0000u1-AG; Mon, 27 Jul 2026 10:20:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=3l0YS7az7K/4/iZ8CPZA46VOGt0aOd7QQMsTamjIbDw=; b=cxAAXpgK2xxy
 /RhQ2CPABoBF8ecINLuMNvSew0mbJtYCGHhSpC1qHdVrSSubydxmrfhYHeWRzuM20Rg0AwYjlmD+g
 ZBOzeAcj0jqMJQhn3QTq0xJkGvTDUsG+nuorOIzBnAJ1AkkAKsZ3DK2sTnWbo/ygB66xbUdq76aqp
 VtpF5hqE/ZFJQYuY4GP6/lScytTJhAE0ZrP20FOdlYCv5ItAZsJSYZGv2f127+L3USZhVdXvNfQR3
 vplIn/jybtH/Ax5VlJMVkSyCueVZcWuvtsOsr3vFqZ22Rq3WYG012iaMvcyknJt6D3ieSJC3dMgOa
 L/71Kw3xchNI5TPMGJTDgg==;
Date: Mon, 27 Jul 2026 17:20:00 +0300
Message-Id: <86h5lkpl9r.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
 (message from Roshan Shariff on Mon, 27 Jul 2026 08:02:29 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 <865x20r43j.fsf@HIDDEN>
 <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Mon, 27 Jul 2026 08:02:29 -0600
> Cc: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Mon, 27 Jul 2026 at 06:48, Eli Zaretskii <eliz@HIDDEN> wrote:
> > And I really don't see any reasons to keep this argument, where it is
> > clear we disagree about fundamental issues, and no one else feels it's
> > important enough to chime in.
> 
> I understand, but can I at least push for reverting this patch?

You already did, and I already said I would like to hear opinions of
others.  Who didn't materialize...

> * It is trying to accommodate a new way of using :custom-face which
> has never been possible in any version of use-package included in
> Emacs.
> 
> * In the process, it breaks a way of using it which has worked
> perfectly well in the past.
> 
> * It makes it impossible for any simple workaround to support the
> existing use case, while trying to support a new use-case that can be
> accommodated without the patch with a simple work-around.
> 
> If we can't agree on how things should work, why not just go with not
> creating a regression? I don't think the behaviour this patch
> introduces is obviously "more correct" so doesn't it make sense to
> stick with the status quo? I would be happy to create a documentation
> patch explaining how to accomplish what the patch author wants, but
> without breaking things for existing users as this patch does.

I'm not even sure we all agree that it's a "regression".  That's why I
asked for opinions in the first place.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 14:02:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 10:02:54 2026
Received: from localhost ([127.0.0.1]:38716 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woLuu-0001KP-Qy
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 10:02:54 -0400
Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:47600)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1woLup-0001Ir-Qt
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 10:02:49 -0400
Received: by mail-pl1-x635.google.com with SMTP id
 d9443c01a7336-2cad4170e8eso40516085ad.3
 for <77928 <at> debbugs.gnu.org>; Mon, 27 Jul 2026 07:02:47 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1785160962; cv=none;
 d=google.com; s=arc-20260327;
 b=SY2eZOB0YJUM2rRWtY6H2oyq6fqpEq8s7ZU63DX2c/3KhR7yOdQbZGnKfxWVTD+91j
 tr3Ck+YXc17nb5gcShQAwuuCZcUDL72WP/14RbHQvH1N7KQnJEUDWki4xMFBUNN6f1Dy
 jQLmwpJoJsF4vHmcEssMGUFuW6NEvEynW6AKVqIiEbuBGXXvTLCG6WTLB6Sm+tRF8whb
 Ly9R94CBEIHVALGcV5XCpn4FZ7pvwHeHHdrSgTKIlQMI3b8Q7Nk0rCIUGRygdgripBDp
 Zp5R4xFLej2uto9JmmYCXiH+2601DSXKXoaG69bDikTsDEXua+VS0+vWa9eAX9/nSkpT
 rbpQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=9BbmFdotPGNOi1KlDbqvzyA7GCVcTr0J5W9aURGH2lw=;
 fh=m3YfQaw7TbH7onJ/vSdZbKHDPSboBtXtBLDx4g5NVq0=;
 b=ZFXidy6V2EMH7LK+fDRBuJgjIjPm23Pc4l3OHZUxaORr56vmjOtN20TWCtZQTis/ZX
 xgA19ix+GzrAPvSKHcGA/7c6unwtYlLTRlNiiPZLHT/dvkH1njWdA7Y6ZglRMzGQ4pwh
 FIdbHGph7ragz7ig1fthHP2tx+iOeqDFjBMOl1tnrG/4TIKX/t64jqtqwMyTO9F0MCmx
 yBGRMyvUkYMKXqd4iVD4CCGI0ZRF1FSwHRN8Ht36m6RlKzCyytShN69gNuqv3HS7a32i
 ndMZFc5CENU6a/NjAwN3k8L9p0NylNoL+kGGdMPodYcuhl4I6AuwnNEA5GBzvrKQWjrS
 PX5Q==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1785160962; x=1785765762; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=9BbmFdotPGNOi1KlDbqvzyA7GCVcTr0J5W9aURGH2lw=;
 b=YWx+CDWC06STP9lnpRz3ukgfVoQIHiKSb5bgJl/6ybMgphcm6Tx7D9P9xxxSvCplc1
 EMEGjjkoaVh2O24jTClWHLJTgvGAXhS7m0dr/9yMLDyOu9Yufpq/czn4UZEEtpErB9QS
 tbxzWI0YEr/Oc4SjazwDH3jc09YtZi1tres438noj+eOLrJlfojrbSikqoY/l283wPD1
 c8Q6XXmY961xxIEh9k5egNNOg9KoN587ap5AK4LF8Rn9wKKglwXaUc5Mfyc+qvMpdF+J
 AIXj38GT+9OX69ZVxyQ8jwgATVhDnOJkbGGht2/Oii4OB2GbC+WqHmrhWxr28cozvJBq
 XzWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1785160962; x=1785765762;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=9BbmFdotPGNOi1KlDbqvzyA7GCVcTr0J5W9aURGH2lw=;
 b=fdrpha3IWlYPwIA7YOXM1RZ/ENFOwQaqJmmiN4cQU02YXeAD892cm4PU1yWM8sULrp
 Hbv2h18eNrigEfLlogQeRRSZSnubmpf+i8e9OJVkMhjG2LzSIBm4bgiGbtEoDHrSj0GG
 43tPQ1q7C9T3kq3UDjEzOwATbO1u6fk3cgavpsQoya5yzbX/+zizxCjYP7kTjt5cgV2i
 BJukHpOpOQutv5Roj9LoXyk35WW3Wo4lfYsRmDJlyctjg/nCKYqaKbpW1ZMdfJAhwlO6
 FbdcTNHr1NISxPMDZYMuLFkLpws3TMP/mqpQVh+y+ny3nZlPHwWQW7xBJHhw8/xykl1X
 6+/A==
X-Forwarded-Encrypted: i=1;
 AHgh+RpoohGULFAGG25cd8II/0eq0HX56H+mMwQ1rc8zN7Y1vWkaUPhPEuvFTKTEJp9dIIEAbbpXjw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yz6xcA0LVn2YBcYHjBskJWUyNdA+vIP/qUS5+vvHKqSVmuNT2W6
 v7YQdhW2vKs0OybYu67dwzJpt4h+p4Z7HqkD5e4IhEB/WC1bKmxGdtU/Zz90lI4M9B83UOg36oi
 uNt0/+89PgCPcz8Of6g4Hfk2M7sK+WjU=
X-Gm-Gg: AR+sD131ShvYxXScIv4TJAAVpAYeX3npmQF1a1lz6vVjjo23SwxtHfCdfqBDwT/E1ss
 4+pqYxQnIxqDealXCkM34740sUV7E6Y8PtYkuKn5udi0sR3MnlI2W2hoHDmuA39+wLC7hFnFexR
 6g2KiojTwDuclfSfkSb6W9oO5HIyslCdbmTt1sJN5o6+4iA2ZC6lpaNEEe1CYr1WijDBJOCg+i4
 XGJDm3PtX4dw7KzwLFmbbQDbLpKj8zdwd7CXybGPfjMA+jH7FXTC1et41o=
X-Received: by 2002:a17:903:120b:b0:2c9:de53:f84f with SMTP id
 d9443c01a7336-2cfde7addedmr79238465ad.19.1785160961295; Mon, 27 Jul 2026
 07:02:41 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 <865x20r43j.fsf@HIDDEN>
In-Reply-To: <865x20r43j.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Mon, 27 Jul 2026 08:02:29 -0600
X-Gm-Features: AUfX_mzBlsFJDjBQp7J-dzwDEdlxCa8ZGvEfWpc0b214w9erE8HkZj72K-FNW_4
Message-ID: <CAG8iPGyAS8jrPTA_xuTq9p7hLf3juNaqZerARO36D20+1Vm-zw@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Mon, 27 Jul 2026 at 06:48, Eli Zaretskii <eliz@HIDDEN> wrote:
> And I really don't see any reasons to keep this argument, where it is
> clear we disagree about fundamental issues, and no one else feels it's
> important enough to chime in.

I understand, but can I at least push for reverting this patch?

* It is trying to accommodate a new way of using :custom-face which
has never been possible in any version of use-package included in
Emacs.

* In the process, it breaks a way of using it which has worked
perfectly well in the past.

* It makes it impossible for any simple workaround to support the
existing use case, while trying to support a new use-case that can be
accommodated without the patch with a simple work-around.

If we can't agree on how things should work, why not just go with not
creating a regression? I don't think the behaviour this patch
introduces is obviously "more correct" so doesn't it make sense to
stick with the status quo? I would be happy to create a documentation
patch explaining how to accomplish what the patch author wants, but
without breaking things for existing users as this patch does.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Jul 2026 12:48:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 08:48:13 2026
Received: from localhost ([127.0.0.1]:37317 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1woKke-00074E-O8
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2026 08:48:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36516)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1woKkb-00073v-R5
 for 77928 <at> debbugs.gnu.org; Mon, 27 Jul 2026 08:48:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1woKkW-0003s1-B7; Mon, 27 Jul 2026 08:48:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=zlqajAh4l67TsgQZn4SZHY5ZxAwEqKb8v3hygnqnNNc=; b=Zc7QtMHqflyk
 GZ8aDoFIzLfs5cQM2xbA8RYSxDX1Ot78zRXSee8r8B34noFXLrYmpSoW8j7+n+cpucVyLtsR2+twO
 5GDPFW2NHhemR4qqwU90MWvuaN2sAjhUFaY5uuuT556cJnBwiPAPms8HQ1sXckfCpjDmIyQLsZhRz
 2SfWMGJpHY1e3eemPfSgBe3oZqsZhBp7pjqYMvQ0Y/UdcvOIhsUQTdSgyYmoPPKZ5sJgHFkQ7zF95
 IFnZolLSR0k3y6Hg70+wEU8MVMPwtP1nNlxSHasBhz358ZzwXDdq95yECIX3XsglI9XSVEll4qx5d
 /XbaPGfhZpKRBkhVuzIDQA==;
Date: Mon, 27 Jul 2026 15:48:00 +0300
Message-Id: <865x20r43j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
 (message from Roshan Shariff on Sun, 26 Jul 2026 13:44:20 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
 <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sun, 26 Jul 2026 13:44:20 -0600
> Cc: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Sat, 25 Jul 2026 at 22:48, Eli Zaretskii <eliz@HIDDEN> wrote:
> > > If the face spec is recalculated for any reason, your changes are
> > > lost.
> >
> > As they should be, IMO
> 
> I'm afraid this can't serve the intended purpose of :custom-face,
> which it actually did before this patch.

Which is the original sin, IMNSHO.  It could be that we are forever
stuck with this, but that doesn't mean we need to like it, and we
might as well choose to refrain from fixing problems that are caused
by this particular implementation.

> A use-package declaration,
> just like the auto-generated custom-set-faces form, executes exactly
> once: at init time. Whereas changing themes can happen any time, for
> example by calling load-theme interactively (to switch from a light to
> dark theme, say). That's why all these customization facilities are
> declarative forms that save the user's preference in some
> variable/property and then apply it whenever themes are changed.

I see no reason whatsoever to expect :custom-face to keep being in
effect after a theme is loaded.  If the user wants :custom-face to
take precedence, he/she should use :custom-face _after_ loading a
theme in their init file.  And if a theme is loaded manually, it is
completely okay, from my POV, for it to override all the previous face
customizations.

> On the other hand, set-face-attributes is the lower-level imperative
> mechanism that these declarative forms use to actually apply the face
> attributes they've computed. If, as you suggest, :custom-face were to
> desugar to set-face-attributes, then the only way for a user to
> re-apply their preference after changing themes would be to open their
> init file and explicitly re-evaluate the use-package block.

Or use one of the commands that set various face properties, yes.  As
I mentioned above, I see no problem in this.

> > What you seem to want to do is possible via custom-set-faces.  But
> > mixing :custom-face and custom-set-faces is known (and documented) to
> > produce confusing results, so my conclusion is that we shouldn't make
> > :custom-face work like custom-set-faces, or else we will be
> > encouraging the confusing results against which we ourselves warn.
> 
> This entire discussion is because custom-set-faces is not an adequate
> replacement either. If it were, we could just desugar :custom-face to
> a call to custom-set-faces and call it a day. Instead, we want the
> semantics of custom-set-faces with respect to applying customizations,
> but we don't want to participate in the auto-persistence
> functionality. Indeed, the use-package form has already been saved by
> the user in their init file, so there's no reason for Emacs to worry
> about saving it again by automagically editing the custom-file. That's
> where custom-set-faces falls down, since it's really only meant to be
> called from that auto-generated custom-file section, if you use it
> directly from elsewhere in your init file, that customization will be
> duplicated into the auto-generated section (and cause really confusing
> issues).
> 
> The goal is not to allow mixing custom-set-faces with :custom-file;
> the latter is a replacement for the former, with the same
> functionality sans auto-persistence. But, of course, since we can't
> prevent the user from using both, we should define something
> reasonable to happen if they do.

You lost me here, sorry.

And I really don't see any reasons to keep this argument, where it is
clear we disagree about fundamental issues, and no one else feels it's
important enough to chime in.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 26 Jul 2026 19:44:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 26 15:44:39 2026
Received: from localhost ([127.0.0.1]:60440 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wo4m7-0003Ar-Fv
	for submit <at> debbugs.gnu.org; Sun, 26 Jul 2026 15:44:39 -0400
Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:59653)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wo4m5-00039z-G1
 for 77928 <at> debbugs.gnu.org; Sun, 26 Jul 2026 15:44:38 -0400
Received: by mail-pl1-x632.google.com with SMTP id
 d9443c01a7336-2ce7d2adef4so25231785ad.3
 for <77928 <at> debbugs.gnu.org>; Sun, 26 Jul 2026 12:44:37 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1785095071; cv=none;
 d=google.com; s=arc-20260327;
 b=It8+v4aNcXLI3Du466FIDkVcGDWxoYRKxYCe26NiGggoVV3KrakHx3pd8MVhNhcrEd
 lGWVT0p/dR4Uj45fm2MCBv0mSdoW/zgXbsLE1KG6oBYqbqUOydkRdyfNkiCByRCGfm18
 qv9bAdROgGbC4WFs02NgKVlreAgPxtk+rP6tXGREtw3WZtB7hMPqR0Fa6M3kUL/8ZqWd
 pKFgR7EcdpJT3aCOZ89TDL1USb44TCzrZOwNP2ZyBOWL/z3zki2oKtuLAyg1difJzxsD
 Zgz2W4luiXgq3ORU6R+S+rEXd/liYYDsspn4QFFfpW+yl5Ifml6n23STXZ0uIkYukYBP
 JFjg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=/ujBTQtY9bSqyKsBEZN2dRktL6grzMLBU2K49dUSAdQ=;
 fh=OHG/Mx7eJaMajX8EBbyJ9tQtOkGs5/hNFyFafFby+dY=;
 b=nKkOoQBRpUflimXM0ory/0eU18deDGudx2qsheIzBSzQZWuVs8xXgJyCiXcndKhXn6
 dEVZjfinISFGbJVmDr+q6J1YoVo2HuInEZTCl8q31knd1wK8Y25sPAzn5vQq1hUH50ew
 VuprjRI+YY8q6Jh+NwQ0aAERPpltCArkxFxi/cBllbWD5l3uWRbYHwSwyOVAzwptTWNn
 7s+pRzKPM4g8btrEUNyRFACHiB0XD4Ml3h4SBKzE4Ju5z7z+1W+sUHNcfIyia07cH2nt
 0lixL7WA/KacGZs3E+IgVWphF3XKUNQm/7RdF3JFJxPP55XNQcBdhPVbpbz0RskNgDyJ
 To7w==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1785095071; x=1785699871; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=/ujBTQtY9bSqyKsBEZN2dRktL6grzMLBU2K49dUSAdQ=;
 b=gX69Xi6fb73Q3nhWEjEWbWE9pgTldpBzP4HajNxBWe+zz4OXlL8g/QcTuAMiXCLHtA
 R2IQ648CKc/S4Y6pNeH56lMinJw9gcJlxLA4ThUMfBYPujcLD0ycXCKCOrf4aBEVw8Lw
 KJnMcQOW6SYEBv7+o8+A2VVtO1SiJMzLh/aRsWjbXsAgsaDQzGnkrW9KjlZKQ/6SQTo/
 faH+fwOKa3x555bVBuSiX53v2rsUHtk6nKTkdDPDrrGAuGbi3olfpL86G7Uzd3Xfqe0o
 92JielCRwPlI/mSYn+s2QDF8+CIcPdCl1VLhCVlpfhvCR0ElzzLrH6pXVBa3iFA7NoZ2
 VHpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1785095071; x=1785699871;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=/ujBTQtY9bSqyKsBEZN2dRktL6grzMLBU2K49dUSAdQ=;
 b=O6WXXZ8eYhdGi05pjvsscGkhy6T53LNp/5509tqZ6z7gOlyq9ethN5P1R4KArmwC6x
 VLun4KSgmNekohlT3mAdc5z7DZULjhpo8HzxeyFhzogLaUSAK/eKWX1ElX+lShqTqY9B
 bp1/j2lTAdRNB5grYPmYA0MzZ9I73ixH3HZLbqXWQBpFBfU1AeRTH4wGzqTTm1b32WUJ
 tmhIvue38OdLWti2unXNnDBw0j7IcHGp/ypyifwYK8XRwI7QOgDS5RY901YqfHw97FQf
 i9X9j829chxBIMOuYy0fkWS1GKNxR03XmzMcjczOci6x3v9utZYzWpDasFnOwDDuEkgm
 wUXA==
X-Forwarded-Encrypted: i=1;
 AHgh+RoayJjcEEDu2MRe5lH3Hehxj/Q/Qsl5FFhOXQcPQMcjUv8oUH4UjKGMSpkVv8tA71b8VZb22Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Ywt22ALxl+h5q4/a6UCbXbOY4aIm5fBhGanYA7xkiPD3Ap86sJ4
 Potp3wWSD/uafRnA4RPncWCdnxVBWecrsYF+pYevGFZHjMnmVW66zHm+Gl+FvR3qww8kL3SMYls
 FobBaP83q9kRzdTpiUq2naOlyI4Vvj9M=
X-Gm-Gg: AR+sD10gFaQ69DgRU4G+l26TBLGvbiRCvlGr7f5p+ktvYIHMfh9o396QFS3EMN4ZIgx
 cii74hciNzrOg69ScwvsH2g/gtiSFdveHJHYGeDP5kwRdO3NSBqXLz/ILF3PXTizWaMmkPRetpK
 rDl0qn+4NPeVYUxmPEstX7GHvCCEp56PZitNkwpxcnueoKawjvLCb9prMs2CeBVpSgtw6WsYwr+
 yrzekpLiCzYxrl6dEKJ/8veqamhF2c0Xwi+gRAnDgqqxjP4gTH2mdoBalc=
X-Received: by 2002:a17:902:da88:b0:2c9:e9c4:82c1 with SMTP id
 d9443c01a7336-2cfde851b87mr54960975ad.26.1785095071410; Sun, 26 Jul 2026
 12:44:31 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 <86ecgqtkz4.fsf@HIDDEN>
In-Reply-To: <86ecgqtkz4.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sun, 26 Jul 2026 13:44:20 -0600
X-Gm-Features: AUfX_mxBHTVSJMuQoxYz3X2qzg6k_lLSlEm0gh669SxHQBSviUkc4nbSZmUisec
Message-ID: <CAG8iPGzGg2BbcwRK1ymkjkA6-ZSOzdfAbWQ6fDxYNYACJ+Bb1w@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, 25 Jul 2026 at 22:48, Eli Zaretskii <eliz@HIDDEN> wrote:
> > If the face spec is recalculated for any reason, your changes are
> > lost.
>
> As they should be, IMO

I'm afraid this can't serve the intended purpose of :custom-face,
which it actually did before this patch. A use-package declaration,
just like the auto-generated custom-set-faces form, executes exactly
once: at init time. Whereas changing themes can happen any time, for
example by calling load-theme interactively (to switch from a light to
dark theme, say). That's why all these customization facilities are
declarative forms that save the user's preference in some
variable/property and then apply it whenever themes are changed.

On the other hand, set-face-attributes is the lower-level imperative
mechanism that these declarative forms use to actually apply the face
attributes they've computed. If, as you suggest, :custom-face were to
desugar to set-face-attributes, then the only way for a user to
re-apply their preference after changing themes would be to open their
init file and explicitly re-evaluate the use-package block. Surely
this can't be the intended user experience?

To restate where this discussion started, the use-package :custom-face
form was and is intended to be a replacement for custom-set-faces,
allowing the same kind of customization but without the automagic
editing of your init file; it also lets you organize customizations by
package instead of having them all end up in a big flat list.
*Everything* in use-package has an alternative direct way of doing it;
that's not a reason to remove all that functionality from use-package.

> What you seem to want to do is possible via custom-set-faces.  But
> mixing :custom-face and custom-set-faces is known (and documented) to
> produce confusing results, so my conclusion is that we shouldn't make
> :custom-face work like custom-set-faces, or else we will be
> encouraging the confusing results against which we ourselves warn.

This entire discussion is because custom-set-faces is not an adequate
replacement either. If it were, we could just desugar :custom-face to
a call to custom-set-faces and call it a day. Instead, we want the
semantics of custom-set-faces with respect to applying customizations,
but we don't want to participate in the auto-persistence
functionality. Indeed, the use-package form has already been saved by
the user in their init file, so there's no reason for Emacs to worry
about saving it again by automagically editing the custom-file. That's
where custom-set-faces falls down, since it's really only meant to be
called from that auto-generated custom-file section, if you use it
directly from elsewhere in your init file, that customization will be
duplicated into the auto-generated section (and cause really confusing
issues).

The goal is not to allow mixing custom-set-faces with :custom-file;
the latter is a replacement for the former, with the same
functionality sans auto-persistence. But, of course, since we can't
prevent the user from using both, we should define something
reasonable to happen if they do.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 26 Jul 2026 04:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 26 00:48:28 2026
Received: from localhost ([127.0.0.1]:56761 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnqmp-0005Wc-Ib
	for submit <at> debbugs.gnu.org; Sun, 26 Jul 2026 00:48:28 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41346)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wnqmn-0005WM-8U
 for 77928 <at> debbugs.gnu.org; Sun, 26 Jul 2026 00:48:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wnqmg-0001We-FF; Sun, 26 Jul 2026 00:48:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=et8928gxaW5k/+jfc38Q41CIq8sd2QtRjm4Iyp6KEIM=; b=YHGkm368fZxn
 zoUSq/sjtaBZH5HZtYBZmzKMAFkEI4VPZTK0eaRGhJ5dtj1quqGvjmskQgjcvjTBfvuwJ2wme0SNr
 VOE092tx10WSlVCMKIeoOfoYn9E4Q5Zs54xi1YKjsdTR0yUaLfh4sNuy3wK4OIgpduAkvTJh+6VV3
 fm3nSKKs+s6WnxjKaS3HL9xvwb6KUZEAsBourwaY2LAJDE3NvNCEz+drdQTG1rgO8OYJ4deDzgiiN
 itFRES3m/uUwv1vjN+rLmV5WMUtUoPDV/qsORXj8v8uIC+qUZ4pnurCE+DLE1VoHkHIlQcGsMbRl1
 fTEBgz8PuKNSuLR5UFNNyQ==;
Date: Sun, 26 Jul 2026 07:48:15 +0300
Message-Id: <86ecgqtkz4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
 (message from Roshan Shariff on Sat, 25 Jul 2026 13:00:36 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
 <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sat, 25 Jul 2026 13:00:36 -0600
> Cc: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Sat, 25 Jul 2026 at 06:46, Eli Zaretskii <eliz@HIDDEN> wrote:
> > This still could cause problems wit themes, because those frequently
> > use custom-set-faces.
> >
> > All in all, I think it was (and still is) a mistake to model
> > :custom-face on custom-set-faces.  We should be modeling it on
> > set-face-attribute instead.  Then at least who overrides what would
> > not be an issue.
> 
> I don't think that set-face-attribute really works for this purpose.
> It doesn't let you, for example, make a face use italics on graphical
> frames and underline otherwise.

I contend that :custom-face is not supposed to allow that.

> And it just sets the face attributes
> once, either for a given frame or as the default for new frames.

No,m it can also change the attribute for all the existing frames and
the default for the new frames.

> If the face spec is recalculated for any reason, your changes are
> lost.

As they should be, IMO

> If you were customizing a face in your init.el, you would want to do
> these things, which is presumably why the Easy Customization feature
> implements them, as should :custom-face.

What you seem to want to do is possible via custom-set-faces.  But
mixing :custom-face and custom-set-faces is known (and documented) to
produce confusing results, so my conclusion is that we shouldn't make
:custom-face work like custom-set-faces, or else we will be
encouraging the confusing results against which we ourselves warn.

> On the other hand, something like custom-set-faces does have the right
> semantics: it puts your customizations safely in a symbol property,
> where they're applied whenever the face is recalculated (for example,
> when you change themes). And you can specify different properties for
> different frame types. We could add all this functionality somewhere,
> but we would just be reimplementing what custom-set-faces and
> face-spec-recalc already do.

Exactly.  So users should use custom-set-faces for that.

> > Since face-override-spec is not documented, I don't see how we can use
> > it as the basis of anything.  Doing so is likely to cause more
> > problems, regressions, and bug reports in the future.  AFAIR, the
> > reason face-override-spec was added was to support themes, so I'd be
> > very hesitant to use it for something that should _override_ themes.
> 
> If using 'face-override-spec is problematic, then perhaps we can add
> another property ('face-user-override-spec?) that behaves in the same
> way but with even higher priority? I only proposed 'face-override-spec
> because I hadn't done the git-blame spelunking to see why it was
> introduced, and it seemed to be otherwise unused.

I think this is not the best idea.  Face specifications, changes, and
customizations are quite fragile, with a lot of hidden semi-documented
features (my favorite is the angry salad of the face properties like
'customized-saved' etc.).  We had our share of trouble with this, and
needed to rearrange/rewrite some of the stuff a couple of times.
Adding one more feature to this mess is almost certainly going to
cause trouble.

So my preference is to go with simpler implementations, even if that
makes the feature less powerful, because IMO we already have enough
power in this area at users' fingertips.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Jul 2026 19:01:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 25 15:01:06 2026
Received: from localhost ([127.0.0.1]:53013 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnhcL-0000jC-Nq
	for submit <at> debbugs.gnu.org; Sat, 25 Jul 2026 15:01:05 -0400
Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:53411)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wnhcE-0000iN-5u
 for 77928 <at> debbugs.gnu.org; Sat, 25 Jul 2026 15:00:57 -0400
Received: by mail-pl1-x629.google.com with SMTP id
 d9443c01a7336-2ceab75934dso18720735ad.2
 for <77928 <at> debbugs.gnu.org>; Sat, 25 Jul 2026 12:00:54 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1785006048; cv=none;
 d=google.com; s=arc-20260327;
 b=N/dpiNm7iofQRarVmylUUNKEqP4oBbs6Rfrp33DaD0PuYIjlKggvvkW0khtCmsa0IO
 xUg7Nfm6ArsKp/POZ30woyGRx0zPTEAOBIdt5xnLAe4BzZCDWYaUahNEJb6EOSeafaqt
 pauvLuISxKX0y+zkWJfqpMy1EK3e9yib3N3IMBLRbPXTiLYVwD/zm8ZLsDE3tdv7Ih0u
 RFy2Euzf1ZnTyDBCn0oMhBI88/PPIFLQIDWf4N84IGOukjrn/2jqb4ki41KT3JH4OXOb
 uAj5aO5aJ3va2jGkH1BHtEvbsqAqsZXN1JesJCQwG/NbSCMFM2Ri3aGyx5oA6RAKigxF
 dOyQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=dzfmSESmjD/+dOzFw17voAxfVqwzxP8CFQQDltVALHQ=;
 fh=kfk+RodCLGxWTA+nQPH05p7WchHKrQ7K3jHTbUfMwOM=;
 b=XK4iGJXO5pojyl9tm4QJMgCQby1Ah5J5FxL9ptnXAWBdUxzz6JkymtoJ8eyn1s48hE
 EtP8z+huEJN3A7JLhyddfFRpKFjJuxe0ADzN3BWmrc+piL0vw8KoDG+fWK8UKtlxv3X4
 oXsjrEdWJheufLcdRqjXGFjD3MQ6inAwryPmliynNZOHWuPSKFbCO1RMTn5Q6ZTlhdoZ
 iiXTnZrjjIsVQh8E6LqLCcS4SlELPHNeu6GxPqp58KsYde261jkpn8BYQo5TuFH7WD2C
 J656DmC0XNUICu4eNRQcZW5wLq3o49+TA7osyPfCilh4PHs3Q+MnphvA6aAPHH8eujsG
 vfOQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1785006048; x=1785610848; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=dzfmSESmjD/+dOzFw17voAxfVqwzxP8CFQQDltVALHQ=;
 b=J/a24EdvYvf227yamgw2CvNxlOBcpsdfu9xUBaJabGWf17EtmH68hBdrQgnxVGvReH
 jCSWtfNP471tuFgJQIQLhpwOGPHva5/d1fcKaSsWwZgZ8KE9r0bIBdwN8CWMTKVdFMVC
 SeZccRJdMHuj8AiQ4GWUoJMa3SEelOuracea6z99Vn74nXnDv5mIiZyL7KRyJlV7MpIN
 ZL4DMgfeXPbfC/si6IEIxMmyaq9d+YFb/jqfmlc7W2aRbUVoUmzZZq3HTH1+davRug3J
 MHEUD7puqkV+YGGG+8k9IDE02R79/utnmY0D3AxdUZMaTQdhSff6A22Ep3rxXqHFNrm4
 hM1w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1785006048; x=1785610848;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=dzfmSESmjD/+dOzFw17voAxfVqwzxP8CFQQDltVALHQ=;
 b=rbyE8s+tHW7yKyt++gl5+F4Qlh8lBOXLne9s2zZdxYE6Vg60FtUJ30htzPKns1rjBo
 xqtiW+FL7QOgbi5e0/okIRb1CRWRn+OXY5nlMyUxME3Ed3mF+Hugf5LjBYuRxHWmPnBW
 n/IOrx2yMhaWiLJ5crZnA2gFusGq/uJ7xkAC0T8mWU7lY3tku0jTDzUxsD/3k6i8URu3
 uBUKApRmayqgeXkokDVXVYPP8zpbi8RrhzevqzPD5FqL51jJPL27gp13TbhREW9LCye4
 6nuI2djJRMAJd6Np/UGjyzlcup7MWQ62qX0tTLEK0o8btGoVLhv5aygLMcWMCVUg5MHs
 UeLg==
X-Forwarded-Encrypted: i=1;
 AHgh+Rpe0dUbUQtfGccF9wifp9gWY/ppPYu5CJvoMUb8nu4MPEGcQDf93gv8Dlq5u0LkUJmLbOc/Zw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzOIVEtggb4c4CirUlMNJK7Tggs1HmQZBTjWtnnTkHAp92LnNfA
 dEbjP9qp9ydrJc3HqqaMNjXQIZ3Qyl0eyXzrTy3+BbDIH4llBPk+ypjwfkrt4nOUtv40KAB4LPZ
 mY//LQXIcUOX3wUyFWTsz6sOAAcD9FzFI6jGgkcQ=
X-Gm-Gg: AR+sD11267CeCbciWOjEFxW9pHdJxMMleQb1pPn7ehcdvXv2oK4KQYFqEKQ73YIdt7D
 pBxuL9AZOM498B+EWHCnrPhqaV9+FXsbSa2O7cJRlUpr8TCp4HeMYDdgjP+4+YiYu8fYN7U4jGV
 ETYPOIXSNQnmxWRf94k0sAmL1pkJdGEO0faECRYmlmk0gFRNgc+mVSeUhI+VlkuSVTmgXjcqRdj
 alKQFvJVn+5oTPGq8B9iVZ7epjm6KnWtythjxe8Z+0SDiz/bTCLAYW1iSM=
X-Received: by 2002:a17:902:ccc4:b0:2cf:47c4:3d1a with SMTP id
 d9443c01a7336-2cfde795b85mr27896145ad.3.1785006047753; Sat, 25 Jul 2026
 12:00:47 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 <86y0eztexp.fsf@HIDDEN>
In-Reply-To: <86y0eztexp.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sat, 25 Jul 2026 13:00:36 -0600
X-Gm-Features: AUfX_mwcZGsZnaiq3gnPEoSuMysy2VMJVq4HBwA6jmsY1DVSxfdZe6BelpjdhE0
Message-ID: <CAG8iPGwY4ErFS7+kVdG6CRPF-YvaG67r4UY90Cv0e85SmSn9dQ@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, 25 Jul 2026 at 06:46, Eli Zaretskii <eliz@HIDDEN> wrote:
> This still could cause problems wit themes, because those frequently
> use custom-set-faces.
>
> All in all, I think it was (and still is) a mistake to model
> :custom-face on custom-set-faces.  We should be modeling it on
> set-face-attribute instead.  Then at least who overrides what would
> not be an issue.

I don't think that set-face-attribute really works for this purpose.
It doesn't let you, for example, make a face use italics on graphical
frames and underline otherwise. And it just sets the face attributes
once, either for a given frame or as the default for new frames. If
the face spec is recalculated for any reason, your changes are lost.
If you were customizing a face in your init.el, you would want to do
these things, which is presumably why the Easy Customization feature
implements them, as should :custom-face.

On the other hand, something like custom-set-faces does have the right
semantics: it puts your customizations safely in a symbol property,
where they're applied whenever the face is recalculated (for example,
when you change themes). And you can specify different properties for
different frame types. We could add all this functionality somewhere,
but we would just be reimplementing what custom-set-faces and
face-spec-recalc already do.

> Since face-override-spec is not documented, I don't see how we can use
> it as the basis of anything.  Doing so is likely to cause more
> problems, regressions, and bug reports in the future.  AFAIR, the
> reason face-override-spec was added was to support themes, so I'd be
> very hesitant to use it for something that should _override_ themes.

If using 'face-override-spec is problematic, then perhaps we can add
another property ('face-user-override-spec?) that behaves in the same
way but with even higher priority? I only proposed 'face-override-spec
because I hadn't done the git-blame spelunking to see why it was
introduced, and it seemed to be otherwise unused.

That said, from what I can tell, the implementation of
'face-override-spec isn't great for usage by themes. I'm guessing the
intention was to allow a theme to override some attributes from the
defface spec, but not all as a theme would usually do via
custom-theme-set-faces. But it doesn't correctly handle multiple
themes, or themes being disabled, and it overrides user customization,
which a theme wouldn't want to do. All of these are correctly handled
for the 'theme-face property used by custom-theme-set-faces (which
associates each face spec with the theme it comes from).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Jul 2026 12:46:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 25 08:46:39 2026
Received: from localhost ([127.0.0.1]:49973 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnbm2-0004GX-EU
	for submit <at> debbugs.gnu.org; Sat, 25 Jul 2026 08:46:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52222)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wnblz-0004GG-E3
 for 77928 <at> debbugs.gnu.org; Sat, 25 Jul 2026 08:46:36 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wnblt-0004VM-K8; Sat, 25 Jul 2026 08:46:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=+EGnG3JNiVPrF0NEVGdW0SPtPu/wQEpFf2omOTwYe5c=; b=S0zwMU1Jf9LL
 cg8IxAm7RMepwbp+haLqbuyoC177RBnc8soyEk/4sWneHjTFOSSfhkun+oblKd+UHSzs+JnJRJxuh
 nsiVp7xAxAdAUAQuYNzNzYZz0AhCQ2S34/QmSUfCwWuXcGg333FXSbfU5Dy9tGq/YEqDApV01UXgm
 uvYKuWWjqo65gvzOnbwGL1Wa/9eZ+ZKtqrPzUeApHwJ6v23MY94naM3IxBp57XlRlZ72c2ShShZWJ
 5/GgYV+sU5YP1nyxXIUQvq2nBCtglTHRRIyqezrEN66Xz0/8lj8qtIp3uv2+zgBhSNyOIohztjRp/
 pqTkJ8R7V21RuUOMWZn+Zw==;
Date: Sat, 25 Jul 2026 15:46:26 +0300
Message-Id: <86y0eztexp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
 (message from Roshan Shariff on Sat, 25 Jul 2026 06:33:51 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
 <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sat, 25 Jul 2026 06:33:51 -0600
> Cc: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Sat, 25 Jul 2026 at 01:37, Eli Zaretskii <eliz@HIDDEN> wrote:
> > That still is not identical to your suggestion that :custom-face
> > should "override whatever would otherwise be used for that face".
> > Because having custom-set-faces in the init file does not preclude
> > further customizations of the faces in the init file parts that
> > follow.
> 
> I think my wording was imprecise. I meant that it would override
> particular attributes coming from the defface/theme/customization
> system, but it wouldn't preclude something like set-face-attribute to
> modify attributes futher. So something like (use-package ...
> :custom-face (mode-line ((t :foreground "red")))) would take priority
> over (defface mode-line ((t ... :foreground "red" ...))) if there's no
> theme, and over the theme and (custom-set-faces 'mode-line '((t
> :foreground "red"))) otherwise, and only as far as the :foreground
> attribute is concerned. In turn, it could be overridden by more
> low-level functions like set-face-attribute (but those changes would
> be lost if the face for a frame is ever recalculated, unless redone in
> an appropriate hook).

This still could cause problems wit themes, because those frequently
use custom-set-faces.

All in all, I think it was (and still is) a mistake to model
:custom-face on custom-set-faces.  We should be modeling it on
set-face-attribute instead.  Then at least who overrides what would
not be an issue.

> Concretely, I'm proposing that the use-package :custom-face form
> should put its argument into the 'face-override-spec property. You can
> look at the implementation of face-spec-recalc to see what exactly
> that means, but briefly it is applied "on top of" either the defface
> spec or the user theme + customization. That broadly seems to me like
> the right semantics.

Since face-override-spec is not documented, I don't see how we can use
it as the basis of anything.  Doing so is likely to cause more
problems, regressions, and bug reports in the future.  AFAIR, the
reason face-override-spec was added was to support themes, so I'd be
very hesitant to use it for something that should _override_ themes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Jul 2026 12:34:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 25 08:34:13 2026
Received: from localhost ([127.0.0.1]:49877 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnba0-0003JU-I7
	for submit <at> debbugs.gnu.org; Sat, 25 Jul 2026 08:34:12 -0400
Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:58452)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wnbZy-0003JC-3s
 for 77928 <at> debbugs.gnu.org; Sat, 25 Jul 2026 08:34:11 -0400
Received: by mail-pg1-x532.google.com with SMTP id
 41be03b00d2f7-c9e7391839cso1218267a12.0
 for <77928 <at> debbugs.gnu.org>; Sat, 25 Jul 2026 05:34:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784982843; cv=none;
 d=google.com; s=arc-20260327;
 b=Nt9UNLDnglvXprCem0TA4QlkKQmPRbs6LVdI5TycFduT61mszWTLULxxbWWQRLk7jD
 x5pDo2BLt5cr3gjRc2e8ICSQM9n0y6NS8Hc4Esbwacr/rVw7oaLctdTdNzfNXuhsa80k
 NIE9IdKtnTzb5vKwv4jxKPRVqp1+hoqeWXWIRHPpgeFw9O/3esJqTD7aaA0i1syXN7iA
 2tFE37nNcy7RO6uIQQPFzVIkW9fqk6mUb/z1byXGIImmmuqrzwsNZbBdVRsnXRQ7aNCB
 Kk7gBzOvuFYy6MxEUwRxPdI+GXtTDzGohdni818dNi6isTk+4IevdLtAT5i4YhnorMax
 D7pQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=zN8anL4jgOOaj0SNHwsN9ZtEFvWfZ4iuC93pnSdOqyw=;
 fh=RFSxfztJYrVFDHS3k8LA3pJclINOVOWVAqx7Nsf+r/A=;
 b=ZndITH/NabA6zbgr1kz4aIAwjK0+YaaL9weq5WqFnATKip7JZ9Ts18eV8TqEo39WQR
 UbTPSNj6Q+xRqChO/ZVn1V/OjmKc6MCqWG1YNYg5bzXii7t/utp/EawbZqcA+hQWuDV4
 fkQzXl1TqbNoF5HUfRk7tSQKvvRKCwwckX0Xhw0OjeBC4gDeVkai6LO3r7CqcEwh5ZSm
 3rLMyXSjKU2sJl87mZ9AZwGxgA8ZroGzTerAuS/HiPpgtAQOSUw7Fuk5w52sYgccW/Q6
 4fzSwe+s6HM1ApeySktATHL5fJzI5AnoWWTxd2q8Ev9cjN9fZE63NhcmwkH77YMeveyM
 arqQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1784982843; x=1785587643; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=zN8anL4jgOOaj0SNHwsN9ZtEFvWfZ4iuC93pnSdOqyw=;
 b=C7wQoVorpJc9hQ2BAfv7JgbVjcYHnWFQO1a0knisytGHlVxoMm3lrldDZNULQAEn3x
 4xWeBmcU0/hFcZpsmCWq+/6Lf2dpVEBPzYNGwrRF6kd2HHRM1STjtYT9kQlMwiY68cgN
 Nww68X9SoJg1agPLz+AJv2seJuP4/QTdjKAIwUx4xc1Lqw5jivog2O/r0u0OBiypj8lG
 xeOVoZpBbzfBrP3S+I9q7PqFbFLPb8Vxr2O2TZ2NAy83UIyf2Lo1LmXMBYRomCasN8T1
 PGPlSKJcKEITXelfCOEd8aEk/668M8Yeo++FrKHTlRPt9XzSCkBaoz5u++YTZiUMfw2Z
 CV2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1784982843; x=1785587643;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=zN8anL4jgOOaj0SNHwsN9ZtEFvWfZ4iuC93pnSdOqyw=;
 b=XJQpePLUeT1IggXNoo3CF30oPEQtk/THxD21U/V+7UiDBqqqZSJ4XL0Mpau4oz5eWa
 OfDeV/qNMVyardPALRU9JSw5Iia0/SNbvC45AN7zeiDpQUSbNveSTGdKJd1Qu3RLnPos
 GIwOSTYF3X7P8YKb/KiNQ1LZ+r6aQ0rX6LoshfW0VgVGtYggu/jGV/ZHvwCfaEXgRBOP
 ovaXwT7vM0Xuq1nN29oaY6l0/VT7tvnpi2BCbGFb4WAn8oSzz+JRzY4KB8sLEGApV8D4
 rL2GBSu2JaPF7gR/giq9Y1lo1vVB/n4TaGJWgIfXPzDyVaLUPuRWRL5FGtKez9oPlK+h
 x01g==
X-Forwarded-Encrypted: i=1;
 AHgh+RriymLNpS+UUY+jruerS1VSNYDYHUYLza/bRQSVBiurpQ+CdMcJ2zAVsDwlwykgpoMKzZGA/w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzYr/14j2tvHd5AAE/RKQT+XHC/LjbRvSbArrDUTzWuOjdtDK8O
 ccir7KnHHZF+R4stJSHhLdI1cGTSB+WcgWRqzynuojod27BYTcvUrOPrx/nX4CttaS4Ez0uzmDo
 5Zt58njIi2/i1DtBLdptNyvlsw3wil8I=
X-Gm-Gg: AR+sD100UFRwCwFeEVKjdOl0kOWQ2p3BBQ9pST6WGYsf+yU9JkQ1I6b9Gpw7yyaCrKR
 pYPhjYmacFupJb4dl1AuFlBHm/igJTa1OQMrizwsDn6joSST4TfzKwvW9JMQsXLR2nUJeFqaFAV
 VowH6DibX3t1fhb0NpWi4AlCnpxFHvfkANsey2XvECx44tPgtOfArtbBsv11vMcnnEPH7IM1hkt
 /EasG2btSpVoTpwT0ucC3tIe7xsEWRIN7SUS6uVYP8bROMyhW5F4fWPNRM=
X-Received: by 2002:a05:6a20:6a0a:b0:3c3:88a5:83e4 with SMTP id
 adf61e73a8af0-3c67d9b41f8mr2065215637.10.1784982843539; Sat, 25 Jul 2026
 05:34:03 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 <86tspnv7sm.fsf@HIDDEN>
In-Reply-To: <86tspnv7sm.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sat, 25 Jul 2026 06:33:51 -0600
X-Gm-Features: AUfX_mwF9-vUT8ntiT80RW7mcGWhyXbSaXHr3XAtvxidaFfGlmoTWb3n6LKh6XA
Message-ID: <CAG8iPGzJNR2hGczwZZ07110r_=w=fCVSuu4iicqOUYx_GfDtRw@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, 25 Jul 2026 at 01:37, Eli Zaretskii <eliz@HIDDEN> wrote:
> That still is not identical to your suggestion that :custom-face
> should "override whatever would otherwise be used for that face".
> Because having custom-set-faces in the init file does not preclude
> further customizations of the faces in the init file parts that
> follow.

I think my wording was imprecise. I meant that it would override
particular attributes coming from the defface/theme/customization
system, but it wouldn't preclude something like set-face-attribute to
modify attributes futher. So something like (use-package ...
:custom-face (mode-line ((t :foreground "red")))) would take priority
over (defface mode-line ((t ... :foreground "red" ...))) if there's no
theme, and over the theme and (custom-set-faces 'mode-line '((t
:foreground "red"))) otherwise, and only as far as the :foreground
attribute is concerned. In turn, it could be overridden by more
low-level functions like set-face-attribute (but those changes would
be lost if the face for a frame is ever recalculated, unless redone in
an appropriate hook).

Concretely, I'm proposing that the use-package :custom-face form
should put its argument into the 'face-override-spec property. You can
look at the implementation of face-spec-recalc to see what exactly
that means, but briefly it is applied "on top of" either the defface
spec or the user theme + customization. That broadly seems to me like
the right semantics.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Jul 2026 07:37:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 25 03:37:58 2026
Received: from localhost ([127.0.0.1]:47125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnWxJ-0000nY-Iu
	for submit <at> debbugs.gnu.org; Sat, 25 Jul 2026 03:37:58 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37396)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wnWxH-0000nI-Hi
 for 77928 <at> debbugs.gnu.org; Sat, 25 Jul 2026 03:37:56 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wnWxB-00056r-Kc; Sat, 25 Jul 2026 03:37:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=BQHWV0b52h0eNvhvmbQ+/G+2mZ8pXLTxgIFVOgZdRM4=; b=aQ7dBuxCzu94
 oH05f08ohhpv0HMcD1RukdVFwiiIAp4wkz+Pkss+a04gx/vnSY3sTAL19RozwdRwnEl4lS5m8h35s
 bF391FQS8LqnJxKPrt6OrDV0jCMtoXik3oOjYxS9R5z7u1uqviLM/+oRvhYM6cR6fuEALwcLaWDHQ
 LH8Gf6MdjYxJAReXi0pDlqE+8AjFp+8z4vfwHgDr1oDjUcYZ6scOP0m2Xp5wjzfdmBybiVl1LPwbE
 oxgvx4JwbFuSQ5NBumqMYq/pPR6LeAeVjvZMDK947dDMmHyNRGStBTJjuFJV/su7qK2NYvyoKSunu
 q68qn1tc70Ebr/V0pT24QA==;
Date: Sat, 25 Jul 2026 10:37:45 +0300
Message-Id: <86tspnv7sm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
 (message from Roshan Shariff on Fri, 24 Jul 2026 21:56:05 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Fri, 24 Jul 2026 21:56:05 -0600
> Cc: John Wiegley <johnw@HIDDEN>, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> On Sun, 28 Jun 2026 at 02:11, Eli Zaretskii <eliz@HIDDEN> wrote:
> > Moreover, custom-set-faces completely replaces the face's spec by its
> > own, so working like custom-set-faces would mean users will need to
> > provide a full specification of all the face's attributes in
> > :custom-face.
> 
> I've since checked and the Easy Customization does, in fact, allow
> users to selectively customize some face attributes but leave others
> untouched. You do this in the Customize buffer by checking only the
> face attributes you want to change, and leaving the rest unchecked.
> When saved, this results in a custom-set-faces form being written out
> that only mentions the subset of attributes you wanted to change. And,
> of course, the effect is exactly what you'd expect.
> 
> So I think it's reasonable for the use-package :custom-face form to
> expose the same functionality.

That still is not identical to your suggestion that :custom-face
should "override whatever would otherwise be used for that face".
Because having custom-set-faces in the init file does not preclude
further customizations of the faces in the init file parts that
follow.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Jul 2026 03:56:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 24 23:56:26 2026
Received: from localhost ([127.0.0.1]:45508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnTUw-00064F-5N
	for submit <at> debbugs.gnu.org; Fri, 24 Jul 2026 23:56:26 -0400
Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:42059)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wnTUs-00063w-LN
 for 77928 <at> debbugs.gnu.org; Fri, 24 Jul 2026 23:56:24 -0400
Received: by mail-pf1-x433.google.com with SMTP id
 d2e1a72fcca58-84847482584so800782b3a.0
 for <77928 <at> debbugs.gnu.org>; Fri, 24 Jul 2026 20:56:22 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784951776; cv=none;
 d=google.com; s=arc-20260327;
 b=BKyGglSOibOR7CQAMPRs2rH1zDcnrGx17pIFkjrXx+ANCNLyEwPoySLbEWlMXTdO57
 CpoJAdyplTdZZB4Y7Bo2Ja7gfG1lLmmipovxiLezjCV24Z0byzfHtzNjlcQbCopSiadF
 wjKdUlSYEIn14bEtOj4hObNwHHruoLEpqrGfpyf1OOZisbRZo4mVGCgX3Y6PGOavGyR9
 HX41+M7QvWcI7BLpN+zvnD3P6pG6bO9XvMxSQczolW1TTh29kKWRcb40AeDRcdGEuBca
 0ZC8upuBvO3tCwXAyGGzQPxqWSTOHbK0CVAcyInLypriVYErFHwlD/qlktPvBYzX4KAA
 lviw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=DRXM8VkygeLY2VYxXeLfQHlepI5x8apLsNSjLW0rBgs=;
 fh=3iqU8TdWhInZujKla2sgeZEKLsuBWpnhzyuOhsM5VnE=;
 b=q7xb9/a1Lj/yT8K4BEBSUDOk7HVJg715yid4SccHD8cJf1UPjMXich0Qll8tD3VWVr
 OfhhDYf1/aT5QCmw6PQvwXxwmbQb6TGFP3ERwoMoLG+1RqYtcrq+Fe+ijXu3nVERF2iY
 cKruMYGO9P7RPH0rdZKv4Fw8QV/5S2FvSfnasWlKBlHjob/ASjrEH+PUapUJBU/RP8TU
 8nRc3w2FOfeIbifYHWADGhBI8Q2IsVdqYfaD5T2/sAgwl62txzl4PWqWu8H51v9ImEO3
 Iln05YpnC8rNOeEWirk9yy+G1M4FfzEyk4Yx+8VAIP3bauxsnyFYSYgiuqUdVB2NRjDx
 ocBg==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1784951776; x=1785556576; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=DRXM8VkygeLY2VYxXeLfQHlepI5x8apLsNSjLW0rBgs=;
 b=YuQ0X5VKWZ0b7qqDZ19gqXq+roSrebnDHRPV76P7WIsWLlSCsGDv/lew2BG+Ct2RGg
 UjywkiLNqFF0DJRSJafqiDLS0+caPGMfATrF8wGpO2w3H5paUoJpypstUwQE1Ue/0YsI
 ABmuecckq5v1xefuKW5U24RvqN3njlqVjrAY7pNWlqJX6lIsmsaSRTPNo5W6+wlCYelZ
 aMhszZ4UXwYBcbG5AX+c217irRPghU6q/HVsmR4ycUxlk0Uy6dBgD/9v35CcsNzX7Swg
 i76aGeKVw2RYolg05aa4c6Ww31YoZccb2UlTK6Vi+ab/0d5bh9f10beAtdWByNHqDTbS
 VB5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1784951776; x=1785556576;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=DRXM8VkygeLY2VYxXeLfQHlepI5x8apLsNSjLW0rBgs=;
 b=tMW/XK/QdCaVGUH7Zfgcgmns6nRS8VOTbFaeTOavL/iCTliecXS+hMoO5Zhgt0L76t
 3rnXL/oNy2h4RPRX+Epv8IQc9FIMhbKPtIsGjErx++6f1pDalr7+oT4lqlGXcyR986Cr
 mafGu+CTgiWwh3xpkDQDwfHJ8k5FzkA8trx7A+MLqRb3bVQKEfniugsQDZMYM5OQ2sNF
 3Ge/3VAJv2Rpvgdd0RZhVKD397GakquCxHccfRyYFZI/ltZr1tMU4sgFFhnXXmPmQ5GD
 OXtY4t2eihSdwlpEjRKkNyPQ7vzgl8W9oaCLICbT2vvOboWj33ub0sFDXNOqQj3TbSfO
 rROQ==
X-Forwarded-Encrypted: i=1;
 AHgh+Rq+sjEBaoP6nta1RxAP+3anB8sfr453EOlB/TOMQdXSw5+No/FtxhuDBUvbmbIDQdw4fx2n1Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxA9uMb/dx4G7MYitla3aG9Yw18bFeuyHb9iYAVdP9k5NRElPG1
 hi363bvMg4qfm6dE04EfTZ89T1bGB+W+B/4veD/kiJ3pzqRIJnDo/IKLh59WkpHGKx5iYanBH3P
 SoM6GAlzhMEdRNmFSLS4yil0/s30OJpU=
X-Gm-Gg: AR+sD127Opnna3sxsDSQvxoougsWbLzBE7VYe48P3v1S7Meiezj74L657+/LSYX12E8
 DwgtSpqtgqW1fQCLYb4IJRTVXT3jlA945PLk6FOFjr++tGN7KwbbAtiCMELpbO4J34evoj4Gw1r
 xxFaso+lmk2AjDGcHBOaoYvh6BdQjOXV4ubAsWE9i0mRBIi68BenAvg+1rfL1N42w4yasRxo1WY
 g35MSvi7fweJDmpzcqfweaayO4TQ9HD42n2vzCyzVecucVyYQNS0qDb5zk=
X-Received: by 2002:a05:6a00:1d95:b0:845:df5c:2567 with SMTP id
 d2e1a72fcca58-84e59541966mr643636b3a.25.1784951776402; Fri, 24 Jul 2026
 20:56:16 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
In-Reply-To: <86y0fzf5jg.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Fri, 24 Jul 2026 21:56:05 -0600
X-Gm-Features: AUfX_mxniBjKpenoz2zDV5p_WzPr7Cj7Ci-PX6brtdOpiVz74LX98ihv9LKBntA
Message-ID: <CAG8iPGyMzbU89fy_PosmwyR8SEJtho8ed8Th5hDp6sDjFifJ2w@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, John Wiegley <johnw@HIDDEN>, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sun, 28 Jun 2026 at 02:11, Eli Zaretskii <eliz@HIDDEN> wrote:
> Moreover, custom-set-faces completely replaces the face's spec by its
> own, so working like custom-set-faces would mean users will need to
> provide a full specification of all the face's attributes in
> :custom-face.

I've since checked and the Easy Customization does, in fact, allow
users to selectively customize some face attributes but leave others
untouched. You do this in the Customize buffer by checking only the
face attributes you want to change, and leaving the rest unchecked.
When saved, this results in a custom-set-faces form being written out
that only mentions the subset of attributes you wanted to change. And,
of course, the effect is exactly what you'd expect.

So I think it's reasonable for the use-package :custom-face form to
expose the same functionality.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Jul 2026 03:51:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 24 23:51:07 2026
Received: from localhost ([127.0.0.1]:45464 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wnTPj-0005m7-9m
	for submit <at> debbugs.gnu.org; Fri, 24 Jul 2026 23:51:06 -0400
Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:45551)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wnTPc-0005lW-OH
 for 77928 <at> debbugs.gnu.org; Fri, 24 Jul 2026 23:50:59 -0400
Received: by mail-pf1-x435.google.com with SMTP id
 d2e1a72fcca58-8487b7b3fc8so1107589b3a.3
 for <77928 <at> debbugs.gnu.org>; Fri, 24 Jul 2026 20:50:56 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784951450; cv=none;
 d=google.com; s=arc-20260327;
 b=D75aJwO6VyO2ys4P72nXbxeQ4GGPi0H49QusNtpbNw2tuscmdxvCqPNSLuf5lo4OQi
 uRCY6FON6kQUCubG8+RyW408AKrxlsyXwYuuCFXmZ70+lVb5zeyVlXkm98ato5nnXKft
 5PjkW6s7JPUoTotnSQGwWzXYp0P8vL5htI+wbUoNv222lECk+SjBUs9zKAuM56ZAhnJP
 bvmwcaayDNednNOHb/E6x4Mklz1HPcikUPbdwid4DqQDH1Ql7MVGW4rVPU80tWIQbw1k
 emg8UZADopUXcNdkXP6RlBEZFXfcQYLa8TSDcrtB7T8EbqEjs2J3P8wDh60zf9Bqo4RH
 tjJQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=AO4WGPhhpKmwGH6wxHiNfZQg0IckfAmmmGpfLUnZ2/0=;
 fh=Rev1R+MPnnHAdqV4KwpFpLBkd0EXikzjnd6dqCVHFWI=;
 b=Q8Yj8V0kw0bW6LLBkoOK9/vWNvkKVE8ErKj0fUhFn0s+0f1dfkyFIWkRDsimEHBh7H
 RHjHe+deN9PvQyUS2PhATnw4gN2ZMPE5UOmtU44v2YHP50YxyboSJ6Qx7UxMWc5E49Eh
 S3dJu4VbWyB62lrNWZKucaqBTczH0LlxgXuBi8HNMLFZumRGY1umzI+SttWlnOy812kQ
 Kf+FhJ7Wcj5Os+w2F0q3esMXJN9bvLS8a3z4xRmCT8vodwkUiv9kBLccMm/06O1Z12BY
 8CGUmPuhnlXOqlarsOcS4S286vqFvOGTq4MUW+fnKzjfrgWH9wZY5ahp5VxbgbHjfKdq
 rAwg==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1784951450; x=1785556250; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=AO4WGPhhpKmwGH6wxHiNfZQg0IckfAmmmGpfLUnZ2/0=;
 b=pvqObSHL41y+rVkwJUAvdqn4xKrT553XT4BKDyvdU+dGcr2oy8v1n3tFkbwhAN4kTZ
 2H/HEe7iK95zrLEg/qOwpJ0y90Gqig7xOgVpi44FE7T6u2F9TEvO8oVrLhWKa0o8sdU4
 RKp3jrOyJ+9CTGo34pOQgkCddTKF69RawiPC4IhJbSuCO5+1AIx9e0AlU5oxsTo2o28k
 Ca44/D5HS2pyY7aEvYXGazaA4TVDAhCXghg5IDaRxLBbjfhcK1PP2AY0DpYXWKsI7A9t
 wZ62/ghQzRETBp5b9vnFqr5PiVP3pOeveFEr4dmD5qs+ZNfMJd3v1bOWGuLT/T6goZDp
 DE1w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1784951450; x=1785556250;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=AO4WGPhhpKmwGH6wxHiNfZQg0IckfAmmmGpfLUnZ2/0=;
 b=Da4VR7w/mJnengIef6b1few0e+4SZDpXcyEIt74pYMiPhc6OXtlDzatFmVRAIlyYPr
 KEljdTtMNJxmaqXbLiXkyTYwUJ0bR8Q3iv8+ZsRzUtZp8RJmRqDMRSp1uYx/sJxyJKF/
 GnZPAIj8EiB20qyUj2qCptOQCTUdPSdCgsMf5lbC+KC6ULQVIvX1rYR/xWTsfDGgq+My
 6HCo3yM5adU7coYp/rw6yvyQf+QQacY2fvkSZBE9BkWQ02maCmDsOOfqk1kHchXs3aFI
 n/LPXg9dT2m7BlJN9F7ySH5Z06+LaQUVoRg1YGVRlyhhvTyiIJDfnwNDf231N9h4nJq4
 LwHw==
X-Forwarded-Encrypted: i=1;
 AHgh+Rop+UtrH9RVwu7nblLvGhlp0ZX9hpxNkjIATgUQB76je36hCxloe7bvHpJ8JW1EWbGbRU6xAQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yy6RXJb/qDAchF/nJVbFSMAELR0kjqxPu1jFflAE/9h9gBZYKQC
 BMcXy+/Xb8RpjEVVXfqS6uJS7i61Mh852XCNw2Dkv8hAhuhvbo55FCsvt66HxyMZYYpx33Ekv4k
 7C16uRxosBqfBgENswZMx0MuYJN/eYk8=
X-Gm-Gg: AR+sD13edFWuI+NSqir6SyJeU7Pkrstxa8papogjMQ93aFr6sxA4Ro7Dvw9Rj3vvg2h
 vXxhys1DG21KI64+t3Yw7KsWfMz3260jTW69rJ+qZh+2/c4zDZb0UzlPB2okbcOUEHk9jx/ZuMD
 pt7rtcOk92EF3c/VhxcHNu47H8yxAJVoyZzHW0VgbXiUQH87stnNDTWvrh1LYwrZbBJ0/Iztmtp
 0+QExNdqHpmFaQ0iggEwF6nY3veKVUMPyM+yvBnIIiQojTFp+7NS1SD2yg=
X-Received: by 2002:a05:6a20:1615:b0:3c3:8222:b8c9 with SMTP id
 adf61e73a8af0-3c67e16406bmr934255637.67.1784951450436; Fri, 24 Jul 2026
 20:50:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGzSGAkd7ABhcfgk+6PryBOmJ7THYKqiKg-hd5pHNjCRyw@HIDDEN>
 <861pdaj6bt.fsf@HIDDEN>
In-Reply-To: <861pdaj6bt.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Fri, 24 Jul 2026 21:50:38 -0600
X-Gm-Features: AUfX_mzjb3q0vgcrgcruwIP8coPXAdUhQqvBGQf8p0A1HMKF8nbX0g1fvPRsJdk
Message-ID: <CAG8iPGx=rnrS+nqUyuv47o7OS8nZ7Ax2e61u63NviTQkQd8DWA@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, 11 Jul 2026 at 02:09, Eli Zaretskii <eliz@HIDDEN> wrote:
>
> Ping!  Would people please chime in and comment or suggest what to do
> with this issue?

Seeing no responses, let me propose a high-level sketch of possible
behaviour. If this makes sense, we can figure out the best way to
implement it. (Though the straightforward way is probably fine.)

The :custom-face declaration should accept a list of face attributes
and their values, and those values override whatever would otherwise
be used for that face. Any attributes that are not given will have the
values they would otherwise. So, in other words, the use-package
declaration is the "most intentional" and is given higher priority
than the original defface, whichever theme is active, and any saved or
unsaved user customization.

The other use case is to completely override all attributes, which
could be done explicitly by listing all face attributes and setting
them to 'unspecified (except :extend, which is treated specially in
the current code and taken from the original face definition). This
behaviour could be opted-into using an extra argument to the
:custom-face declaration. However, I would like to hear how exactly
this should behave from people who use it. Just like :extend, the
:inherit attribute isn't so much about face display but rather
establishes a semantic hierarchy of faces (e.g. mode-line-active
inherits from mode-line). If you don't set :inherit explicitly, should
that relationship be severed?

If we agree this is reasonable behaviour, I'd be happy to prepare a
patch implementing it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 11 Jul 2026 08:09:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 11 04:09:39 2026
Received: from localhost ([127.0.0.1]:39224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wiSmH-0006Yw-Va
	for submit <at> debbugs.gnu.org; Sat, 11 Jul 2026 04:09:39 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43714)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wiSmF-0006XT-Aa
 for 77928 <at> debbugs.gnu.org; Sat, 11 Jul 2026 04:09:36 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wiSm9-0008Dk-Qi; Sat, 11 Jul 2026 04:09:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=I0LeowY0NnJ4el3o67YzdEmHlfSHZabJjl35QRvv6Bs=; b=nDee/e+CSBkm2WdSK9jA
 MlPcJKwu1u01Szzjuv5sd0NXRzC1e/TIeSNBKHVjIkUJN+HSbZinSrbKqKiEQPPtdQ8w96g49vCwe
 bpwsUwQnYU/9V9bDbun4BKSKqm7xIxzujvZ8olM6UeMzEB5e+YbgSebE6y2bTwSmCZdJIDPoPWxTO
 +ja780qU/Z1Xrf3rid0e23nV2UdVRmlVnHV8dBJPvCZAiDZKuCZiSnoidBGaVN2xQlDiYv37Okmjm
 O7ZFo6C5zt5AELoUp+hDCbyQ/QF56l3slmB2KLyxeH5LLnnC2/O1QWrzHY37WBlJfnahyt0TkfAP6
 g57hZFMcSLc56g==;
Date: Sat, 11 Jul 2026 11:09:26 +0300
Message-Id: <861pdaj6bt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: johnw@HIDDEN, shields@HIDDEN, steven@HIDDEN,
 Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGzSGAkd7ABhcfgk+6PryBOmJ7THYKqiKg-hd5pHNjCRyw@HIDDEN>
 (message from Roshan Shariff on Sun, 28 Jun 2026 04:05:12 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
 <CAG8iPGzSGAkd7ABhcfgk+6PryBOmJ7THYKqiKg-hd5pHNjCRyw@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  Would people please chime in and comment or suggest what to do
with this issue?

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sun, 28 Jun 2026 04:05:12 -0600
> Cc: John Wiegley <johnw@HIDDEN>, shields@HIDDEN, steven@HIDDEN, 
> 	77928 <at> debbugs.gnu.org
> 
> > But the expansion of :custom-face doesn't call custom-set-faces, so
> > you are basically saying that the implementation doesn't live up to
> > the stated goal?
> 
> I really meant that it should behave like custom-set-faces, not that
> it should necessarily be implemented using it. The reason is that it
> needs to not behave like custom-set-faces in one respect — those
> customizations should not be written out to the user's custom-file
> (because they are already persisted in a use-package block). So
> somewhere in the system the distinction needs to be maintained. In
> fact, this is why the implementation was changed from custom-set-faces
> to face-spec-set in the first place
> (https://github.com/jwiegley/use-package/pull/1004).
> 
> I'm not sure any more whether the best way to implement the desired
> behaviour is actually by calling custom-set-faces (and if the latter
> also needs to be changed; as you say below, we really need to figure
> out what the right behaviour is). The implementation of the :custom
> keyword is not a good guide because as you say, variables are simpler
> and indeed use-package does a complicated dance to make them work.
> Also that implementation was done when use-package was not a part of
> emacs; now that it is, we should consider that the job might be more
> easily done by modifying emacs code.
> 
> > Moreover, custom-set-faces completely replaces the face's spec by its
> > own, so working like custom-set-faces would mean users will need to
> > provide a full specification of all the face's attributes in
> > :custom-face.  Is that indeed the intent?  I'm wondering because if
> > that's the intent, it's very inconvenient, as user-level
> > customizations go: it is much easier to specify just the attributes
> > you want to customize and leave the rest at their previous values
> > specified by the defface spec.
> 
> I agree that this is a situation in which it makes sense to deviate
> from the behaviour of custom-set-faces. Indeed :custom-face is meant
> exclusively for user customizations, not for general programmatic use,
> so you should be able to specify only the attributes you want to
> change. And, in fact, that is exactly the semantics of
> 'face-override-spec, which was the default behaviour before this
> patch. In that sense, the status quo was an improvement over just
> calling custom-set-faces, whose weird semantics are, I think, because
> it is implemented as a thin wrapper around custom-theme-set-faces,
> which is meant for full themes that do indeed override faces
> completely.
> 
> > As I point out above, :custom-face isn't completely equivalent to
> > custom-set-faces.  And the analogy of variable customization doesn't
> > help because face customization is much more complex, given the
> > existence of themes and the merging of face attributes.
> 
> Agreed.
> 
> > Don't users of themes expect that?
> 
> Yes, users of themes expect that their customizations will be layered
> on top of those themes, and the defface will be ignored entirely. That
> was the default behaviour before this patch. The broken expectations
> were of people who don't use themes, who were relying on the
> side-effect of custom-set-faces completely disabling the original
> defface because of its implicit 'user theme. This patch was written to
> make that expectation hold by putting the user customization in
> 'face-defface-spec. This does indeed replace the defface, but then the
> user customization ends up with the lowest possible priority; not only
> is it not merged on top of themes, but it's completely ignored
> whenever any theme modifies any attribute of the face.
> 
> > custom-set-faces is a function used by Customize to save user
> > customizations of a face.  When the user saves his/her customizations
> > of a face, Customize takes care of producing a complete face spec,
> 
> Right, so Customize doesn't actually allow users to selectively
> override some face attributes. Perhaps this would be a good feature to
> add though, since we've established that it makes sense for users to
> be able to do this. And then, it makes sense to allow it for
> :custom-face too, since that is basically the use-package equivalent
> of the Customize interface (by a happy accident, it was already
> possible before this patch removed the ability).
> 
> > People who write Lisp in their init files, and that Lisp uses
> > custom-set-faces, are expected to know what they are doing, and thus
> > what they expect is not really relevant to the issue of user
> > customization of faces, because writing Lisp that calls
> > custom-set-faces is equivalent to writing a full defface spec.
> >
> > Face customizations in Lisp that don't want to specify the full face
> > should use set-face-attribute and similar functions instead.
> 
> I think set-face-attribute is too low-level for the job at hand
> though. It lies at the level below the theme system, operates per
> frame, and makes it very hard to achieve "I want this face to be
> italicized, but not change anything else". I think the Customization
> interface should allow this, and so should use-package because it is
> more akin to a DSL for customization than an elisp programmer-oriented
> feature. We can always say that users have to write elisp to achieve
> complicated things, but at the same time use-package (or Customize)
> should be enough for simple things like changing a particular face
> attribute.
> 
> > How could he (or anyone, really) be aware of that, given that it is
> > completely undocumented what can be passed as arguments to
> > :custom-face in addition to face and its attributes?
> 
> > (And actually, the patch author was clearly aware of that because the
> > example in the use-package's manual which used face-defface-spec was
> > modified to remove that argument.)
> 
> To clarify, I didn't mean to imply that Michael hadn't been diligent,
> because all this is quite subtle. However, it was John who pointed out
> that third argument in Message #11
> (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77928#11). Michael then
> changed the documentation to reflect that it was no longer supported,
> believing there was no need for it with this patch. He didn't realize
> that if you use themes the new default setting doesn't work,
> presumably because that doesn't match his use case.
> 
> > The patch fixed a real problem, don't you agree?  It might have caused
> > incompatibilities and regressions, which we should strive to solve,
> > but it wasn't some arbitrary change which we could just revert and be
> > done, right?
> 
> To be clear, I don't think just reverting the patch and going back to
> that optional extra argument is a good solution, but it's at least
> better than the current situation if you use themes. I just proposed
> it as a quick fix if needed for emacs 31, in case better changes are
> not acceptable at the pretest stage.
> 
> Also, as we've noted, the patch tries to imitate the quirk of
> custom-set-faces by completely overriding the defface spec; this is
> not a good default for a user customization option though. And since,
> in the process, it destroys the much more useful behaviour of being
> able to selectively override certain theme attributes, I think it does
> more harm than good.
> 
> >
> > IOW, what we need is some constructive way forward, which hopefully
> > will leave enough users happy.
> 
> Yes, indeed! Let's talk about it and hopefully we can come up with a
> patch. I have some ideas that should satisfy everyone and are
> minimally invasive, but I'll give others a chance to share their
> opinions first.
> 
> > So I'm led to the conclusion that the semantics of :custom-face is
> > unclear, which is not surprising, given that it is not described in
> > the manual except via a bunch of simple examples.  Maybe that is the
> > root cause of the problems being discussed: each one expects
> > :custom-face to have different effects, especially when other means of
> > face customizations (including themes) are used.  If so, we should
> > begin by defining the effects of :custom-face clearly and accurately.
> 
> Yes, this is indeed the root cause. The semantics of custom-set-faces
> with respect to themes are actually quite clear, intentional, and make
> sense, which is to layer user customizations on top of themes.
> However, I think all the changes were made by people who didn't use
> themes and wanted to preserve an accidental side effect of the
> implementation — creating the "user" theme disables the defface spec.
> This was probably only meant to kick in when a "full" theme is
> enabled, but you might come to rely on this behaviour if you don't use
> themes.
> 
> > If that is what is wanted, then I submit that the implementation of
> > :custom-face should be changed to use custom-set-faces.
> 
> We should design a system that makes sense for user customization of
> faces, and if the Customize interface doesn't support, for example,
> selectively setting attributes, it should.
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 10:05:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 06:05:35 2026
Received: from localhost ([127.0.0.1]:57270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdmOL-0000qa-TL
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 06:05:35 -0400
Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:51516)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wdmOH-0000ot-JC
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 06:05:32 -0400
Received: by mail-pj1-x1033.google.com with SMTP id
 98e67ed59e1d1-37e4098e920so760470a91.3
 for <77928 <at> debbugs.gnu.org>; Sun, 28 Jun 2026 03:05:29 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782641123; cv=none;
 d=google.com; s=arc-20260327;
 b=E0626ckAtBcPpFX7fnvoVeEa594GmSD3Q5SNCxiLmNwgJhEE7m17Ex4dWILeiTzAxM
 1nqEFDV8Ewj4Ke+c3wT8oSLpmgsCQ7aV5bNXiFz/gfXtGWvf/t3y4xq3FWv8TKWWZCsr
 YFkqNCGPBDjYyxyi3magcHkDVgnn3MLWb3GdAEsO88kVYAGKgFPpFby14jXLbsvB16lo
 VchOHzUfjLy3GAXnGlgnD5hs6msC2XbBn6H6pKty/dxpINpLlxPpP0v2lTikuNSXi1cL
 0jsvqN4+5WzTvd+DDTEpvNrNk7eNH0ivHSGqeSWmYjwsW57jYqB9ga8jL+hEnP26iFef
 ZS6Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:dkim-signature;
 bh=2wAUOE/E1rSRSI7bxnsIEQdsvnvB7EufTCL4XnCN4o4=;
 fh=kl2WUYIdbzQtYcoPaC6Ldmn1682ccB8IhoobgtWmU6I=;
 b=dd1w3T/QwB4AegCJJTn6WhpzvkDNVRdytwo8HtUHlWnKxGGMWBW6GVw9Ef/3Mn6dkr
 vten9iZn5aj/7q8/S2SgvNpLziS5ijquCkJWZKcJqnjPlWO7dyGoHMEr7gQrEkLfzc3I
 giDyiohgKJMeAGfO/EaU4oTjtmUXfFXzKKwk9jtnhCbvtSem7jvW33HwSUwXu7QqdaHm
 F3NUOwbJTp3bSB7FthoXrcaMKpk4tzu2e6vFdyyag2LrmUb5AS+skaQL9evBQSQnmPiR
 XgaCxKxq4EyFPY9GT2VkDjS0GacMCwoXvmVcYSOAI5ER383wnyGvfYgwhbnkLD24rTT/
 p7Bw==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1782641123; x=1783245923; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=2wAUOE/E1rSRSI7bxnsIEQdsvnvB7EufTCL4XnCN4o4=;
 b=r+jUCpRZ4XRn1pFqj4pEnJXxwlr2n4XurJK1Vl2VnE0tk52wclQJWJwi4ICYEgAJRC
 hVXdwMcZEyk3ESrTFexuQEg3puc6aKx0qsta+ysxMXFzdVVbXTFy4Q4j8zWl16y1EJJy
 vifQJL/x8Ly/ncFhvBTHz2U45M9/MilR3nviBwJtairdilz2s04lR56Robrd2Q2KpkPF
 Pbmdh9sVLa3kZl3KfBekFkqSjw5rByHPVFwGZi/L2ywciYlsJkHnu3Ic+DNNu658405F
 29WcaepiCRZEU2haEsUW4/bPCuEN3RAAlhultnkZ3VSVV54iKOiOSWtGsxC4LWqQjeSG
 P5aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1782641123; x=1783245923;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=2wAUOE/E1rSRSI7bxnsIEQdsvnvB7EufTCL4XnCN4o4=;
 b=s7Tg9zF0BX5J8lmygnREg56zfCTxpgVQcV6WEAKrwBoAPtrcZv/AqJcpUFJJCoHNyC
 bsDuHN4K9UTjrI2CHIuiJHBVl70gPmBZn5VtDmT+SSUAEtizv0A1F3acocUejdNbRB3e
 cVKzCp283GkbJ5eIa0CZBpo4nA4xaynyGhru5Jv7JIGzhjBeH8NU6b6p8sDJUSd4PXJC
 gwfXKEMkWkt0G3G9gMsRkv9VbCrEHlDwmk4iqWyo6wuiFYJJTtoU09P3ThQMEBauwf+G
 RSuAM/Zv6rgYtyHmXnTWOD68sSdWQyiautmMNEJFhj8pb0dYjmn6aMHFU8gB8QguuEhu
 CaAg==
X-Forwarded-Encrypted: i=1;
 AHgh+RrGy7hHnDJiqCMpgTTXYX7WtPbZQYmAJThXFoGjJ6G54mMSiywVGhR+qgo1ApVk0+LTegqBYw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxYoQOy/DIb0Ici+LBayNyxiRbU3Ddj2xkvJ5S8Ojm97gbEJCxH
 gL1vC6byuEHVVcsWOhnEoZG8HgRin775huT1EEr/CHdwXlI/tHBoq5OwDrki4UYkRl/qMqOXk8v
 WMuPHEfPqF33pALJznlMcRdLONfKwpOg=
X-Gm-Gg: AfdE7cn6LkdtSM0EPNLUIVrljHG21aC2NDC50tmOBhBxvKUgBAqDQmPnPIQi4D6ePq4
 uhCnSJcxH0pfCFXUiSDZtawpfDBnC+ljRvFIfsEis9fKwTj6feDXiXa+hnJeV6CDSPKpho682SR
 EDIPc6Oaue91a8ojDJGKmSzuMfsiM+Zo2uxlQE2PyEpGhm81iapGv0oC4MmSNRBUVwubRmfRlf6
 mcCrYiHiD+bCPlDPH4iFx58FeJPHMJVWW4ysVa8VUJxnBECQNyY7p3Qh3RJEelFRYko7w==
X-Received: by 2002:a17:90b:590f:b0:37f:f4ae:5f25 with SMTP id
 98e67ed59e1d1-37ff4ae60c4mr614185a91.20.1782641123332; Sun, 28 Jun 2026
 03:05:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 <86y0fzf5jg.fsf@HIDDEN>
In-Reply-To: <86y0fzf5jg.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sun, 28 Jun 2026 04:05:12 -0600
X-Gm-Features: AVVi8Cfp9DoqS1cVJrh8AWXwZmvOMt4BXfKGtpv6cut2vRjZvPMsFnnLhxHYE-I
Message-ID: <CAG8iPGzSGAkd7ABhcfgk+6PryBOmJ7THYKqiKg-hd5pHNjCRyw@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, John Wiegley <johnw@HIDDEN>, shields@HIDDEN,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

> But the expansion of :custom-face doesn't call custom-set-faces, so
> you are basically saying that the implementation doesn't live up to
> the stated goal?

I really meant that it should behave like custom-set-faces, not that
it should necessarily be implemented using it. The reason is that it
needs to not behave like custom-set-faces in one respect =E2=80=94 those
customizations should not be written out to the user's custom-file
(because they are already persisted in a use-package block). So
somewhere in the system the distinction needs to be maintained. In
fact, this is why the implementation was changed from custom-set-faces
to face-spec-set in the first place
(https://github.com/jwiegley/use-package/pull/1004).

I'm not sure any more whether the best way to implement the desired
behaviour is actually by calling custom-set-faces (and if the latter
also needs to be changed; as you say below, we really need to figure
out what the right behaviour is). The implementation of the :custom
keyword is not a good guide because as you say, variables are simpler
and indeed use-package does a complicated dance to make them work.
Also that implementation was done when use-package was not a part of
emacs; now that it is, we should consider that the job might be more
easily done by modifying emacs code.

> Moreover, custom-set-faces completely replaces the face's spec by its
> own, so working like custom-set-faces would mean users will need to
> provide a full specification of all the face's attributes in
> :custom-face.  Is that indeed the intent?  I'm wondering because if
> that's the intent, it's very inconvenient, as user-level
> customizations go: it is much easier to specify just the attributes
> you want to customize and leave the rest at their previous values
> specified by the defface spec.

I agree that this is a situation in which it makes sense to deviate
from the behaviour of custom-set-faces. Indeed :custom-face is meant
exclusively for user customizations, not for general programmatic use,
so you should be able to specify only the attributes you want to
change. And, in fact, that is exactly the semantics of
'face-override-spec, which was the default behaviour before this
patch. In that sense, the status quo was an improvement over just
calling custom-set-faces, whose weird semantics are, I think, because
it is implemented as a thin wrapper around custom-theme-set-faces,
which is meant for full themes that do indeed override faces
completely.

> As I point out above, :custom-face isn't completely equivalent to
> custom-set-faces.  And the analogy of variable customization doesn't
> help because face customization is much more complex, given the
> existence of themes and the merging of face attributes.

Agreed.

> Don't users of themes expect that?

Yes, users of themes expect that their customizations will be layered
on top of those themes, and the defface will be ignored entirely. That
was the default behaviour before this patch. The broken expectations
were of people who don't use themes, who were relying on the
side-effect of custom-set-faces completely disabling the original
defface because of its implicit 'user theme. This patch was written to
make that expectation hold by putting the user customization in
'face-defface-spec. This does indeed replace the defface, but then the
user customization ends up with the lowest possible priority; not only
is it not merged on top of themes, but it's completely ignored
whenever any theme modifies any attribute of the face.

> custom-set-faces is a function used by Customize to save user
> customizations of a face.  When the user saves his/her customizations
> of a face, Customize takes care of producing a complete face spec,

Right, so Customize doesn't actually allow users to selectively
override some face attributes. Perhaps this would be a good feature to
add though, since we've established that it makes sense for users to
be able to do this. And then, it makes sense to allow it for
:custom-face too, since that is basically the use-package equivalent
of the Customize interface (by a happy accident, it was already
possible before this patch removed the ability).

> People who write Lisp in their init files, and that Lisp uses
> custom-set-faces, are expected to know what they are doing, and thus
> what they expect is not really relevant to the issue of user
> customization of faces, because writing Lisp that calls
> custom-set-faces is equivalent to writing a full defface spec.
>
> Face customizations in Lisp that don't want to specify the full face
> should use set-face-attribute and similar functions instead.

I think set-face-attribute is too low-level for the job at hand
though. It lies at the level below the theme system, operates per
frame, and makes it very hard to achieve "I want this face to be
italicized, but not change anything else". I think the Customization
interface should allow this, and so should use-package because it is
more akin to a DSL for customization than an elisp programmer-oriented
feature. We can always say that users have to write elisp to achieve
complicated things, but at the same time use-package (or Customize)
should be enough for simple things like changing a particular face
attribute.

> How could he (or anyone, really) be aware of that, given that it is
> completely undocumented what can be passed as arguments to
> :custom-face in addition to face and its attributes?

> (And actually, the patch author was clearly aware of that because the
> example in the use-package's manual which used face-defface-spec was
> modified to remove that argument.)

To clarify, I didn't mean to imply that Michael hadn't been diligent,
because all this is quite subtle. However, it was John who pointed out
that third argument in Message #11
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77928#11). Michael then
changed the documentation to reflect that it was no longer supported,
believing there was no need for it with this patch. He didn't realize
that if you use themes the new default setting doesn't work,
presumably because that doesn't match his use case.

> The patch fixed a real problem, don't you agree?  It might have caused
> incompatibilities and regressions, which we should strive to solve,
> but it wasn't some arbitrary change which we could just revert and be
> done, right?

To be clear, I don't think just reverting the patch and going back to
that optional extra argument is a good solution, but it's at least
better than the current situation if you use themes. I just proposed
it as a quick fix if needed for emacs 31, in case better changes are
not acceptable at the pretest stage.

Also, as we've noted, the patch tries to imitate the quirk of
custom-set-faces by completely overriding the defface spec; this is
not a good default for a user customization option though. And since,
in the process, it destroys the much more useful behaviour of being
able to selectively override certain theme attributes, I think it does
more harm than good.

>
> IOW, what we need is some constructive way forward, which hopefully
> will leave enough users happy.

Yes, indeed! Let's talk about it and hopefully we can come up with a
patch. I have some ideas that should satisfy everyone and are
minimally invasive, but I'll give others a chance to share their
opinions first.

> So I'm led to the conclusion that the semantics of :custom-face is
> unclear, which is not surprising, given that it is not described in
> the manual except via a bunch of simple examples.  Maybe that is the
> root cause of the problems being discussed: each one expects
> :custom-face to have different effects, especially when other means of
> face customizations (including themes) are used.  If so, we should
> begin by defining the effects of :custom-face clearly and accurately.

Yes, this is indeed the root cause. The semantics of custom-set-faces
with respect to themes are actually quite clear, intentional, and make
sense, which is to layer user customizations on top of themes.
However, I think all the changes were made by people who didn't use
themes and wanted to preserve an accidental side effect of the
implementation =E2=80=94 creating the "user" theme disables the defface spe=
c.
This was probably only meant to kick in when a "full" theme is
enabled, but you might come to rely on this behaviour if you don't use
themes.

> If that is what is wanted, then I submit that the implementation of
> :custom-face should be changed to use custom-set-faces.

We should design a system that makes sense for user customization of
faces, and if the Customize interface doesn't support, for example,
selectively setting attributes, it should.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 08:11:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 04:11:46 2026
Received: from localhost ([127.0.0.1]:56564 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdkcC-0005Bc-J9
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 04:11:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50154)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wdkc8-0005A9-UM
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 04:11:42 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wdkc3-0000tq-Dm; Sun, 28 Jun 2026 04:11:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=3G1useDwLanUu1tU4n48LN4EkmezCHDsDtygKyp4TGs=; b=MBJhIVQQVzq0zKa5Ld8M
 psHZCWIDx2Gq+BwhSeoiL2+f/4qzWECe6Vi2ri8N4CVToMhPVsHtUwwlpnPDRX7SCI1iLo3iYU/ck
 dk1DTLnXY7KLoiXwlX9fgAIZLBx6tzVNeSFTGSmUV4EENG8Uu2ZNgI80WiY3Gwt6IvcKtBrYYKgk9
 4Sg0+FYFQTKsnvKhg+zJQu1uVq0sp0auElpT1lWcv+jiomBFKfQ/cj2epdCwDJxOdNTklI0xDYe+R
 UsP3IaDR2M6xxRK0IcNrpNzqkt3YeEoBwq5Q44PhBIsHObdddWqRvIfl2GwjS0kPLjuc0e6EiArmC
 3WdtungrSUrbog==;
Date: Sun, 28 Jun 2026 11:11:31 +0300
Message-Id: <86y0fzf5jg.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>,
 John Wiegley <johnw@HIDDEN>
In-Reply-To: <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
 (message from Roshan Shariff on Sun, 28 Jun 2026 01:05:25 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
 <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, shields@HIDDEN, steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sun, 28 Jun 2026 01:05:25 -0600
> Cc: Michael Shields <shields@HIDDEN>, Steven Allen <steven@HIDDEN>, 77928 <at> debbugs.gnu.org
> 
> > > The fragility of option 3 (or option 2 with 'face-defface-spec) as a
> > > solution to requirement 1 is that the :custom-face spec is completely
> > > ignored when the face is themed, rather than overriding the theme as
> > > desired.
> >
> > Can you explain why isn't the current behavior TRT?  Why should
> > use-package override a theme in how it defines a face?  IOW, who said
> > that :custom-face is more important than a theme that the user loads?
> 
> The stated goal of the :custom-face keyword (by John Wiegley, for
> example, and indeed the title of this bug report) is that it should
> behave like custom-set-faces.

But the expansion of :custom-face doesn't call custom-set-faces, so
you are basically saying that the implementation doesn't live up to
the stated goal?

Moreover, custom-set-faces completely replaces the face's spec by its
own, so working like custom-set-faces would mean users will need to
provide a full specification of all the face's attributes in
:custom-face.  Is that indeed the intent?  I'm wondering because if
that's the intent, it's very inconvenient, as user-level
customizations go: it is much easier to specify just the attributes
you want to customize and leave the rest at their previous values
specified by the defface spec.

> The idea is that you can (optionally)
> load a theme that configures most faces in a way you like, and then
> you can further customize some face attributes as needed. You can do
> this via the Easy Customization system, or equivalently by calling
> custom-set-faces in your init file.

Yes.  But note the above caveat about using custom-set-faces.

> If you prefer to keep your init file more organized and avoid it being
> automatically edited, you can instead also do this using use-package's
> :custom-face keyword. This is completely analogous to the :custom
> keyword for customizable variables, which behaves like
> custom-set-variables.

As I point out above, :custom-face isn't completely equivalent to
custom-set-faces.  And the analogy of variable customization doesn't
help because face customization is much more complex, given the
existence of themes and the merging of face attributes.

> The behaviour of custom-set-faces (which is very reasonable) is that
> it takes priority over any other themes you have enabled. Indeed, it
> creates a special theme called 'user which contains your
> customizations, and ensures that theme always has the highest
> priority. And it merges together the face attributes of all enabled
> themes in priority order.

Yes.

> The quirk, and I believe the source of much confusion, is that if
> there are _any_ enabled themes, then the attributes set by those
> themes are merged and used, but the attributes defined in the face's
> original defface definition are ignored.

Don't users of themes expect that?

> So you either don't have any
> themes enabled (not even the 'user theme) and use the face's original
> definition, or you enable a theme or customize a face, and then only
> those themes or customizations are used and the original definition is
> ignored. I believe the expectation was that if a theme customizes a
> face, it wants to totally control that face's appearance and not defer
> to the original defface at all. But if multiple themes are enabled,
> then it makes sense to merge them in priority order. I think the
> common scenario is one "normal" enabled theme and the special 'user
> theme on top of it.
> 
> So for people who use themes, the expectation is their customizations
> will be merged with the other theme(s) they've enabled, but with
> higher priority. For people who don't use themes but use the
> customization system (and thus implicitly the 'user theme) the
> expectation is that the defface definition will be completely ignored
> in favour of their customization (and no other theme attributes will
> be merged because they don't use themes at all).

custom-set-faces is a function used by Customize to save user
customizations of a face.  When the user saves his/her customizations
of a face, Customize takes care of producing a complete face spec,
including the original face attributes which the user didn't specify.
So from the user's POV, the effect of customizing a single face
attributes is as expected: all the other attributes remain as in the
original defface, although under the hood custom-set-faces specifies a
full face spec.

People who write Lisp in their init files, and that Lisp uses
custom-set-faces, are expected to know what they are doing, and thus
what they expect is not really relevant to the issue of user
customization of faces, because writing Lisp that calls
custom-set-faces is equivalent to writing a full defface spec.

Face customizations in Lisp that don't want to specify the full face
should use set-face-attribute and similar functions instead.

> I'll let others chime in on what behaviour makes sense. But I believe
> that the patch author was not aware that what the patch does (force
> the 'face-defface-spec argument) was already possible, by explicitly
> passing in that argument.

How could he (or anyone, really) be aware of that, given that it is
completely undocumented what can be passed as arguments to
:custom-face in addition to face and its attributes?

(And actually, the patch author was clearly aware of that because the
example in the use-package's manual which used face-defface-spec was
modified to remove that argument.)

> > Wait a minute: why are you adding face-defface-spec to the end of the
> > arguments?  AFAIU, the expansion now does that by default, so it makes
> > no sense to specify it again.  What am I missing?
> 
> Yes, the expansion now does that by default, but I just wanted to
> point out that the patch doesn't account for the possibility of a
> third argument (to do that properly, it should also have updated the
> use-package-normalize/:custom-face function to throw an error when the
> incorrect number of arguments is given). In previous versions of
> emacs, you would have passed 'face-defface-spec as the third argument
> to get the behaviour that the patch now forces, or you could have
> omitted that argument to get the other behaviour (merging with themed
> or defface attributes). So somebody upgrading from Emacs 30 who is
> happy with the existing behaviour may find that their face
> customizations are totally ignored now (if they omitted the third
> argument but have a theme enabled). Or, if they passed in the extra
> argument to get the patch's default behaviour, they now get an error.

The patch fixed a real problem, don't you agree?  It might have caused
incompatibilities and regressions, which we should strive to solve,
but it wasn't some arbitrary change which we could just revert and be
done, right?

IOW, what we need is some constructive way forward, which hopefully
will leave enough users happy.

> In fact, thethe _only_ situation in which the new behaviour is
> desirable if you don't use themes, and you want the attributes from
> :custom-face to override the ones from defface rather than augmenting
> them. And if that is the case, allowing that optional third argument
> (the pre-patch status quo) allows what this patch does without
> _forcing_ it.

At least John agreed (or didn't object) to that at the time:

> If face-defface-spec is the desired default behaivor — while dropping the
> current ability to customize that behavior in the declaration — I have no
> objection, but the Texinfo example will need to be updated as well.

And the original rationale for the change was:

> The attached patch fixes a bug where migrating a face spec from custom.el
> to use-package :custom-face results in a surprising behavior change: the
> new spec is overlaid on the default value instead of replacing it.

So I'm led to the conclusion that the semantics of :custom-face is
unclear, which is not surprising, given that it is not described in
the manual except via a bunch of simple examples.  Maybe that is the
root cause of the problems being discussed: each one expects
:custom-face to have different effects, especially when other means of
face customizations (including themes) are used.  If so, we should
begin by defining the effects of :custom-face clearly and accurately.

> > Maybe we should mention in NEWS that any code which uses
> > this argument should be updated to remove it?
> 
> That would fix the error, but effectively make :custom-face dead code
> whenever a theme is enabled. You might as well just not use
> :custom-face in that case. But as I've pointed out, a big part of the
> appeal of :custom-face is to make small customizations to faces on top
> of whatever the theme sets up.

If that is what is wanted, then I submit that the implementation of
:custom-face should be changed to use custom-set-faces.

> > I've added the other people who were part of the discussion of these
> > issues.  Given the lack of knowledge and the disagreements on what
> > should happen, I'm not sure we can come to an agreement, but we should
> > fix the error mentioned above.
> 
> Excellent, I look forward to their input and I hope the explanations
> I've written earlier are helpful.

Likewise.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 07:05:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 03:05:54 2026
Received: from localhost ([127.0.0.1]:56265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdjaP-0004FX-Hb
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 03:05:54 -0400
Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:54674)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wdjaJ-0004E6-G4
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 03:05:46 -0400
Received: by mail-pg1-x529.google.com with SMTP id
 41be03b00d2f7-c85d4b4245aso1390893a12.1
 for <77928 <at> debbugs.gnu.org>; Sun, 28 Jun 2026 00:05:43 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782630337; cv=none;
 d=google.com; s=arc-20260327;
 b=YUwjcVPxQ/sERmL10fVcGEMsLTNPc+r3zEE2NP6iz5JhkzPBFsPW4Qgwoe0nWF8JjL
 DhnFjySTkTJQHHh5mshg6xZ/EV5qdO5t+YzjRnlrgEMD+342XJGv3Q5Lg2yXBpJRlRh6
 iiHPzE7fJwj0/u/ZkoNpXweyO0lFX86BiXsqa6Rh9fypI0XsCkmMNvtIXcIvAJzNfxYA
 YOZfV/+rSbPFdOsgZD0qdaLGAVS+UdFMLdAcZBbkiv4hjjjFNLY1HXsTc58hj+prrH+w
 nllcy2+0C0w1UCMAV+dMpA+uv0X88OMM1mg3RWW5cq+CxHJ7k9kGJ86rsjdH3kx6hk3c
 WPCA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=L7n7ndMiTzGAx6TC3YGkreLG5MI0WN9IHr9JX9r8sp8=;
 fh=jif19rDx7UvqrTPuhmActb4DIEMismw6loCc0AAFww4=;
 b=hSRNuFnjSk0zF8eXHfDrf0owcY5Rhvco281NTp8xSuuvDGUvJ4MebNCf+Axc3IjYnk
 AMzKV2TltTd1gsPCaHxMWGf4NJZKC8BALF3KGCpTjFOovyz8+/cfx5X9zVL6q76KBWHR
 c6bSFu2QTsLqWcWEgFM5nlYuclzwOBhQ727spsGoydSu66AaPvhbcsDk6Ioxg11ZxMdk
 uAm+C+jU/xkxn3wCW7SCcA1jumsjC7iAQnEq5Ru7TdVz4v7kL1YzCf88YWu/n6PdtFKK
 YZ9hvuM6oD/gQqycYkqlfwQbxvXrY2cVoJ3kRu1NniQscWvj1gFoIHyWuOJRAooUt8u2
 s4mQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1782630337; x=1783235137; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=L7n7ndMiTzGAx6TC3YGkreLG5MI0WN9IHr9JX9r8sp8=;
 b=Zv+0LPhJgYbnpBMdCNjYxoT+BPJ2Av8QHc7yRBrbq3eV2FPLj9xEd/BJJGNuFuehR7
 zsW/WQtrAz0p6BuazPpB0SYnIkZiJBszBKYcUBnE8SWDb8nkzYkLiX+VEnS5GbqG4jr+
 1EstTCnKyGdaSDYvMJv5G7QfnKxEDeoJV2jwuB+ZvRBwpR6KN4KOr9EasDhExShdQrM2
 4JPyjgPTAi0aDgteVrJnX2+bbAS78daChA/HaMGdOQ6ZdACjQ+ppBrPypb6uhRTbdV4m
 eXndBzay6DXUnFTXddPFzWkAQC6i7XjJ4Zr2uVYffJFcZt3vIhh6iC8W7iye9NR/Owmv
 ykRg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1782630337; x=1783235137;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=L7n7ndMiTzGAx6TC3YGkreLG5MI0WN9IHr9JX9r8sp8=;
 b=K0Io5sXSz51ZE/n8h2D9OIvK64mDC14gHHiD1o/8t1IA0yYP6C5iRyC2vgkJyn9ol1
 G2KxqcUnWn6WQgmxYGsrrWImbyNowH2yO/SqspD1e3214wqIja36OhjpI98FTqpznWqR
 z3laUjCEDJmayCLVbC5a2Dk5O672uy7a7BJl/LSrz0NA5V3cjgR53aJ22PBlwX+7wOYH
 TSeyPRUFSWFGrKVKdbfiT+HE6ELGBKEp0Fsnh1+KtEPTB9hDy7W6wnswe4cuDQaEfsCl
 o1E7v4F7CHmKVnxe4iuJ8Kb+kX1Q2S0xBp3N/VhRhuEN3WU5RSm03eJlaz63Q0o7X0xr
 DJTw==
X-Forwarded-Encrypted: i=1;
 AFNElJ8yxgtcYW0REXUI6glv8EcNhgyscp/nwrL61sWFogKLkjxewPs0DzUM6uvOzT8+YXvfoqu+hg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwxsAFHLguHLc8rUBY1P4so0RuE+8kM3QsvTFqMDNtepvEcWoZi
 IP9qXhHgy7p4WbcwWj5elNThjjHTFrmSuoOPRhwG3lLo3IV7Le2x+8gABdtHNoXKJGDkucPVM2O
 YRB0KvSeNgWfmamv8BGn7S1inGjD7Tvk=
X-Gm-Gg: AfdE7ckNSdTmHvr6jn62gnEguFGrshI88Kg8LzMRPlXTNOcrKmTfSrCWYyuoan/qq8g
 TY1itNrOJxCU4i4vZJLvKLq4YlXCKoFIxhrbfjCFJdtHEf+fT+cdk1j9UWsJtsv+w5FQwDskkrM
 JqPChob/Y45CivKzV4miSHLKvzkKc9B0wyKglWXOrW5e8e9IcB+lP6GyqIJqAc0n63YQIMuTLe+
 UJS8T/e1A4SQF934C4XMm5E0uSfzhSejHrGlx9qD7TyjsR3h4VpG/FNDKp57mr+CGXUcHpksPT6
 3NCQ
X-Received: by 2002:a05:6a20:7fa1:b0:3b4:b259:6965 with SMTP id
 adf61e73a8af0-3bd4acd3453mr13560643637.11.1782630336927; Sun, 28 Jun 2026
 00:05:36 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
In-Reply-To: <8633y7gqs2.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sun, 28 Jun 2026 01:05:25 -0600
X-Gm-Features: AVVi8CdIHbjux7OkJYzmIAJq1vz7jJfAUwjfGwCTBaZwWe9aG-AakfkazLc_3xU
Message-ID: <CAG8iPGyhwWBs6pg6o51bpSmCSJKUxzuYPCNNLHK2cC4tMO=dxw@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Michael Shields <shields@HIDDEN>,
 Steven Allen <steven@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, 27 Jun 2026 at 23:47, Eli Zaretskii <eliz@HIDDEN> wrote:
>
> Besides the error in the first case, why do we need to support setting
> Emacs basic faces via use-package's :custom-face keyword?  We already
> have ample and convenient ways of doing that for these faces, so
> adding one more, and making sure it works reliably in all the
> permutations of the possible orders of setting face attributes and
> loading themes is a hard job that maybe we don't need to do.
>
> IOW, do these problems happen only with Emacs basic faces?  Do they
> also happen with faces from packages that use-package actually loads
> (which is why we have use-package to begin with)?

Yes, these problems happen with any face that is themed by some
enabled theme, whether basic faces or defined by a package. For
example, the modus themes customize the faces of pretty much every
third-party package I've ever heard of, including of course stalwarts
like magit. With this patch, all those faces are no longer
customizable (at all) through use-package when a theme is enabled.

I don't think there's any significant difference between emacs basic
faces and package faces in that respect. Any problem that affects one
will affect the other, and conversely in previous versions you could
modify both in the same ways, whether through use-package or not.
Indeed, for the sake of uniformity, many people customize built-in
emacs features with use-package too, customarily inside a (use-package
emacs ...) block. But this is beside the point because no special
effort is needed for this to work.

> As to this part:
>
> > The fragility of option 3 (or option 2 with 'face-defface-spec) as a
> > solution to requirement 1 is that the :custom-face spec is completely
> > ignored when the face is themed, rather than overriding the theme as
> > desired.
>
> Can you explain why isn't the current behavior TRT?  Why should
> use-package override a theme in how it defines a face?  IOW, who said
> that :custom-face is more important than a theme that the user loads?

The stated goal of the :custom-face keyword (by John Wiegley, for
example, and indeed the title of this bug report) is that it should
behave like custom-set-faces. The idea is that you can (optionally)
load a theme that configures most faces in a way you like, and then
you can further customize some face attributes as needed. You can do
this via the Easy Customization system, or equivalently by calling
custom-set-faces in your init file.

If you prefer to keep your init file more organized and avoid it being
automatically edited, you can instead also do this using use-package's
:custom-face keyword. This is completely analogous to the :custom
keyword for customizable variables, which behaves like
custom-set-variables.

The behaviour of custom-set-faces (which is very reasonable) is that
it takes priority over any other themes you have enabled. Indeed, it
creates a special theme called 'user which contains your
customizations, and ensures that theme always has the highest
priority. And it merges together the face attributes of all enabled
themes in priority order.

The quirk, and I believe the source of much confusion, is that if
there are _any_ enabled themes, then the attributes set by those
themes are merged and used, but the attributes defined in the face's
original defface definition are ignored. So you either don't have any
themes enabled (not even the 'user theme) and use the face's original
definition, or you enable a theme or customize a face, and then only
those themes or customizations are used and the original definition is
ignored. I believe the expectation was that if a theme customizes a
face, it wants to totally control that face's appearance and not defer
to the original defface at all. But if multiple themes are enabled,
then it makes sense to merge them in priority order. I think the
common scenario is one "normal" enabled theme and the special 'user
theme on top of it.

So for people who use themes, the expectation is their customizations
will be merged with the other theme(s) they've enabled, but with
higher priority. For people who don't use themes but use the
customization system (and thus implicitly the 'user theme) the
expectation is that the defface definition will be completely ignored
in favour of their customization (and no other theme attributes will
be merged because they don't use themes at all).

I'll let others chime in on what behaviour makes sense. But I believe
that the patch author was not aware that what the patch does (force
the 'face-defface-spec argument) was already possible, by explicitly
passing in that argument. And of course, that's also what causes the
second regression, because 'face-defface-spec is ignored when any
theme is enabled.

> Wait a minute: why are you adding face-defface-spec to the end of the
> arguments?  AFAIU, the expansion now does that by default, so it makes
> no sense to specify it again.  What am I missing?

Yes, the expansion now does that by default, but I just wanted to
point out that the patch doesn't account for the possibility of a
third argument (to do that properly, it should also have updated the
use-package-normalize/:custom-face function to throw an error when the
incorrect number of arguments is given). In previous versions of
emacs, you would have passed 'face-defface-spec as the third argument
to get the behaviour that the patch now forces, or you could have
omitted that argument to get the other behaviour (merging with themed
or defface attributes). So somebody upgrading from Emacs 30 who is
happy with the existing behaviour may find that their face
customizations are totally ignored now (if they omitted the third
argument but have a theme enabled). Or, if they passed in the extra
argument to get the patch's default behaviour, they now get an error.

In fact, thethe _only_ situation in which the new behaviour is
desirable if you don't use themes, and you want the attributes from
:custom-face to override the ones from defface rather than augmenting
them. And if that is the case, allowing that optional third argument
(the pre-patch status quo) allows what this patch does without
_forcing_ it.

> Maybe we should mention in NEWS that any code which uses
> this argument should be updated to remove it?

That would fix the error, but effectively make :custom-face dead code
whenever a theme is enabled. You might as well just not use
:custom-face in that case. But as I've pointed out, a big part of the
appeal of :custom-face is to make small customizations to faces on top
of whatever the theme sets up.

> I've added the other people who were part of the discussion of these
> issues.  Given the lack of knowledge and the disagreements on what
> should happen, I'm not sure we can come to an agreement, but we should
> fix the error mentioned above.

Excellent, I look forward to their input and I hope the explanations
I've written earlier are helpful.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 06:35:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 02:35:38 2026
Received: from localhost ([127.0.0.1]:56147 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdj79-000158-0w
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 02:35:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55722)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wdj73-00013i-9B
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 02:35:32 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wdj6w-0007Lx-JZ; Sun, 28 Jun 2026 02:35:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=8AJ1tZlFA4xgUpwMIdlnY98t2faIttRXQ8mp3fEk/+s=; b=pFGr1piZk+yg
 q0pXOT6XbsUMceyjxOjBgHMeFBt4G/NQ+8LYSHBqEEM96HP/sHy9gtAUzIi7Or4og5lkJVsagEgC9
 QywfGZR3j8BthkQoNqjZIESHiy8Cwe77KEtLX+jwZolmSNnp/lIAN4zLe3/pEsqTIhAqjSIGDDEum
 QYBDe/X3PDKoevjV4tj6lky1DFJ1fY4GaIkhAXH88q6fpD/Vh67vj6KruRjvIVJQdWZw/RqMaUCMM
 rvQW/d3Cb+5WkjCOFuP5Upod/7HcNvUZED6dvsifJd5VjSFWnAcQ5z1bVPvpMqdJXLYjZGrw96sg4
 3PCkCZXwMDFzI6xf+MJ5rw==;
Date: Sun, 28 Jun 2026 09:35:19 +0300
Message-Id: <861pdrgok8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: roshan.shariff@HIDDEN
In-Reply-To: <8633y7gqs2.fsf@HIDDEN> (message from Eli Zaretskii on Sun, 28
 Jun 2026 08:47:25 +0300)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 <8633y7gqs2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, shields@HIDDEN, steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 77928 <at> debbugs.gnu.org
> Date: Sun, 28 Jun 2026 08:47:25 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Roshan Shariff <roshan.shariff@HIDDEN>
> > Date: Sat, 27 Jun 2026 23:21:15 -0600
> > Cc: 77928 <at> debbugs.gnu.org
> > 
> > > What is the regression you encountered in the pretest, please?  Can
> > > you show a simple recipe to reproduce that, with explanations and with
> > > results in previous versions of Emacs?
> > 
> > Yes, here are the two regressions, evaluated in a scratch buffer from emacs -Q
> > 
> > (use-package emacs
> >   :custom-face (mode-line-active ((t :background "red")) face-defface-spec))
> > 
> > In Emacs 30.2, the mode line turns red. In Emacs 31.0.90, there is no
> > change to the mode line and the error
> > Error (use-package): emacs/:catch: Wrong number of arguments: #<subr
> > face-spec-set>, 4

Wait a minute: why are you adding face-defface-spec to the end of the
arguments?  AFAIU, the expansion now does that by default, so it makes
no sense to specify it again.  What am I missing?

Perhaps we should remove face-defface-spec from the arguments before
we pass them to face-spec-set?

In any case, I don't understand where did that face-defface-spec come
from.  It is not in the use-package manual anymore, so why did you use
it there?  Maybe we should mention in NEWS that any code which uses
this argument should be updated to remove it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 05:47:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 01:47:43 2026
Received: from localhost ([127.0.0.1]:55907 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdiMm-00034K-Du
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 01:47:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54254)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wdiMg-00032P-8F
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 01:47:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wdiMa-0002Ef-K8; Sun, 28 Jun 2026 01:47:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=cuJxq9rOMzvDNkIf0vNO2W/3SuVa3G53WNJoKrJPh/w=; b=GrX0gy9MpRQ/
 2ad643BFvgzUw6YbCS57ULZ4gEuRwNCYOKDnp5azEyXO2zfEhu99ccY4zUF+cIU+jqHAZF3gsIS1p
 jh8iOF4KKa9xDukUrW67mgyBjAam3+QZQO3tqzqn3MbXlj+1/hk/yZvqVP4j1RusJZuJAwuW8tTQY
 OtToS/EBQoxh26T5q0X/2T4f2ThcormX9GuG5RsmpnFgT2rxSwdN6MTHbUeCzY9aNoczaKH0f0aw0
 M+fNYGDxo+Df9ADOGKM4eMWDe0/HiApIG2OV3lorCQ9NrT8Y5/pT33O6uf9nzvp0LiHWWy1aU3Ehw
 7rPOEBYlse+VLwKJoYCrOA==;
Date: Sun, 28 Jun 2026 08:47:25 +0300
Message-Id: <8633y7gqs2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>,
 Michael Shields <shields@HIDDEN>, Steven Allen <steven@HIDDEN>
In-Reply-To: <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
 (message from Roshan Shariff on Sat, 27 Jun 2026 23:21:15 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
 <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sat, 27 Jun 2026 23:21:15 -0600
> Cc: 77928 <at> debbugs.gnu.org
> 
> > What is the regression you encountered in the pretest, please?  Can
> > you show a simple recipe to reproduce that, with explanations and with
> > results in previous versions of Emacs?
> 
> Yes, here are the two regressions, evaluated in a scratch buffer from emacs -Q
> 
> (use-package emacs
>   :custom-face (mode-line-active ((t :background "red")) face-defface-spec))
> 
> In Emacs 30.2, the mode line turns red. In Emacs 31.0.90, there is no
> change to the mode line and the error
> Error (use-package): emacs/:catch: Wrong number of arguments: #<subr
> face-spec-set>, 4
> 
> In the previous version, the :custom-face keyword of use-package
> directly passed its arguments to face-spec-set after ensuring there
> were at most three arguments. The third argument is the optional
> SPEC-TYPE. This patch expands
> :custom-face ARGS... to (face-spec-set ARGS... 'face-defface-spec). If
> ARGS already has three elements, then the extra 'face-defface-spec
> argument results in the error.
> 
> ---
> 
> The second regression is:
> 
> (load-theme 'modus-operandi)
> 
> (use-package emacs
>   :custom-face (mode-line-active ((t :background "red"))))
> 
> In Emacs 30.2, the mode line turns red. In Emacs 31.0.90, there is no
> change to the mode line.
> 
> This is because with this patch, the use-package macro expands to
> 
> (face-spec-set 'mode-line-active '((t :background "red")) 'face-defface-spec)
> (put 'mode-line-active 'face-modified t)
> 
> whereas in the previous version it expands to
> 
> (face-spec-set 'mode-line-active '((t :background "red")))
> 
> which is equivalent to
> 
> (face-spec-set 'mode-line-active '((t :background "red")) 'face-override-spec)
> 
> When the mode-line face is themed (by modus-operandi in this case) its
> 'face-defface-spec is completely ignored, which is why there is no
> effect in the pretest. On the other hand, any face attributes set in
> 'face-override-spec are merged with the attributes coming from the
> theme, which is what happens in Emacs 30.
> 
> Hope that helps.

Thanks.

Besides the error in the first case, why do we need to support setting
Emacs basic faces via use-package's :custom-face keyword?  We already
have ample and convenient ways of doing that for these faces, so
adding one more, and making sure it works reliably in all the
permutations of the possible orders of setting face attributes and
loading themes is a hard job that maybe we don't need to do.

IOW, do these problems happen only with Emacs basic faces?  Do they
also happen with faces from packages that use-package actually loads
(which is why we have use-package to begin with)?

As to this part:

> The fragility of option 3 (or option 2 with 'face-defface-spec) as a
> solution to requirement 1 is that the :custom-face spec is completely
> ignored when the face is themed, rather than overriding the theme as
> desired.

Can you explain why isn't the current behavior TRT?  Why should
use-package override a theme in how it defines a face?  IOW, who said
that :custom-face is more important than a theme that the user loads?

I've added the other people who were part of the discussion of these
issues.  Given the lack of knowledge and the disagreements on what
should happen, I'm not sure we can come to an agreement, but we should
fix the error mentioned above.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 05:21:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 01:21:39 2026
Received: from localhost ([127.0.0.1]:55803 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdhxZ-0008M8-3N
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 01:21:39 -0400
Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:56492)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wdhxU-0008L8-Nb
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 01:21:34 -0400
Received: by mail-pf1-x42c.google.com with SMTP id
 d2e1a72fcca58-84536e2857eso1134093b3a.0
 for <77928 <at> debbugs.gnu.org>; Sat, 27 Jun 2026 22:21:32 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782624086; cv=none;
 d=google.com; s=arc-20260327;
 b=ch8KHoDCF5OIZ1pkdzhonXu4F0+ClrXgagyhkP/3n4XngM/3Y2Ofrdx1qPPlcHXmbF
 YmnmZr4HEwegCXFy0wwdwRp4D0xDEegsS+negx7nz6h+1I6ORFKzWenjDyABFOdnnyty
 mVkKrTd9SW8M9TM4u9KR5KXbHCzIaZzuZlR4YOJzXKP1g7ReQu0QaCRgdRxzOGfB6jI8
 rrZi6z0b+pf7RRIhHecRfRI/4hFVf64Lz7258gPJ3jAVn7e/sxVsyKAnaygcGgPa1WjU
 LpAazX5rc9iDYasT2xMVTDDR7gIlxUK8HN9Wp1t7Pi7/T+6/YtgXA9QoDcH6k2BAlte8
 nkFw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=OSD0rkHuo3678uIFUTC5taHOXO584aU6u47rGWOjXvk=;
 fh=cW8cuJhDEzl6C3jcrHHA3a2uVdVSn3oAVq378/8pIwM=;
 b=jzSFoJf1Oat8ZQ0gaYRxXGkbGNzqtvO8Nj186Q5sVqA0AdNBwMMeoDwEP6JaEMlqQT
 GKQ39dEAHw2W7JwjPTCOIioQImX6NjO17281FQXaxoLoEQjfFdpm4GoVPL3+CpEmwADc
 sHqV/45grhErlTBAblsgODWuL/k2Z3XNxaO4THwc79s3pl919vSOiskOx4A4lN6gUjz8
 exrXkgBG/10i8C6DzKA44s8cxX6Os8Fbpvemr1VXcXTVdMV28pjY92wk7NQEzJn2Ltwr
 c99hUXkDjXsNXafaCB0AaLxeSbZWpbV6qaSo2t25wCUqjGUS539FblwF8xNESGuBEqBQ
 cZWA==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1782624086; x=1783228886; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=OSD0rkHuo3678uIFUTC5taHOXO584aU6u47rGWOjXvk=;
 b=hQjg6juHwV2iaoGyXdShrFEz8QXJPhn7u6VeBwMLTxI/fGwOq/PENqmxdyG0mDyUMj
 hJKC8uR8MwuVYF73dSpYZdkd/lSiICxbCQdeTNuaN/kmEuLTw51bbU42xW7A4xkRCsDg
 iMKNubCOhxPMY+it9B5+hy8anzvT6vNHQ3eRXhhJ0syaM+UNnCjjoR1HZCzl4DD9NMla
 7iTCRX9vTmEVCv3r5qoD+lzDMIlvDiLevVjvlmYNc5//JMSwe7WECUlDihwwGq34jxbd
 Qxf0Q49Cw4+r71KmjyFtwWLLalrxxNHSLpWwT8y5ch2DCFljCVZz0XMGdZpqi3uzWBGs
 Z5JA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1782624086; x=1783228886;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=OSD0rkHuo3678uIFUTC5taHOXO584aU6u47rGWOjXvk=;
 b=Mz6FstjIJecbcO/UMgQeWVluJoMi/ekicq0jFLADMYFb9KVDEcxcUBi4Z8CsktoR+3
 pUGzUT8UHIiGw5KNEmrA1t3WQ+ydQ2eSqVOpsiQWk5Rsa7Xc8yUMWvZsesmXLLsFc4Oa
 30ptEmY4bqnD9A1C4u3hZs8nSdW1TpC2GeBDw78Pobl4jBjTukQPAZ3m7GPK0WqV+8LF
 yw9ng+vRXNjiuesY0ly9ZWBvPlmGeJGdTfZGVS50mt3nwHubwMiIwdMwumrJsXJkQifH
 AVQhlGY83567+DhKVLaJxq1twAB+oIQXzMRO6Gvv7vvL3RB89PU4S+j5hsKz9bgFwUoe
 o7MQ==
X-Gm-Message-State: AOJu0YyVzD5DKiD3JBJsVwnXOSdS/JdBpJq+DpYN9JFoArHYWHFCAS7g
 bRogyfv9iZn/oZzQ0jTigHEwgkyymM1sfIoOYucVR5NnuEFXotUt8vbcbWVScJgA0blICJPZa+G
 pZ+1qOSPxSZtsgsOfmD/zJc9mJQMlTfytrw==
X-Gm-Gg: AfdE7cl+8zdjfDuuhqPn4uC1x3O2ZWLjhXn9NLLBVKB+bMFCv5HLkM8P7NMe7OHlTLJ
 L5WaOTgOJkShg4Wp9JwQQhgdLzlp86IXWVFJLFIxMP6iBInCj3hG0tL36y3aqK7NxtpI5r1mD6O
 x/aV0uoTTHlfIeGREE6DlAmph6Eoa/05emgHqe8LqzOGaCWi3qf4RecKwgv+M2P0uGPofu6D7+S
 HZwbOpu9aO+ZwkVebEVdXtoIoBbCRjBNDpvl6WYcK5f6RxwBJ51jcP8a2VKZrcOlds/Jw==
X-Received: by 2002:a05:6a00:1485:b0:845:3d82:10fc with SMTP id
 d2e1a72fcca58-845b38e1eecmr13146708b3a.0.1782624086464; Sat, 27 Jun 2026
 22:21:26 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 <864iingu56.fsf@HIDDEN>
In-Reply-To: <864iingu56.fsf@HIDDEN>
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sat, 27 Jun 2026 23:21:15 -0600
X-Gm-Features: AVVi8CfGug-4SFDkVzEqCscahb01QvjwA7pPcML3E4yclVsWlakDSZ2Qv1zFHRI
Message-ID: <CAG8iPGzc8jHitFN7umJDGh4TGwSeGutKM2VYfeUtbuTJezdwtg@HIDDEN>
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

> What is the regression you encountered in the pretest, please?  Can
> you show a simple recipe to reproduce that, with explanations and with
> results in previous versions of Emacs?

Yes, here are the two regressions, evaluated in a scratch buffer from emacs -Q

(use-package emacs
  :custom-face (mode-line-active ((t :background "red")) face-defface-spec))

In Emacs 30.2, the mode line turns red. In Emacs 31.0.90, there is no
change to the mode line and the error
Error (use-package): emacs/:catch: Wrong number of arguments: #<subr
face-spec-set>, 4

In the previous version, the :custom-face keyword of use-package
directly passed its arguments to face-spec-set after ensuring there
were at most three arguments. The third argument is the optional
SPEC-TYPE. This patch expands
:custom-face ARGS... to (face-spec-set ARGS... 'face-defface-spec). If
ARGS already has three elements, then the extra 'face-defface-spec
argument results in the error.

---

The second regression is:

(load-theme 'modus-operandi)

(use-package emacs
  :custom-face (mode-line-active ((t :background "red"))))

In Emacs 30.2, the mode line turns red. In Emacs 31.0.90, there is no
change to the mode line.

This is because with this patch, the use-package macro expands to

(face-spec-set 'mode-line-active '((t :background "red")) 'face-defface-spec)
(put 'mode-line-active 'face-modified t)

whereas in the previous version it expands to

(face-spec-set 'mode-line-active '((t :background "red")))

which is equivalent to

(face-spec-set 'mode-line-active '((t :background "red")) 'face-override-spec)

When the mode-line face is themed (by modus-operandi in this case) its
'face-defface-spec is completely ignored, which is why there is no
effect in the pretest. On the other hand, any face attributes set in
'face-override-spec are merged with the attributes coming from the
theme, which is what happens in Emacs 30.

Hope that helps.

Thanks!

Roshan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 04:35:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 00:35:00 2026
Received: from localhost ([127.0.0.1]:55703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdhEQ-0002i7-6c
	for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 00:35:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40774)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wdhEL-0002h8-Ls
 for 77928 <at> debbugs.gnu.org; Sun, 28 Jun 2026 00:34:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wdhEG-0005Z7-75; Sun, 28 Jun 2026 00:34:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=2P718IQ1md2KjEEchgE+ewJy25YjAiwnU80K7nixdC8=; b=XxrKO79dwXtu
 eYUIY7FybWDIs0SkadoI9qFhbUKe6kaw9KCPJFyRVCkD1COC121hFRyaoApl33gCHaR032e14KcX5
 gVOGyunmxFwnODHuCcYjfM4dAG9tjbS8N8IKwdiF2DbDKxTq07bS26tsIQU7gc879Q4ODDj+EcIhO
 yWPq8WHv2rjELJUnmxHJndGahD5x/i+j2TZ+MavRT0dgQ3V7sU9HTBhqU84ewvEvMOE5EfdUoP8Gv
 KniyzL4tapWtsTuMTnA1UtNVLt3YZT841kTZm6VWtUX/9d9Tq+uUf5zE3xLYcVx5RGccBTswm5nbR
 leMeRbXQgJUDxJZUmY1+OQ==;
Date: Sun, 28 Jun 2026 07:34:45 +0300
Message-Id: <864iingu56.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roshan Shariff <roshan.shariff@HIDDEN>
In-Reply-To: <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
 (message from Roshan Shariff on Sat, 27 Jun 2026 21:55:33 -0600)
Subject: Re: bug#77928: Regression in Emacs pretest 31.0.90
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Roshan Shariff <roshan.shariff@HIDDEN>
> Date: Sat, 27 Jun 2026 21:55:33 -0600
> 
> I've unarchived this bug because I encountered a regression in the
> behaviour of :custom-face in the Emacs 31.0.90 pretest version. After
> looking into it further, I believe this patch doesn't quite fix the
> problem it is hoping to solve and also introduces another bug that can
> cause Lisp errors in user init files.

What is the regression you encountered in the pretest, please?  Can
you show a simple recipe to reproduce that, with explanations and with
results in previous versions of Emacs?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 Jun 2026 03:56:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 27 23:56:02 2026
Received: from localhost ([127.0.0.1]:55609 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wdgcg-0006h2-4A
	for submit <at> debbugs.gnu.org; Sat, 27 Jun 2026 23:56:02 -0400
Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:43494)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roshan.shariff@HIDDEN>)
 id 1wdgcZ-0006fL-7m
 for 77928 <at> debbugs.gnu.org; Sat, 27 Jun 2026 23:55:55 -0400
Received: by mail-pg1-x52e.google.com with SMTP id
 41be03b00d2f7-c88973b6965so1507345a12.1
 for <77928 <at> debbugs.gnu.org>; Sat, 27 Jun 2026 20:55:51 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782618945; cv=none;
 d=google.com; s=arc-20260327;
 b=Dzup2dF760yu65nhGAEoxTQ0junQ3ramHDpEQw+a0MeHDUkpG9MxEt4BjIlLYacbxE
 WR14Eu9f7gOJpnbJfSUozKWGubNLXRZ2GZcD/4BbBWNwEda+Z45sWIzL5FhZMD9sdB88
 M5HCshRpyCDrQ9twQ3EIPZiL4jZ488C951DSfdDONH1dV6wns7kUNqlo4gFjAuJL6zu+
 7HV929O8t2NZT3+nbEp2JqldmOUwnDkTP9lxCABdsP9yoGN4wu6jZz6l9TdeMEcYAZ3u
 R3Uur2NeEgpG0BWu9Cf1kA4v/oCbQqkEJntJ57+89BUW/CAn0CI2Ku22j7l0+gNacYGF
 Sqlw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:dkim-signature;
 bh=wek8GGKLAdmZVTuECvs4Ru1vx5HSv9ks4dlnQE9UeW8=;
 fh=t4Wa5HQfVKXFJgCgm1OGxWGd0ZQ1uKgUBza3klby/yc=;
 b=cw6JRGy46aa3lvBonyvw8O3r1kFrGv6C2vmkA3O/yO0D078kwD9wnmcTqJQEN6r9gt
 gwBSGTUa680kd9Kin9KcsGT3e0+awpSg20523KWJYdEw50ok8U+3w9NoeSxIJ9eFyqqA
 qOd1HF0q0lhEzRVqeZGpZe0yX8WQkX+gTn01ohZXyFP/TamgUxxm4SUhv1dqpxrr637R
 MxZpawaG2YwDv4Y6DRhONF/hUO3YE9c4dk6nh2Z2DhoMZ8wY9JQ+8ZIP8soNnrqipcrD
 s3lNaiV5ZsaJYY1IacU+rFs/ZmlRaynBHLoQRoR3hIe+JZKRYeyg4cSZjXxpEXl/x++M
 wUWQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1782618945; x=1783223745; darn=debbugs.gnu.org;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=wek8GGKLAdmZVTuECvs4Ru1vx5HSv9ks4dlnQE9UeW8=;
 b=Y98IH1llrAC3O+akvR/1xNEOjgidf3x3VG0dnPmB7v3U0KDclqV+2D0GyQu+bcV08m
 hQpa1JiuxCbBk30Up53TApY9l0i5dmBHlLI9++KJU+IhYWja+yRQkQhNMKPFPQm2YJTy
 v9bAVwPqVN8MpTccltQrZGA9MsqA5rBhyPwxChI5KX7HIRYAC5VbRVWfXC8W+gZbSsdj
 WYPIezNOPmwpmgHApBVYwe8qmhLXgG0tH+AWvNT1/7zx0MVsoVLIxD7kQNLCXJKRMN9Z
 o7y9LE8StdnT2gIkHOYHO1Zc7VdmrY0zGQnPj2gKP3+MrBKWhc5AkDByBrWtIcaluAF6
 2pag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1782618945; x=1783223745;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=wek8GGKLAdmZVTuECvs4Ru1vx5HSv9ks4dlnQE9UeW8=;
 b=GbqR+1V2f0V7jDtGFkkTt8TPfYp5NTITEYHYlugg3GRMqLU9aGnglqvhC5yCWB3/kN
 dvyDn4dwiQCQckewOCkWXtsJnHEy08OEi4mBGpiMDuwW0TyjsUIIonKncerExX2a7Z8Q
 2ia7OZtoe7edn086pyO+tvbUVhBR7IakuKAUMAWL1tMTUc6y2hiKfocxWdRkZR1e87HW
 AOOzFs7DhTaYklSKF3K2i7Eq/bM8yYAD9TpCsdwxAXgHKmeFto56f9vwig+VQUv3DauC
 /ShsF3NhVM5V5uykGE28pQ+eH01hVG47LzcdgyOmnldT4izuNG0MVSaGkuKNK8KuH8S4
 U6Yg==
X-Gm-Message-State: AOJu0YzF8gsoHXG042fqlnfv9MYKv8Bk6NFE+rmO1wGEEYNPjH70xbW4
 5MS8Ut9uiS94Tz8xXW8+p8UwjTUIAIJvue03NyoK+S2uouqFkjUKTC6T69RvGvMqY3m0Qbk4Xko
 S8l6XD9oRPfwpPrNEfC9P/47YgEDl9aghfAuJ
X-Gm-Gg: AfdE7clhgg9kfeWBy59gIlOSyJy+D6IPD5qKHXzXDkCHtjc9w0kFSwB8//C9VOnnzZR
 xKhukoxN5rvf8Owf26w6e9nhD46vzI/fmpZU+aPT5vqDnqdhAmKAiAT+bn68TtXwXPvs4d3gCFR
 uHSxqls8Hw9JPn3BVNF5Wxj5u0YXe8mwJmlv95z8k+cWHHR0PmUv2PG22UUkw/QQeMf6iOCn1nt
 E7f4Jftfvd8QGZpeg0lAXOkdBt9HqQ9acFuqWsC+7T5+pIHRzFFl87dZfebslhDF/bvCA==
X-Received: by 2002:a05:6a00:430c:b0:842:1be8:f9d3 with SMTP id
 d2e1a72fcca58-845b461c5e2mr11506579b3a.23.1782618944578; Sat, 27 Jun 2026
 20:55:44 -0700 (PDT)
MIME-Version: 1.0
From: Roshan Shariff <roshan.shariff@HIDDEN>
Date: Sat, 27 Jun 2026 21:55:33 -0600
X-Gm-Features: AVVi8CfR4IGmLje19DrkWQcwbwC5gG2L5NPotTCaFFs1hll1dB9u9m4-HfnruBc
Message-ID: <CAG8iPGz_obtoAHDycGsaqR0kf7vugS3WLMWRsa+KpJUuziYXAA@HIDDEN>
Subject: Regression in Emacs pretest 31.0.90
To: 77928 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 77928
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

I've unarchived this bug because I encountered a regression in the
behaviour of :custom-face in the Emacs 31.0.90 pretest version. After
looking into it further, I believe this patch doesn't quite fix the
problem it is hoping to solve and also introduces another bug that can
cause Lisp errors in user init files.

I see in this bug report that there's been lots of confusion about
what the intended behaviour of the :custom-face keyword should be. I
looked at the code in use-package, faces.el, and cus-face.el to
understand the situation, and I'll summarize it here so that this
problem can hopefully be fixed before the release of Emacs 31.

* How are face attributes calculated?

This is documented in face-spec-recalc in face.el. Face attributes can
come from three places, which are properties of the face symbol:
1. 'face-defface-spec, usually only set by defface or
custom-declare-face, and now by this patch;
2. 'theme-face, which is a list of (THEME FACE-SPEC) lists coming from
enabled themes or the Easy Customization interface;
3. 'face-override-spec (set by face-spec-set when its third argument
is omitted; the previous default behaviour of :custom-face).

'face-defface-spec is only used if 'theme-face is nil, i.e. the face
is not customized by a theme or through the Easy Customization
interface. Otherwise, 'face-defface-spec is completely ignored.

On the other hand, if 'theme-face is non-nil, then it is a list with
an element for each enabled theme (potentially including the special
'user theme for user customizations). Then the attributes of all these
themes are merged in reverse order, i.e. higher-priority themes appear
earlier in the list, and if the 'user theme appears it is always
first.

Finally, 'face-override-spec is applied after 'face-defface-spec and
the specs listed in 'theme-face.

* What does it mean to merge faces?

The process of merging face attributes from multiple specs (as
described above) has nothing to do with Emacs' face inheritance
mechanism. The :inherit attribute is not treated specially, and
neither is any attribute with the special 'unspecified value. So, for
example, suppose 'face-defface-spec is '((t :background "red" :inherit
default)) =E2=80=94 the face has a red background and inherits all other
attributes from the default face. Then if 'face-override-spec is set
to '((t :background unspecified)), the merged face spec will be
'(:inherit default :background unspecified) =E2=80=94 the background color
will now be that of the default face, just like all the other
attributes.

This merging of face specs is done implicitly by face-spec-set-2,
which is called in turn by face-spec-recalc for each spec that needs
to be activated. The actual work is done by set-face-attribute.

* How does custom.el work?

The main entry point to custom.el for our purposes is
custom-theme-set-faces, which is called by themes to assign attributes
to faces. User customizations are also applied by this function under
the special 'user theme (this is all custom-set-faces does). The end
result is that the face specs from all enabled themes, as well as any
user-customized face specs, appear in the 'theme-face property of the
face symbol and are merged together as described above.

The 'user theme mostly behaves like any other theme, but it is treated
specially in one way: Whenever any theme is enabled, the user theme is
also enabled immediately afterwards so that it takes precedence. It is
then removed from custom-enabled-themes, so only "real" themes appear
in that list.

* How should use-package :custom-face work?

The intention of use-package's :custom-face keyword (as explained by
John Wiegley) was to behave just like the Easy Customization system,
which is to say a call to custom-set-faces (which is how user
customizations are persisted in the user's custom-file). This would
mean that
- When a user customizes a face, the face's defface spec is completely
ignored (just as when any other theme is enabled).
- The user's customizations are merged (as above) with those of any
other enabled themes, and with higher priority than any theme.
- Only 'face-override-spec can potentially override the user's customizatio=
ns.

Any customization done through :custom-face should differ from
custom-set-faces in only one way =E2=80=94 "Apply and Save" in the Easy
Customization interface should not save it into the user's custom-file
as an explicit call to custom-set-faces.

* How has use-package worked in the past?

Before 2022-10-15, :custom-face expanded to a call to
custom-set-faces. It thus had the ideal behaviour described above,
except that the :custom-face spec would get saved into the user's
custom-file. This was reported as a bug and "fixed" in
https://github.com/jwiegley/use-package/pull/1004.

The fix was to expand :custom-face into face-spec-set instead of
custom-set-faces, thus putting the customization in
'face-override-spec instead of 'theme-face. Recall that
'face-override-spec has the highest priority, overriding even the
'user theme. However, most users probably customize a face either
through Easy Customization or a use-package block, so the question of
priority between them was inconsequential.

However, if you don't use the theme system at all, or use a theme that
doesn't customize a face, then there is a big difference between
putting a face spec in the 'user theme vs. 'face-override-spec. The
former results in the defface spec being completely ignored, whereas
the latter doesn't. This only happens when no other themes are
enabled, so that the 'theme-face property is nil. The observable
behaviour is that any attributes not listed in the use-package
:custom-face spec are taken from the defface spec (instead of being
taken from enabled themes and defaulting to 'unspecified, as before).

This change in behaviour was reported as a bug
(https://github.com/jwiegley/use-package/issues/1008) by a user who
was not expecting any missing :custom-face attributes to come from the
defface spec. Presumably, this user did not customize any themed
faces, or they would have experienced their customization being merged
with the theme's.

This second bug was resolved by a change
(https://github.com/jwiegley/use-package/pull/1009) which still
expanded :custom-face to face-spec-set, but this time with a
configurable SPEC-TYPE argument. You could omit that argument or
specify 'face-override-spec to get merging, or specify
'face-defface-spec to "override" the face (which actually just
replaces the face's original definition with yours).

The next change was the patch in this bug report, which appends
'face-defface-spec to the face-spec-set argument list.

* What is the immediate resolution?

Apart from anything else, this patch introduces a new bug: because
use-package-normalize/:custom-face was not updated at the same time,
it doesn't prevent the user from still passing in a third SPEC-TYPE
argument to :custom-face, which then results in a "too many arguments"
error in the call to face-spec-set.

If this patch is reverted (the most conservative change) the reported
bug can still be worked around in two ways:
1. Call (face-spec-set FACE nil 'face-defface-spec) before using the
:custom-face keyword as usual.
2. Explicitly provide 'face-defface-spec as the third argument to :custom-f=
ace.
In both cases, one must avoid customizing the face by enabling a theme
or through Easy Customization.

* What is the ideal resolution?

From looking at all the bug reports down the line, it appears that
users are relying on two different behaviours:
1. Ignoring all face attributes set by defface and replacing them with
your own (or leaving them 'unspecified).
2. Overriding certain attributes of the face, with the remaining
attributes coming from either the defface spec or an enabled theme
(mutually exclusively). This is what Easy Customization allows (except
that it drops the defface attributes completely).

Nobody seems to have asked for, but it might be reasonable to offer:

3. Ignoring all face attributes from defface or enabled themes, and
replacing them with your own (or leaving them 'unspecified).

The implementation of :custom-face in use-package has gone from
custom-set-faces to:
1. face-spec-set with SPEC-TYPE omitted, defaulting to
'face-override-spec (achieves requirement 2 but not 1).
2. face-spec-set with a configurable SPEC-TYPE argument.
3. face-spec-set with 'face-defface-spec (this patch; rules out
requirement 2 and only achieves 1 in a fragile way).

The fragility of option 3 (or option 2 with 'face-defface-spec) as a
solution to requirement 1 is that the :custom-face spec is completely
ignored when the face is themed, rather than overriding the theme as
desired.

We should add some way to achieve requirement 1, which is actually not
straightforward even outside use-package. We could then decide how to
expose this capability through use-package, maybe through a new
keyword. It would be the moral equivalent of (face-spec-set FACE (cons
(cons 'default face--attributes-unspecified) SPEC)
'face-override-spec).

I apologize for the length of this message, but I hope it answers the
questions that Eli Zaretskii and others raised and leads to this
problem being fixed properly. In the future, it might also serve as
documentation of how the customization system interacts with faces.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.
bug unarchived. Request was from Roshan Shariff <roshan.shariff@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 22:46:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 18:46:50 2025
Received: from localhost ([127.0.0.1]:53200 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOOmw-00020v-0p
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 18:46:50 -0400
Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]:38201)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uOOms-00020e-LB
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 18:46:47 -0400
Received: from phl-compute-04.internal (phl-compute-04.phl.internal
 [10.202.2.44])
 by mailfhigh.stl.internal (Postfix) with ESMTP id AFF152540103;
 Sun,  8 Jun 2025 18:46:40 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-04.internal (MEProxy); Sun, 08 Jun 2025 18:46:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1749422800; x=
 1749509200; bh=ZVLsM7HHcdY4YzpcoNC3e6ozDfjxjFQpERPbsEXGogw=; b=p
 5g06LDiprMqWoojHKj+7IcF/kBIJ894Q6PGptuPROi+846w+QT8kZdZjxoMvx7op
 jb0b61HlDRo3GYwurukPw4mqG9M7/AzrTUc/mK17sxwzR3BUL+jM3tkaX/wYsXZZ
 m8PFu1xqQY3BLGeUZn3f35r45Zjp179OZHQAQ055kNS8WCt/iIigaE9ny5oIK7h2
 Iw14KS/5Bpw5ibT0vSexnfrHc1Moqi4yC7TznRjgbQYoX1gXTO1SIsaWBKa6lerT
 gwqJICJIRIRLYlhQlsq+tVrDkzx6jYGXXHJEDGJ4k1+yDObZWYcAPW4iNaClJmoP
 tIy7UxObJKRsD240bEqwQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1749422800; x=1749509200; bh=ZVLsM7HHcdY4YzpcoNC3e6ozDfjxjFQpERP
 bsEXGogw=; b=TA9Mln7MbCSnR5tZjBPhIeAPTFTFiYM9hDhJ6rd21uoFhG7mIq3
 c2XyOk62vN8xxMsENnnj90ec/8FvcRxP6PVcFr7MubuQiUdonprx1BhFJ4ZFtGQX
 f64auab1P5f7iyCt71lmHxuToPe1a75WYQ+lJ7eSjxdrh+QXYSYhD9/PP8GTzehx
 meK40G0sSE03wolp/pIhhThlxit5kjao4zHhK78t1q3901aNABBcfc9sc1mbuQhu
 vDGfKieP6FB9RbIwyxLMnRod8RHZiCUpcmCfhcVwyxxUpuXfKmoHLcuT7Z7aDMBT
 Z+Ee2OTjnvvfyzG0XA1GIfmo4YysxKgH7nQ==
X-ME-Sender: <xms:0BJGaNjg47nsvsJZe_R6tZethXkGsfj0tgEDsqTp3PRYPpEsc7ri2w>
 <xme:0BJGaCDoHsE179QDRNMkvnVs4Yvds91DRg3y4Q2WhSM5HD4OSn1sfFOhosJCR3tqu
 5t-fP2dkEkYbnI3PZY>
X-ME-Received: <xmr:0BJGaNHtlbNu0XM0b08rUNO59wXc4uNl0vGUeScni_2MV1MraOgn6kk0PWpWneJUs7C5mxDP1_uM1t6sr0oAzXx9almtinY>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdekgeejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecu
 hfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehsthgvvhgvnhesshhtvggsrghlihgvnh
 drtghomheqnecuggftrfgrthhtvghrnhepvdekheekgeelheehgefgudelkeethffhgfeu
 ffetkeegtddvfeduuddttdejjedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepshhtvghvvghnsehsthgvsggrlhhivghnrdgtohhmpdhnsggp
 rhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehshhhivghlug
 hssehmshhrlhdrtghomhdprhgtphhtthhopehjohhhnhifsehgnhhurdhorhhgpdhrtghp
 thhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeejledvkeesuggvsggsuh
 hgshdrghhnuhdrohhrgh
X-ME-Proxy: <xmx:0BJGaCR0D-qX10xnlFZCx8wWpCMSM4xT1v39vjVsEifkLoT9zSSFGg>
 <xmx:0BJGaKyPYBBLzrae_G77YSbrzqkbSVhDrYO6CVqharWlrIcD0JePfA>
 <xmx:0BJGaI5QqNUPkdOXx9ixGaHNMeCLT1Vo9Y_jR6SK9ij7b9TFDoiIcQ>
 <xmx:0BJGaPxxjwpMmzYIeCQL2f9eceuqMV3VlAbdUsKSVAlmmDsqbG7uyQ>
 <xmx:0BJGaMKQpLeEmI5F5TkzTpTzKAIn9YRsDQqUxaH6DvWoOTMTsS8UXqEN>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 8 Jun 2025 18:46:39 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: Michael Shields <shields@HIDDEN>, John Wiegley <johnw@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <87o6uyyr13.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
 <m21prud5u7.fsf@HIDDEN> <871prufbsx.fsf@HIDDEN>
 <m2wm9mazyx.fsf@HIDDEN>
 <CAMPZLESzF7=RFu5qpUnEqUOBd5CmAiK9HqoNU9GDyzamGH2o7w@HIDDEN>
 <87o6uyyr13.fsf@HIDDEN>
Date: Sun, 08 Jun 2025 15:46:38 -0700
Message-ID: <87bjqxsvg1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Steven Allen <steven@HIDDEN> writes:
> The former (custom theme) sounds like what use-package does with :custom
> (it defines a use-package theme). Maybe just implement :custom-face the same way :custom is
> implemented? I.e.:
>
>
>     (defun use-package-handler/:custom-face (name _keyword args rest state)
>       (use-package-concat
>        (if (bound-and-true-p use-package-use-theme)
>            `((let ((custom--inhibit-theme-enable nil))
>                ;; Declare the theme here so use-package can be required inside
>                ;; eval-and-compile without warnings about unknown theme.
>                (unless (memq 'use-package custom-known-themes)
>                  (deftheme use-package)
>                  (enable-theme 'use-package)
>                  (setq custom-enabled-themes (remq 'use-package custom-enabled-themes)))
>                (custom-theme-set-faces
>                 'use-package
>                 ,@(mapcar
>                    #'(lambda (def)
>                        (let ((face (nth 0 def))
>                              (spec (nth 1 def))
>                              (comment (nth 2 def)))
>                          (unless (and comment (stringp comment))
>                            (setq comment (format "Customized with use-package %s" name)))
>                          `(backquote (,face ,spec nil ,comment))))
>                    args))))
>          (mapcar
>           #'(lambda (def)
>               (let ((face (nth 0 def))
>                     (spec (nth 1 def))
>                     (comment (nth 2 def)))
>                 (unless (and comment (stringp comment))
>                   (setq comment (format "Customized with use-package %s" name)))
>                 `(custom-set-faces (backquote (,face ,spec t ,comment)))))
>           args))
>        (use-package-process-keywords name rest state)))

This version has a bug: if a new theme is enabled (e.g., the user
switches themes at runtime), that new theme will take precedence over
this "use-package" theme. This differs from the behavior of
`custom-set-faces' which ALWAYS takes precedence.

If there's a way to use `custom-set-faces' with no custom themes, that
would be better.

I CAN fix (hack) this with a hook to reapply the theme as follows:

    (defun use-package--reapply-theme (theme)
      (unless (or (memq theme '(use-package user))
                  ;; prevents recursion
                  (memq 'use-package custom-enabled-themes))
        (enable-theme 'use-package)
        (setq custom-enabled-themes (remq 'use-package custom-enabled-themes))))
    (add-hook 'enable-theme-functions #'use-package--reapply-theme)

This mimic's the behavior of the "user" theme (the theme used by
`custom-set-faces') in `enable-theme' (reproduced below):

    (defun enable-theme (theme)
      ...
      (unless (eq theme 'user)
        (setq custom-enabled-themes
    	  (cons theme (remq theme custom-enabled-themes)))
        ;; Give the `user' theme the highest priority.
        (enable-theme 'user))
      ;; Allow callers to react to the enabling.
      (run-hook-with-args 'enable-theme-functions theme))

HOWEVER, it will cause the "user" theme to be applied twice (because
we're calling `enable-theme' from within `enable-theme'), which isn't
great.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 19:25:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 15:25:40 2025
Received: from localhost ([127.0.0.1]:52963 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOLeG-0007Cp-7X
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 15:25:40 -0400
Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]:59977)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uOLeC-0007Ca-Rj
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 15:25:38 -0400
Received: from phl-compute-06.internal (phl-compute-06.phl.internal
 [10.202.2.46])
 by mailfout.stl.internal (Postfix) with ESMTP id 39EA1114016F;
 Sun,  8 Jun 2025 15:25:31 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-06.internal (MEProxy); Sun, 08 Jun 2025 15:25:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1749410731; x=
 1749497131; bh=Vsa/kjCuhXJ/6fCeHcuRj+CBxU4/2TcLE86F/XqXWTk=; b=Z
 +yKBWQJuoSNHFC52bZilB1yzSam8iuXlYLH+cW3F7imT4Dagv3gOZ5xVGuY2km6s
 wGjgquvelRI71b8DUFLMVrY5pKEJI0VbaNaW98qnKQNlfT1NhXVUv7fpGrFTjuOL
 QSi2KatIqALx64Q4beDy6cndYMAJ4YLFVuqF2dzgz40+dH0ca5tUqafCN8r+e71T
 8EZoGkU/GS4CpYYK0nHFzNHnrBvc57vfKg5QYbxN6dzTO3rf8OlFN7YtHJ75ZZtr
 DDuBnyWigR9JtKQLgXJNgfk8CyQtMyPi6u/ABuMG2/oHt/gGsbVkT6+hhnhxkba7
 9PJpQ7E8EiPQbUiJRxo6g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1749410731; x=1749497131; bh=Vsa/kjCuhXJ/6fCeHcuRj+CBxU4/2TcLE86
 F/XqXWTk=; b=TXZT0W8pcm/O1pYdr9eY2ZBQEKrSuyWLQC5CNWtA0R1CikmMwqU
 u2TKJ4AFu+Wm3FOLhCQe0EkOmjMjCxGYlm3xuNO/0qHjUeX/dV6QyaXvjhMBkDzr
 0/PGKm0PxnPrxVhwGfK3dSKaw1GWZJUH07JBZFYkGrbAZ9iuxxJ7gbO7Ys+4UpBW
 Zq1Kh8wQeHgLmkbB5osnviW+YE9L6cCLdLfmBBK/v+tw8/chVX9j+A4/f9hwBL4I
 cOa28nUokuaDU0jrJZgP+wZAYh7kER+L0AzvKvzGsrhXZMQ34QhT73qWgnTlKpsf
 ByKj5iLp2S3HIxa0jWLZybJyTUfoG0VBeSw==
X-ME-Sender: <xms:quNFaKpRAPYyRXSSRdCPNBmwH9B1AL7L2O5jbVPJ_vmwr8p-4WK35w>
 <xme:quNFaIqdLwRsHKE-sovjoBekta4sR-m8PrzeOGKPZgEKJTdeBVTo9OceMoKyg20AU
 PcPi4UpAlySs3iF3Zw>
X-ME-Received: <xmr:quNFaPNnaG5zFt3sq_Y3Cz_uOdw9FJgYRLfeF-ZufsXgU8y_CX6U-zVWgRiQBImVk4wpdDiAhyuVJQvxeh-fBlYyr_BGXiw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdekvdejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecu
 hfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehsthgvvhgvnhesshhtvggsrghlihgvnh
 drtghomheqnecuggftrfgrthhtvghrnhepjefgueeuuedtieekffeuveffjeeuffegkeet
 hfehvdffhfegtddvgeeiheegjeevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenuc
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsthgvvhgv
 nhesshhtvggsrghlihgvnhdrtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmh
 htphhouhhtpdhrtghpthhtohepshhhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpthht
 ohepjhhohhhnfiesghhnuhdrohhrghdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh
 dprhgtphhtthhopeejjeelvdekseguvggssghughhsrdhgnhhurdhorhhg
X-ME-Proxy: <xmx:quNFaJ4AwKKROkUb0QejKINV184Lt29U9NCaj1luYOdHadkFypd4RA>
 <xmx:quNFaJ77OZ4zfMpcJTfNVwTeYCLXPv9LPN_UkX_BTe8ZmipuQHuqjg>
 <xmx:quNFaJiyTvEF3q96vKXNaZD-du8Y45Xu5Dh-unITlNbyifb2nrOtnA>
 <xmx:quNFaD4stFkEdtp_368ddFEKe-dUe4S23QSpKaVvUrq7eQxl783Jbw>
 <xmx:q-NFaCSfKwyeMMq6z7xE8UcDnxPz9DtigZf7kHYZB-YqWT2PCC-M8g9j>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 8 Jun 2025 15:25:30 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: Michael Shields <shields@HIDDEN>, John Wiegley <johnw@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <CAMPZLESzF7=RFu5qpUnEqUOBd5CmAiK9HqoNU9GDyzamGH2o7w@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
 <m21prud5u7.fsf@HIDDEN> <871prufbsx.fsf@HIDDEN>
 <m2wm9mazyx.fsf@HIDDEN>
 <CAMPZLESzF7=RFu5qpUnEqUOBd5CmAiK9HqoNU9GDyzamGH2o7w@HIDDEN>
Date: Sun, 08 Jun 2025 12:25:28 -0700
Message-ID: <87o6uyyr13.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Shields <shields@HIDDEN> writes:

> I don't use themes either, but I can describe my use case.
>
> I refactored much of my Emacs config into use-package. Most of that went straightforwardly into :init, :bind, :hook, etc. Custom variables moved to :custom, and custom faces moved to :custom-face. But this caused some faces to change, because custom-set-faces effectively replaces the face definition, while :custom-face overlaid it.
>
> If I understand the history, :custom-face initially called custom-set-faces, so it behaved identically to having custom-set-faces in custom.el. But this confusingly resulted in :custom-face definitions being written to custom.el as if the user had configured them through M-x customize. https://github.com/jwiegley/use-package/pull/1004 fixed that, unintentionally also changing the semantics of :custom-face.
>
> With my patch applied, :custom-face should be equivalent in behavior to custom-set-faces, but without the settings appearing as if they were user-set.

I think I've found one of source of confusion: `custom-set-faces' DOES
overlay/merge faces, but only for themed faces. For unthemed (default)
faces, it resets the entire face spec (as you describe).

> I don't know how this should interact with themes. Maybe the right approach there is to define a new personal theme and configure faces there instead of using :custom-face. Or maybe it is simplest to call face-spec-set explicitly from :config.

The former (custom theme) sounds like what use-package does with :custom
(it defines a use-package theme). Maybe just implement :custom-face the same way :custom is
implemented? I.e.:


    (defun use-package-handler/:custom-face (name _keyword args rest state)
      (use-package-concat
       (if (bound-and-true-p use-package-use-theme)
           `((let ((custom--inhibit-theme-enable nil))
               ;; Declare the theme here so use-package can be required inside
               ;; eval-and-compile without warnings about unknown theme.
               (unless (memq 'use-package custom-known-themes)
                 (deftheme use-package)
                 (enable-theme 'use-package)
                 (setq custom-enabled-themes (remq 'use-package custom-enabled-themes)))
               (custom-theme-set-faces
                'use-package
                ,@(mapcar
                   #'(lambda (def)
                       (let ((face (nth 0 def))
                             (spec (nth 1 def))
                             (comment (nth 2 def)))
                         (unless (and comment (stringp comment))
                           (setq comment (format "Customized with use-package %s" name)))
                         `(backquote (,face ,spec nil ,comment))))
                   args))))
         (mapcar
          #'(lambda (def)
              (let ((face (nth 0 def))
                    (spec (nth 1 def))
                    (comment (nth 2 def)))
                (unless (and comment (stringp comment))
                  (setq comment (format "Customized with use-package %s" name)))
                `(custom-set-faces (backquote (,face ,spec t ,comment)))))
          args))
       (use-package-process-keywords name rest state)))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 19:10:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 15:10:25 2025
Received: from localhost ([127.0.0.1]:52944 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOLPU-0006Y4-Io
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 15:10:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59100)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uOLPR-0006Xn-L8
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 15:10:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uOLPL-0005fq-Ji; Sun, 08 Jun 2025 15:10:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=A0hxVky+DzYWmXar6PmpZCjsf6H4tR1vrjZeQlYY6HQ=; b=pLF+rVqwHME4NNnhEdTz
 fdUcwN43dUvJJEY02d9+SGUVBeIjNNZvSK+1TY+7t22aAsllmAwc7vUN6NXBA/bf7LhD2IYGA2hMY
 XrYXlp6ZzCPlT9h47yW2XWCUMaqpG9IzjTJ5C1Hu2VHYvmr2+leRmAUPRmVxRdNm+SRANUcQOQ5mg
 Krw1JfQiazAFfPzE0hJvBmOhWM05/uYTuJ6Uv2BBTrK1w6PD64hzBf4zahM3+xGtVIeqUWt+F4X6E
 PUHKnEXuo8gZbif7AoUTkOecyxdDR5A40sGGoIbdUAXNn717CPewoB60DOqDe7Bv8mxkrOPnz/qRh
 vLbJLT4WMdwIRg==;
Date: Sun, 08 Jun 2025 22:10:03 +0300
Message-Id: <86v7p6f3sk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kristoffer Balintona <krisbalintona@HIDDEN>
In-Reply-To: <CANVbq5nnV5PiVZQBuAHDORYLGOVp=_-miwoyB3aQfNjaU2GSvg@HIDDEN>
 (message from Kristoffer Balintona on Sun, 8 Jun 2025 11:40:55 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN>
 <86iklmxppf.fsf@HIDDEN> <87msayc8l7.fsf@HIDDEN>
 <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN>
 <86qzzvh3r1.fsf@HIDDEN> <m21prud5u7.fsf@HIDDEN>
 <871prufbsx.fsf@HIDDEN> <m2wm9mazyx.fsf@HIDDEN>
 <CANVbq5nnV5PiVZQBuAHDORYLGOVp=_-miwoyB3aQfNjaU2GSvg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, steven@HIDDEN,
 shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kristoffer Balintona <krisbalintona@HIDDEN>
> Date: Sun, 8 Jun 2025 11:40:55 -0700
> Cc: Eli Zaretskii <eliz@HIDDEN>, shields@HIDDEN, 77928 <at> debbugs.gnu.org
> 
> On Sun, Jun 08 2025, John Wiegley wrote:
> 
> >>>>>> Steven Allen <steven@HIDDEN> writes:
> >
> >> It would help to better understand how it was intended to behave:
> >
> >> - Should :custom-face override the theme or should the theme override
> >>   :custom-face?
> >
> > I’ve never used themes before, so I wasn’t thinking of them at all when the
> > feature was added. Someone who uses themes a lot, and customizes them, should
> > be asked this question.
> 
> FWIW, I haven’t been following this thread closely, but as a user who
> hadn’t thought at all about the technical sides of things, what I simply
> expected of :custom-face was that it be applied on top of any existing
> theme customizations, not that it override them.

Thanks, but what is your mental model of "applied on top" vs
"override", in the context of face settings?  Unless you explain that,
I cannot understand what are your expectations, because "applied on
top" and "override" are not useful descriptions when talking about
faces, due to the fact that a face has quite a few attributes, and
some of them could be inherited from other faces.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 19:04:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 15:04:29 2025
Received: from localhost ([127.0.0.1]:52933 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOLJl-0006Dj-A9
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 15:04:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56322)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uOLJi-0006DT-AH
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 15:04:27 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uOLJc-0004gx-F4; Sun, 08 Jun 2025 15:04:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=+vCFfDQ6itoESng/7yvCfO0JmR8CpQXhdmcaN0cLAho=; b=G0W2CgJqaBFj1eXZ4PmG
 luv9RHvH38U+0/Qqg5eii9IvbbJtihCdcZQZvzE5nxrx3diyepVUkTKQ7/zibETXrZQQrXmcgdQ9o
 MBx/wCOfDqO1fdCk251qkj8VullRY3THFXJHMjtOI3Dr3DMNz1zpVwBkFLraQMWk4x3iIRYfPQ10p
 R7ejjmgDvHIYLaNg1epD8owrxKUiWh9NbIHCDUDKBy3fDW1VWUGm8YUA4BkjMpr8jjXXFp6ti4c7e
 FkpDMx6XmBU8dxc8MtRBEDZDEy++aV6ubtH8/e4PuLCOohSjkb5gF7sTN7lCBNUYw/9cN1eAZ+75z
 As9LuOFf1KucUA==;
Date: Sun, 08 Jun 2025 22:04:17 +0300
Message-Id: <86wm9mf426.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: John Wiegley <johnw@HIDDEN>
In-Reply-To: <m2wm9mazyx.fsf@HIDDEN> (message from John Wiegley on Sun, 08
 Jun 2025 10:46:14 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
 <m21prud5u7.fsf@HIDDEN> <871prufbsx.fsf@HIDDEN>
 <m2wm9mazyx.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, steven@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: John Wiegley <johnw@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  shields@HIDDEN,  77928 <at> debbugs.gnu.org
> Date: Sun, 08 Jun 2025 10:46:14 -0700
> 
> >>>>> Steven Allen <steven@HIDDEN> writes:
> 
> > - Should customizations made via :custom-face be merged with the original
> >   face definition (as with `custom-set-faces') or should they completely
> >   replace the underlying face.
> 
> I would expect the behavior to be whatever `custom-set-faces' does. Since
> use-package is only intended to expand to “best practice” Emacs Lisp, it
> shouldn’t add any new behavior in my opinion.

Then IMO :custom-face should expand into a call to custom-set-faces.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 18:41:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 14:41:06 2025
Received: from localhost ([127.0.0.1]:52913 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOKx8-0005Fi-Iy
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 14:41:06 -0400
Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:56660)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <krisbalintona@HIDDEN>)
 id 1uOKx5-0005F4-8E
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 14:41:04 -0400
Received: by mail-lj1-x232.google.com with SMTP id
 38308e7fff4ca-32addf54a00so22062321fa.1
 for <77928 <at> debbugs.gnu.org>; Sun, 08 Jun 2025 11:41:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1749408057; x=1750012857; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=rGUFv7sG+289eBiJdaO9gfeIk2IkCadaNw4bVzC6pBg=;
 b=M+9P7dmqoVUeqcuDJL4ZmOjoiSbJHoyT/QkNcTvOFHbLO4Q7aAz0AD1gVRZn0GxoXZ
 0pQwfw41L0tUsLv6rCiqjiarAZLFRxZ096vSZDHZrLPTG4T+DPtsLudOQWBg9VdJu6Dv
 HMaXWxomqMVeqbsRTN2xGVqyefwgVg91HsB8ABWa8+/rR6jESoVDWSbV/Bb0sRe3d1Uz
 1qCm4wiBCv0tyYkK75THyklIaoKxW7PPvVfhUtkzMagj+viSDaquztSyKGWADqBwtCAd
 jRQvic4aCd2T99nFmVh4/dLyRcbzV52xNol0+YupK7x7KwlWfS7gVYrWsoKvV/yGVL1M
 jSfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1749408057; x=1750012857;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=rGUFv7sG+289eBiJdaO9gfeIk2IkCadaNw4bVzC6pBg=;
 b=Y7Y4D9JzsJUJAuJR9ITzf1cWkY8flEppr7d6QX5/KJWpXmX9NESsVOUdyYzMfCDKLj
 2PkZiXPbslcbZjiWolOhFcWfkJuSRz634qAzydhAKHAQ2v2DbY0ECmbMToLNaIR3+05y
 RN+BCY9IjTfmhL4byoUNvqXh0mNt/xvH6YnriI9Ba8XcN7Iyu0S74+8UH1BB1OpqATk9
 aP8D4k5jpnI68C/e/8fgjGN6YFXnyxj2Dk6+oafOdgrpRJdH0nA+18bkgIGz7qu1v0U3
 w+GbB9Nm5OBAWwXnazGhqENIwJsdz4yU3D3wth5XlVpaeA/aphMX8VF+FAPl/7L1xydN
 UVWw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUr+qNB0u9M0Df2PQlfMti69bIyCS4KqOPkH8LG4xPStNWID/5OtsvbKebw69uOhL3wtI2Veg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxL2dTuQuPKpfuTBxhGfMZfQTMkU4kyQvQLTDOTjqFiCjelZdIj
 DFcQhLWLrf34Ik4AQnzn1KANnp5G2VCsTpvw+y5fz/Z7tEEmZPwDkFcx/dncV7ICLK04cLT9Ov8
 GZk4ON6urCQ9vRwZkHN6uNSQnwQ/IHf8=
X-Gm-Gg: ASbGncvbHSo8fkobYYCJ/8B79xV4W/vSXNtxgk9nbMUYqYzuEnIFXn1EDJtcagOojI/
 advYssBaBKxBnKV73uWWNzyF9J6SmpWxsZ9BAXzBg9U3uYHwnbT/+xNFTTiCtF12ViQ64s+RlfW
 nlpSqa6w1h6mkbaZW3d0MdMY8PRBRExW79DFqxPY0liPQ0mJeHHrPKzA==
X-Google-Smtp-Source: AGHT+IEfaO4prbYoS7nq2EOb2olSc8KUI40cMrve8r1FLOr/Iw21rCwbQAiWpHEgd+o8wCoRg9yWPWB5605Q5oEK1lY=
X-Received: by 2002:a2e:8183:0:b0:32a:6312:bfc1 with SMTP id
 38308e7fff4ca-32adfb894camr17345101fa.24.1749408056402; Sun, 08 Jun 2025
 11:40:56 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 8 Jun 2025 11:40:55 -0700
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 8 Jun 2025 11:40:55 -0700
From: Kristoffer Balintona <krisbalintona@HIDDEN>
In-Reply-To: <m2wm9mazyx.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN>
 <86iklmxppf.fsf@HIDDEN> <87msayc8l7.fsf@HIDDEN>
 <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN>
 <86qzzvh3r1.fsf@HIDDEN> <m21prud5u7.fsf@HIDDEN>
 <871prufbsx.fsf@HIDDEN> <m2wm9mazyx.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sun, 8 Jun 2025 11:40:55 -0700
X-Gm-Features: AX0GCFvdGvUyW9bt8KuK_ZHcXIQuZ2fm3YzYxrJrYR_sddPE7W7o70u46RN4hWM
Message-ID: <CANVbq5nnV5PiVZQBuAHDORYLGOVp=_-miwoyB3aQfNjaU2GSvg@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
To: John Wiegley <johnw@HIDDEN>, Steven Allen <steven@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, shields@HIDDEN, 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, Jun 08 2025, John Wiegley wrote:

>>>>>> Steven Allen <steven@HIDDEN> writes:
>
>> It would help to better understand how it was intended to behave:
>
>> - Should :custom-face override the theme or should the theme override
>>   :custom-face?
>
> I=E2=80=99ve never used themes before, so I wasn=E2=80=99t thinking of th=
em at all when the
> feature was added. Someone who uses themes a lot, and customizes them, sh=
ould
> be asked this question.

FWIW, I haven=E2=80=99t been following this thread closely, but as a user w=
ho
hadn=E2=80=99t thought at all about the technical sides of things, what I s=
imply
expected of :custom-face was that it be applied on top of any existing
theme customizations, not that it override them.

Again, that=E2=80=99s my un-technical, naive expectation as a user. Just
throwing in my experience.

--=20
Kind regards,
Kristoffer




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 18:31:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 14:31:48 2025
Received: from localhost ([127.0.0.1]:52898 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOKo8-0004pd-DK
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 14:31:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37404)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johnw@HIDDEN>) id 1uOKo6-0004pP-Et
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 14:31:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johnw@HIDDEN>)
 id 1uOKo0-0001iM-TJ; Sun, 08 Jun 2025 14:31:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=PO4D8XSc1ckZbDuIqvzzKKANoFyoh3IuKaY5IRMPIE4=; b=KoXOUtHZdfO33oN7kvho
 gXVTDqKreU/Uh80REwsVtU5nzH37fshDwD63SdxY6kUeC6hbaosAvc/LFFQRNOINOzIcybEebM5C/
 mUFQBbzOLqvLF27ITsXPmMCZ17NvjdthLdwNqH8gYoK2ySumJ/Nugj/PmjY5hp7RqvbQpYrQUxw44
 O1ZTq8oOyjsYoGTucSYy+/hjTnGMRXdFNKWawOrmvuIjeGkPvw2rWqzpNWAcYPuFHvqJo3UgXa79G
 BWGgGwqzxV4XMRG5bwauoJ7ueyEAFHL+ENzucGUq5Ih2lJJyI86eQ146qADnbQO/I7PH8/IJk1Jvq
 5EXgwpDRIIPSWA==;
X-ME-Sender: <xms:C9dFaAjab7VStnT9vUvz1YIt9xo9BgEEbryUFQZ3cL5Ro-zNiJKsAw>
 <xme:C9dFaJAh2fUyuMeRlxVRjMF9q73Ulv9XvaHRAMikrGGeBFZKL1NXN81Rq_6dsOdKZ
 EbaymarlWgNQn7BEg>
X-ME-Received: <xmr:C9dFaIECu4kPpH6CnFM1RRbxN4Ar357ydksCvwt2Qeto0QzyDcznkK3Q1g>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdekvddvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgfgsehtqhertddtreej
 necuhfhrohhmpeflohhhnhcuhghivghglhgvhicuoehjohhhnhifsehgnhhurdhorhhgqe
 enucggtffrrghtthgvrhhnpeeiffdthedviedvtdfffeffffevkeeludejieeltddufeeh
 fefhhfefgeejteefgeenucffohhmrghinhepnhgvfigrrhhtihhsrghnshdrtghomhenuc
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhhnhif
 odhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeikeejkedtleeggedqudejje
 ehfeekudeiqdhjohhhnhifpeepghhnuhdrohhrghesnhgvfigrrhhtihhsrghnshdrtgho
 mhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepje
 ejledvkeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiiiesghhn
 uhdrohhrghdprhgtphhtthhopehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomhdprh
 gtphhtthhopehshhhivghlughssehmshhrlhdrtghomh
X-ME-Proxy: <xmx:C9dFaBRjrxpLJLP957DXj43OkHVyBUZhSiVNUrr6_YbFdNFKXfpaqQ>
 <xmx:C9dFaNzrZNpSoVr_LX7mH11kB14eHfxmelGflK1BqBPpL_DlMcVEKg>
 <xmx:C9dFaP6wlmAK5w6Vu4A-kfqq7rTfzzD7NoIkfTO_JnzwX0gUU-uMyA>
 <xmx:C9dFaKwh82MHuCgvNJwJUD9eYhS9y9FcgYgOjDurMWsC-yXKCgqoxQ>
 <xmx:C9dFaBirBjoKDaweeveUs9aj2K4Y5rz5HHP-AlpsHjNTrJ9F7vGUj44R>
Feedback-ID: ib64945b7:Fastmail
From: John Wiegley <johnw@HIDDEN>
To: Michael Shields <shields@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <CAMPZLESzF7=RFu5qpUnEqUOBd5CmAiK9HqoNU9GDyzamGH2o7w@HIDDEN>
 (Michael Shields's message of "Sun, 8 Jun 2025 11:27:37 -0700")
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
 <m21prud5u7.fsf@HIDDEN> <871prufbsx.fsf@HIDDEN>
 <m2wm9mazyx.fsf@HIDDEN>
 <CAMPZLESzF7=RFu5qpUnEqUOBd5CmAiK9HqoNU9GDyzamGH2o7w@HIDDEN>
Date: Sun, 08 Jun 2025 11:31:38 -0700
Message-ID: <m2ecvuaxv9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, Steven Allen <steven@HIDDEN>,
 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>>>> Michael Shields <shields@HIDDEN> writes:

> With my patch applied, :custom-face should be equivalent in behavior to
> custom-set-faces, but without the settings appearing as if they were
> user-set.

> I don't know how this should interact with themes. Maybe the right approa=
ch
> there is to define a new personal theme and configure faces there instead=
 of
> using :custom-face. Or maybe it is simplest to call face-spec-set explici=
tly
> from :config.

This description certainly sounds like it expresses the right approach of
use-package being as =E2=80=9Cminimal=E2=80=9D a wrapper around standard be=
havior as possible.

--=20
John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 18:27:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 14:27:57 2025
Received: from localhost ([127.0.0.1]:52884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOKkO-0004c5-Rh
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 14:27:57 -0400
Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]:43388)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shields@HIDDEN>) id 1uOKkM-0004bq-B3
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 14:27:55 -0400
Received: by mail-yw1-x1131.google.com with SMTP id
 00721157ae682-70f94fe1e40so46724767b3.1
 for <77928 <at> debbugs.gnu.org>; Sun, 08 Jun 2025 11:27:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=msrl.com; s=google; t=1749407268; x=1750012068; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=Q0lNPwhWEapXoxtdvlJmNxm7vgMrlI4ywtGEFVhFfcc=;
 b=DLZxmwnx8RyBCSpz34wifAc5ixoUcVPoJTAh4bktPbgnL0uVgXFvN7280HV38QFLU5
 m2sQtEJLpkqLxC7EE7HjMaMPJr/fFpR05ntEjXlSXOgSmZ/tkZ2mJlnkKR47Wg4REh89
 Oh/jeOPHm39JmYZIL9zoPCT7QowXwMfhi8FNE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1749407268; x=1750012068;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=Q0lNPwhWEapXoxtdvlJmNxm7vgMrlI4ywtGEFVhFfcc=;
 b=tqzjL40Nol10kZDYifjv3BnZcDU2US27RVkO7juH+JyBtkANvA6GCtdhVDal3umd/S
 KhAGupOwUrpiMIsa2X9Eb6K3ENYip93VLoPPwX0piqPJP4yXCacBXlFD1PvibahHZMz1
 IwbigZKZh8mFeMRJ0Gu0GvQIKYQy1zmUCn0WHpU0BKw6bHkZyVtcOdO4qptR78fV2bfF
 34+cvoSRmGAlia6Gza40taDqVdrl516T5KdVGDOfxumXH97TtPdzRndPPVA4jKrUYGdQ
 hY0F746nXIPA71kfzRcCk/EI4N/ehhBMRhf8bOoDAcogvVcVDKoSGj8pB/9fN8T8Ap9N
 3D/A==
X-Forwarded-Encrypted: i=1;
 AJvYcCUxOe7BxvjWtM3d08EdTXZC9kke3SYhyvq3i0WkwIpTIA/4liV6be8i8HD2Hh3niXZwK0jrCQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzREAX6TnZ8X4szqbK0d3uF27PlMFcUOsXwGiQwzdvgVrVl3GkD
 inI66mmnjVh9uHFOL20bsBtocmxzl9lNQnJAstb7P7XY2T27e0MWB3ci90I2yuWFy+Nv6XIXbwK
 xcqDeLIIz5mgOpMSsufHtyv0T8TB793iBY1fdfwSJ
X-Gm-Gg: ASbGnct/HU6EFlfLhWGy/uqJLhksGoC2I+jtowKiewZWfqovq15MfThR1HdbZj4daQD
 gFdrJuPdOxbES3ldC6vSkvaN2HUd2dTNzEKMhw18lNqN9HUzX99ArsISMfYh2QtQDiPuj8991bC
 YXNP6d+r3BZ1TqYsGpZ5gQkYm6vbw6b1RvF2gkDlfg9vfHd7Ry1cwUGCrxunvr4Nw/z/9KXhdcH
 SBjVzD/iAURFBI3
X-Google-Smtp-Source: AGHT+IEz6kEytSp5qlUOH+CqwNe5Q7Nm7NBNsQVoUOTwe39PMRnbY04/BSfEJQBCO6Ej/r26DVziWLtVN4zOPOVWKEk=
X-Received: by 2002:a05:690c:4881:b0:70e:4b30:c207 with SMTP id
 00721157ae682-711085756f8mr79152467b3.4.1749407268342; Sun, 08 Jun 2025
 11:27:48 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN>
 <86iklmxppf.fsf@HIDDEN> <87msayc8l7.fsf@HIDDEN>
 <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN>
 <86qzzvh3r1.fsf@HIDDEN> <m21prud5u7.fsf@HIDDEN>
 <871prufbsx.fsf@HIDDEN> <m2wm9mazyx.fsf@HIDDEN>
In-Reply-To: <m2wm9mazyx.fsf@HIDDEN>
From: Michael Shields <shields@HIDDEN>
Date: Sun, 8 Jun 2025 11:27:37 -0700
X-Gm-Features: AX0GCFtIdSsQSRsI6p8SOdN5UoNvmNWGFo-SEDnK_AU1DCLqPhzOqM4-PpJJ3Qs
Message-ID: <CAMPZLESzF7=RFu5qpUnEqUOBd5CmAiK9HqoNU9GDyzamGH2o7w@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
To: John Wiegley <johnw@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000cc20f80637139e35"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, Steven Allen <steven@HIDDEN>,
 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000cc20f80637139e35
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't use themes either, but I can describe my use case.

I refactored much of my Emacs config into use-package. Most of that went
straightforwardly into :init, :bind, :hook, etc. Custom variables moved to
:custom, and custom faces moved to :custom-face. But this caused some faces
to change, because custom-set-faces effectively replaces the face
definition, while :custom-face overlaid it.

If I understand the history, :custom-face initially called
custom-set-faces, so it behaved identically to having custom-set-faces in
custom.el. But this confusingly resulted in :custom-face definitions being
written to custom.el as if the user had configured them through M-x
customize. https://github.com/jwiegley/use-package/pull/1004 fixed that,
unintentionally also changing the semantics of :custom-face.

With my patch applied, :custom-face should be equivalent in behavior to
custom-set-faces, but without the settings appearing as if they were
user-set.

I don't know how this should interact with themes. Maybe the right approach
there is to define a new personal theme and configure faces there instead
of using :custom-face. Or maybe it is simplest to call face-spec-set
explicitly from :config.


On Sun, Jun 8, 2025 at 10:46=E2=80=AFAM John Wiegley <johnw@HIDDEN> wrote:

> >>>>> Steven Allen <steven@HIDDEN> writes:
>
> > It would help to better understand how it was intended to behave:
>
> > - Should :custom-face override the theme or should the theme override
> >   :custom-face?
>
> I=E2=80=99ve never used themes before, so I wasn=E2=80=99t thinking of th=
em at all when the
> feature was added. Someone who uses themes a lot, and customizes them,
> should
> be asked this question.
>
> > - Should customizations made via :custom-face be merged with the origin=
al
> >   face definition (as with `custom-set-faces') or should they completel=
y
> >   replace the underlying face.
>
> I would expect the behavior to be whatever `custom-set-faces' does. Since
> use-package is only intended to expand to =E2=80=9Cbest practice=E2=80=9D=
 Emacs Lisp, it
> shouldn=E2=80=99t add any new behavior in my opinion.
>
> --
> John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80=
F
> http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2
>

--000000000000cc20f80637139e35
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I don&#39;t use themes=C2=A0either, but I can describe my =
use case.<div><br></div><div>I refactored much of my Emacs config into use-=
package. Most of that went straightforwardly into :init, :bind, :hook, etc.=
 Custom variables moved to :custom, and custom faces moved to :custom-face.=
 But this caused some faces to change, because custom-set-faces effectively=
 replaces=C2=A0the face definition, while :custom-face overlaid it.=C2=A0</=
div><div><br></div><div>If I understand the history, :custom-face initially=
 called custom-set-faces, so it behaved identically to having custom-set-fa=
ces in custom.el. But this confusingly resulted in :custom-face definitions=
 being written to custom.el as if the user had configured them through M-x =
customize.=C2=A0<a href=3D"https://github.com/jwiegley/use-package/pull/100=
4">https://github.com/jwiegley/use-package/pull/1004</a> fixed that, uninte=
ntionally also changing the semantics of :custom-face.</div><div><br></div>=
<div>With my patch applied, :custom-face should be equivalent in behavior t=
o custom-set-faces, but without the settings appearing as if they were user=
-set.</div><div><br></div><div>I don&#39;t know how this should interact wi=
th themes. Maybe the right approach there is to define a new personal theme=
 and configure faces there instead of using :custom-face. Or maybe it is si=
mplest to call face-spec-set explicitly from :config.</div><div><br></div><=
/div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sun, Jun 8, 2025 at 10:46=E2=80=AFAM John Wiegley &=
lt;<a href=3D"mailto:johnw@HIDDEN">johnw@HIDDEN</a>&gt; wrote:<br></div><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft:1px solid rgb(204,204,204);padding-left:1ex">&gt;&gt;&gt;&gt;&gt; Steve=
n Allen &lt;<a href=3D"mailto:steven@HIDDEN" target=3D"_blank">steve=
n@HIDDEN</a>&gt; writes:<br>
<br>
&gt; It would help to better understand how it was intended to behave:<br>
<br>
&gt; - Should :custom-face override the theme or should the theme override<=
br>
&gt;=C2=A0 =C2=A0:custom-face?<br>
<br>
I=E2=80=99ve never used themes before, so I wasn=E2=80=99t thinking of them=
 at all when the<br>
feature was added. Someone who uses themes a lot, and customizes them, shou=
ld<br>
be asked this question.<br>
<br>
&gt; - Should customizations made via :custom-face be merged with the origi=
nal<br>
&gt;=C2=A0 =C2=A0face definition (as with `custom-set-faces&#39;) or should=
 they completely<br>
&gt;=C2=A0 =C2=A0replace the underlying face.<br>
<br>
I would expect the behavior to be whatever `custom-set-faces&#39; does. Sin=
ce<br>
use-package is only intended to expand to =E2=80=9Cbest practice=E2=80=9D E=
macs Lisp, it<br>
shouldn=E2=80=99t add any new behavior in my opinion.<br>
<br>
-- <br>
John Wiegley=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
GPG fingerprint =3D 4710 CF98 AF9B 327B B80F<br>
<a href=3D"http://newartisans.com" rel=3D"noreferrer" target=3D"_blank">htt=
p://newartisans.com</a>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 60E1 46C4 BD1A 7AC1 4BA2<br>
</blockquote></div>

--000000000000cc20f80637139e35--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 17:46:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 13:46:32 2025
Received: from localhost ([127.0.0.1]:52818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOK6K-0002n6-Hp
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 13:46:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39192)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johnw@HIDDEN>) id 1uOK6H-0002mr-MB
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 13:46:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johnw@HIDDEN>)
 id 1uOK6B-0005hM-Rw; Sun, 08 Jun 2025 13:46:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=a8kczrIhL3hPTrxiU4KxIHkg7YaF5i6TON04BvCkPss=; b=BrVavT4fpYnptUaZ+oRO
 A+lV4CmQqgbEeQ9hZ4nDdN+LnuqO5Lr3fKpwYN2ftLRNKrW4As2es0hTv9ggKLCytqHGIrxnmRNXS
 xHb4wqMCzkmslqXOvDXw+YEiaZ9ehbmvePXNFDOJvgRqtWa7GqRLX5Atf82g91ZCOXGJGB4ZQ4oBY
 MJhPLOgRkAYyh0VCa3H/vFpweO1IdcS4lyGFuELa0fOYQ5psI95P7tfFjH9K7Hv/UQ5WdbpblS+Yc
 K1zZAxIOW3uP+6lswHqmhNfZZHj2uqoKKw1toKEQACy3+RO18bKB21tG+Kxd7xZbPnytwfN7NYD0z
 oJz4eFBfDEbO3w==;
X-ME-Sender: <xms:bcxFaARiS_x1xjFGzYLStf6BU7M8wRSgDBYlczdEIeJ5-4QdHuCbEw>
 <xme:bcxFaNxvzkHpMsPn0-Ytz4n8-7Dl_2WNVcoZWqqAFlUDurdOx5Av7vJ8ZptrLbJPx
 feNYC8UXX_umXDmiQ>
X-ME-Received: <xmr:bcxFaN2glVsDW9Gm0xVsNzso8K2BBoybniFSpU2-jkCCwWG8DUvuM8CIdg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdekudejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgfgsehtqhertddtreej
 necuhfhrohhmpeflohhhnhcuhghivghglhgvhicuoehjohhhnhifsehgnhhurdhorhhgqe
 enucggtffrrghtthgvrhhnpeeiffdthedviedvtdfffeffffevkeeludejieeltddufeeh
 fefhhfefgeejteefgeenucffohhmrghinhepnhgvfigrrhhtihhsrghnshdrtghomhenuc
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhhnhif
 odhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeikeejkedtleeggedqudejje
 ehfeekudeiqdhjohhhnhifpeepghhnuhdrohhrghesnhgvfigrrhhtihhsrghnshdrtgho
 mhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepje
 ejledvkeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehshhhivghlughs
 sehmshhrlhdrtghomhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtth
 hopehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomh
X-ME-Proxy: <xmx:bcxFaEB426MYmB-FWZnMZqb9oDbLUtdiUZ-apiTSDfgPDFJP_sjXjQ>
 <xmx:bcxFaJh3v4n5Bc_K8lxy_qGltfeI0Otl_FPaM_OBK0saSbA3eemXsQ>
 <xmx:bcxFaAoY_zzBddyEbLUigxmWoKtW37JzveBISSSWU6dxQGC2pr3GTQ>
 <xmx:bcxFaMjJC3BEkLX2490mSBCDxJC8OVV3fFhZJs2UqpStY7GPNumt9A>
 <xmx:bcxFaARnX8kuyiKK1BsItLfFcjtRo21VA1f4dS46vLjwkkN-aM-07fSD>
Feedback-ID: ib64945b7:Fastmail
From: John Wiegley <johnw@HIDDEN>
To: Steven Allen <steven@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <871prufbsx.fsf@HIDDEN> (Steven Allen's message of "Sun,
 08 Jun 2025 09:17:02 -0700")
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
 <m21prud5u7.fsf@HIDDEN> <871prufbsx.fsf@HIDDEN>
Date: Sun, 08 Jun 2025 10:46:14 -0700
Message-ID: <m2wm9mazyx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, shields@HIDDEN, 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>>>> Steven Allen <steven@HIDDEN> writes:

> It would help to better understand how it was intended to behave:

> - Should :custom-face override the theme or should the theme override
>   :custom-face?

I=E2=80=99ve never used themes before, so I wasn=E2=80=99t thinking of them=
 at all when the
feature was added. Someone who uses themes a lot, and customizes them, shou=
ld
be asked this question.

> - Should customizations made via :custom-face be merged with the original
>   face definition (as with `custom-set-faces') or should they completely
>   replace the underlying face.

I would expect the behavior to be whatever `custom-set-faces' does. Since
use-package is only intended to expand to =E2=80=9Cbest practice=E2=80=9D E=
macs Lisp, it
shouldn=E2=80=99t add any new behavior in my opinion.

--=20
John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 16:17:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 12:17:13 2025
Received: from localhost ([127.0.0.1]:52689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOIhs-0006qT-Nm
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 12:17:13 -0400
Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]:38483)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uOIhp-0006qG-UN
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 12:17:11 -0400
Received: from phl-compute-12.internal (phl-compute-12.phl.internal
 [10.202.2.52])
 by mailfout.phl.internal (Postfix) with ESMTP id A3FD31380180;
 Sun,  8 Jun 2025 12:17:04 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-12.internal (MEProxy); Sun, 08 Jun 2025 12:17:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm3;
 t=1749399424; x=1749485824; bh=jxFP9TMDRfeBdCUFU5K1aNYJYlkNhpRd
 pn1okjzTJHQ=; b=RXwG5TI4E/HDd1TLYAP3m6p01NrsWKE2d/CLFgdg4ujg7yoA
 +0bN9T9EAZQSbXIIYo46/sUI+H6O+LO0bqqOG+ckjqiKTiSWxoaNorPQtSQq8UB3
 HWfgrDeCco6Fx8gAmy5wfx78P98+Kcll7yZs29JefN8LIWjOaDIoYP9sUA8Bo4PV
 YbjwGpEaK6ptY6mJuZOnLMmIliJOCEyDzG22LA6MXQewtMX7uA/xqbggAN+MFslf
 YZSZ7aeRmH3gJWO4tG0UsAWEsQb0gj9OAFPNoyjcefulcnGWwizpAYZZaH9xX6Rt
 WTRtr/JChxfLqS7jS+baYLYCB7t+wQCCG41iWQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1749399424; x=
 1749485824; bh=jxFP9TMDRfeBdCUFU5K1aNYJYlkNhpRdpn1okjzTJHQ=; b=Q
 o9iElJAD82k9SCXqJ4cQ7nIvbgZeqCyKpNsG2ta7BKKQefi6lOnhN6Kb2H7oj/MN
 WiR17s7JlBDWMNWixhy/bI91d+TmAbE+6vF/oSNXAek02Ti3GpXOhMDcA9du7dS9
 UkpmCTDaDkEyC4vZ0yZiGMMa5pRUNGBskrjhqpEY5CQbTIuXtUdqzaiPqqyDvOxq
 k9djXBVWN2blgsWOQLOftRe6ZrypmxDFD26v2l6hU3nFKkJ67kX2lehSjkyKEMON
 LexHGFh6MUCdk9/U+90njon8kp3PVR1Ot4g39wSaPUnPfyMpmNuOlQMLbVv0YKw7
 rIPgImTyIsoSVyjmXtD4Q==
X-ME-Sender: <xms:gLdFaHcAkocKLbxFXxOvSLDUO8S64JRRt_eW0hqEE4VngR8fnDbXKw>
 <xme:gLdFaNM4P83JbholdX72iEHMUU8f8RMZoXTnSc5pENrV08Y4GZZG0E82m-B8kR8ai
 dkeBdKMzjuL5_ofsAE>
X-ME-Received: <xmr:gLdFaAgc3YRfrTWnE7jZCLsk8f7LK1ATDH_5J0J-H93MWNWAMGreYcIuIciD2lTVgqg1g84GkDpAuE2rz0iEYSWOYvJaFDM>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdektdekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkgggtgfesthhqredttddtjeen
 ucfhrhhomhepufhtvghvvghnucetlhhlvghnuceoshhtvghvvghnsehsthgvsggrlhhivg
 hnrdgtohhmqeenucggtffrrghtthgvrhhnpeefvdduheefuedvteevteeiveejgedtteeg
 hfelgfegueehvefhffeliedvteeiudenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomhdpnhgs
 pghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjhhohhhnfi
 esghhnuhdrohhrghdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthho
 pehshhhivghlughssehmshhrlhdrtghomhdprhgtphhtthhopeejjeelvdekseguvggssg
 hughhsrdhgnhhurdhorhhg
X-ME-Proxy: <xmx:gLdFaI-Ll0Xvuj_5DUmSo25w4HSOlRWNUrMCeJSjlXUukjUioVe_qQ>
 <xmx:gLdFaDuqAK8aRax72be0IoHnrMF3QYAK0MJj4RmSfqdr2uR2JTsj8Q>
 <xmx:gLdFaHEZhLX1rcng9wYWjoFewazNx6loXXIfVU703x5YRVBkKSCVDw>
 <xmx:gLdFaKPs49wRFoglJWjXroTFvGSBTK4lpKl-gkFUgjCv_WLUfTJF6Q>
 <xmx:gLdFaNkdIiJz65iN9gY1vvJnaFmU47yZX7ft_hDzAYCfh9R4D-Npa6Bt>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 8 Jun 2025 12:17:03 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: John Wiegley <johnw@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <m21prud5u7.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
 <m21prud5u7.fsf@HIDDEN>
Date: Sun, 08 Jun 2025 09:17:02 -0700
Message-ID: <871prufbsx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

John Wiegley <johnw@HIDDEN> writes:

>>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>
>>> For example, if a user customizes a face via the "Easy Customization"
>>> interface, said customizations always override the theme. :custom-face =
is
>>> supposed to be the use-package equivalent of the "Easy Customization"
>>> system.
>
>> I'm not sure this is what :custom-face is, because it expands to somethi=
ng
>> else. Maybe John could help us understand what was the intent, and why t=
his
>> is the expansion.
>
> This is no deep answer, I=E2=80=99m afraid. I think I just looked at what=
 gets called
> in settings.el when you save a face customization (`custom-set-faces'), a=
nd so
> this is what I used.

It would help to better understand how it was intended to behave:

- Should :custom-face override the theme or should the theme override
  :custom-face?

- Should customizations made via :custom-face be merged with the
  original face definition (as with `custom-set-faces') or should they
  completely replace the underlying face.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 8 Jun 2025 07:57:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 03:57:09 2025
Received: from localhost ([127.0.0.1]:50586 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uOAtx-0007FX-CN
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2025 03:57:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43756)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johnw@HIDDEN>) id 1uOAtu-0007Ev-Ak
 for 77928 <at> debbugs.gnu.org; Sun, 08 Jun 2025 03:57:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johnw@HIDDEN>)
 id 1uOAtk-0005Xm-PZ; Sun, 08 Jun 2025 03:56:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=uapOTDg1PfqCdLFzJ063jS3zYbvi05VEIi9weKPLDzM=; b=JpKBs2po+Jxc/yaWbfVU
 16+SI8n/t0h0P5mmpZHW7Bo5a6XCg5n3d+ZNGUyLdX2SFh8nFQZYPA6tkoCGrtorh6yl21OVKmQ1J
 9B60Sj9G6/yRzbRnYxOYUmzUz20JcZ5sNhu20PWDM19kAw+XwB5xm0129T6eA2G76ersIWIr3nA+L
 5W3IxIuELCo3nQueENhT6SjQ9yQjzra/gV1nLjnZ2RdwHY01BFkTK1rTLEblsy0TLQIlP05k1JFSI
 10qVlBRoqGk//05qOfqeBaSJQzXNhr3WwDjQgDMIhybh8Km8I8X8cPEX9hHwN6x1p5wvwpN6bCrPD
 iGb8zY7eyzCS5w==;
X-ME-Sender: <xms:NkJFaH6YEaOMbcTIw6-4W06N-lJscFztPwRzOEyRxxIrnMJX453ZBQ>
 <xme:NkJFaM49nV3NL0_N5w1yY5RvNMic6GemEwIQb5Z6YoYMPNnz6wo52gQ9iHV9gAJLd
 PKezEm4PjOwmGbmgw>
X-ME-Received: <xmr:NkJFaOe8wrYN-SAZWgrUY1264rp5h4VR2Ficwc2sEBB-A5lWiaWXoRn4XQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdejheejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgfgsehtqhertddtreej
 necuhfhrohhmpeflohhhnhcuhghivghglhgvhicuoehjohhhnhifsehgnhhurdhorhhgqe
 enucggtffrrghtthgvrhhnpeeiffdthedviedvtdfffeffffevkeeludejieeltddufeeh
 fefhhfefgeejteefgeenucffohhmrghinhepnhgvfigrrhhtihhsrghnshdrtghomhenuc
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhhnhif
 odhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeikeejkedtleeggedqudejje
 ehfeekudeiqdhjohhhnhifpeepghhnuhdrohhrghesnhgvfigrrhhtihhsrghnshdrtgho
 mhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepje
 ejledvkeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehshhhivghlughs
 sehmshhrlhdrtghomhdprhgtphhtthhopehsthgvvhgvnhesshhtvggsrghlihgvnhdrtg
 homhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh
X-ME-Proxy: <xmx:NkJFaIJkeYJUPdUnO_SZOv-UFyk0k1eiA-WvAuaN8lDbekpy-ctaYQ>
 <xmx:NkJFaLJbGD6Xlj511KhsyT6GD4SMzYdRkqJfcU7SUSZQAYlyMGzu2Q>
 <xmx:NkJFaByTv7cgnCOJdUEhk_r1zK0Q6NsQiRDNFOkF_1n1mIjXW_733Q>
 <xmx:NkJFaHJcKrOeQhlwWGwKmmKOAY5Ytr-5E2wRKe18x5mHt4uJiesXRw>
 <xmx:N0JFaGaV4HXTytLc5q_xUzrLv9i2vkn9Hco3Gbq6xgMdgth1RN-Mj-ss>
Feedback-ID: ib64945b7:Fastmail
From: John Wiegley <johnw@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <86qzzvh3r1.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 07 Jun
 2025 20:15:46 +0300")
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN> <86qzzvh3r1.fsf@HIDDEN>
Date: Sun, 08 Jun 2025 00:56:32 -0700
Message-ID: <m21prud5u7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Steven Allen <steven@HIDDEN>,
 shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:

>> For example, if a user customizes a face via the "Easy Customization"
>> interface, said customizations always override the theme. :custom-face is
>> supposed to be the use-package equivalent of the "Easy Customization"
>> system.

> I'm not sure this is what :custom-face is, because it expands to something
> else. Maybe John could help us understand what was the intent, and why th=
is
> is the expansion.

This is no deep answer, I=E2=80=99m afraid. I think I just looked at what g=
ets called
in settings.el when you save a face customization (`custom-set-faces'), and=
 so
this is what I used.

--=20
John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 7 Jun 2025 17:15:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 07 13:15:57 2025
Received: from localhost ([127.0.0.1]:49454 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uNx9B-0001hh-7i
	for submit <at> debbugs.gnu.org; Sat, 07 Jun 2025 13:15:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34862)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uNx98-0001hB-8t
 for 77928 <at> debbugs.gnu.org; Sat, 07 Jun 2025 13:15:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uNx92-0007jT-Gu; Sat, 07 Jun 2025 13:15:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=BduRBD/0yvihqUIHnVHbiCC0PhroJPd7kttB0WwgfpA=; b=qIGAvjTP4FVm
 MCi/Dr8sVSj7xPg9nwsm8eP07qDpO2KelMCRMbuOAWOrqano4bTEFzSrr7bI9Kct952Oae+MXHaxw
 4xxoA+N+gSn+vXlHdpwDvmEtUlfUY6ZrfgHNTB27kIQPTDdcwGqQugXBk5Ecppn2JfjK/h8/rea1m
 pK/S0vY7kRGNYNekSiK78L9pQnTXcGw+2z7oUrDVnfqgyHW0R2W++YDX3MLxdYrBJ/HYBehmtwQNI
 gs5cq2FHM4QT6pFuig/+4TuaHz0ntL4knVBX74O+BmxLfFNIc6xqSRkf743qzjI6i6y4p0yk0kLR6
 Bbf+p7z/Xd20mb/HBcyO9w==;
Date: Sat, 07 Jun 2025 20:15:46 +0300
Message-Id: <86qzzvh3r1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Steven Allen <steven@HIDDEN>
In-Reply-To: <875xh7lejk.fsf@HIDDEN> (message from Steven Allen on Sat, 
 07 Jun 2025 09:09:03 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
 <875xh7lejk.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Steven Allen <steven@HIDDEN>
> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
> Date: Sat, 07 Jun 2025 09:09:03 -0700
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Steven Allen <steven@HIDDEN>
> >> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
> >> Date: Wed, 04 Jun 2025 12:07:12 -0700
> >>
> >> There are two parts to this report:
> >>
> >> 1. Bug: use-package's ":custom-face" no longer overrides themed
> >>   faces.
> >> 2. Opinion: ":custom-face" SHOULD merge the user-specified face spec
> >>   with the underlying face spec (contrary to the original report).
> >
> > I'm not sure I agree.  I think the concept is that themes override any
> > other face definitions, otherwise themes couldn't have done their main
> > job.
> 
> But this is the user's config. The theme should (and does) override the
> default face definitions, but the user should always have the last say.

Loading a theme is also a user configuration.  Customizing a face
directly (via "M-x customize-face") should indeed take precedence, but
use-package's :custom-face isn't that, AFAIU, because it doesn't
expand to a custom-set-faces form.

In fact, I'm not sure I understand the semantics of use-package's
:custom-face attribute.  And what is supposed to happen if a theme is
loaded _after_ :custom-face was processed?

> For example, if a user customizes a face via the "Easy Customization"
> interface, said customizations always override the theme. :custom-face
> is supposed to be the use-package equivalent of the "Easy
> Customization" system.

I'm not sure this is what :custom-face is, because it expands to
something else.  Maybe John could help us understand what was the
intent, and why this is the expansion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 7 Jun 2025 16:09:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 07 12:09:13 2025
Received: from localhost ([127.0.0.1]:49373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uNw6b-0006uC-Eq
	for submit <at> debbugs.gnu.org; Sat, 07 Jun 2025 12:09:13 -0400
Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]:41401)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uNw6Y-0006tv-VI
 for 77928 <at> debbugs.gnu.org; Sat, 07 Jun 2025 12:09:12 -0400
Received: from phl-compute-04.internal (phl-compute-04.phl.internal
 [10.202.2.44])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 3ED75254011D;
 Sat,  7 Jun 2025 12:09:05 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-04.internal (MEProxy); Sat, 07 Jun 2025 12:09:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm3; t=1749312545; x=
 1749398945; bh=O7tv2TYiBGRmGwNOoeF8gN37T/yDIzQF7pcadxR+Azk=; b=A
 oJbqlpt3f2/XXPf6LKblmQQ5V2KeeViBCWILZpW9ZYnoIpPUSkPX4RUq3XnP9kWt
 Hq35zKmqAOM6QHh0kDL39QW82/jYemcKeoeuM4Di9j1w8VqG7AbFtnMieVrnxibW
 EhlKzGVmJ6I2kHp1oqSO89Tclub/wvVqbehkGQsvyFjsw1Yz3hle1PKZEuuP6lxg
 6QZBiqx73tqM3hNNK5ASsHj5nNCjNsVGzNtGAAfOrxMplUSQ0GgfVd/XuEnguwVX
 EBH8f2mj5Xn3W2Kz/NcDpP7oKt1ktF4INv6g3r4uoonqcjOhhY+Evq3HNvEObCPs
 2NUHvDzFc723QEklfDpuA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1749312545; x=1749398945; bh=O7tv2TYiBGRmGwNOoeF8gN37T/yDIzQF7pc
 adxR+Azk=; b=CFjyrWgTlZO04/WSF1V6u47h2Z3VYPiQIiRYctvDJdOmG356YZQ
 3VEjWxBV4h51JRHF9CAAnacm/Mch+26StN0c2IBJAjhmkn1uNRvagR7WDx66ZH5F
 wGoA7r+LRVhDpZ76Jx4IwRZNkNjTeDa0p6gS4tHWAvAnn3FZcV0iXmRyhLSO9wUd
 /E2U+E0+qyrk0JHTTTpIRf3YCpkV0980n5oFU5DqaTAPkvjJ7vdaVc5ymfgz60+P
 8SKPXqnDsoBZmggtk7PxFa+zzo5mCwDeFarzrI/hVhlcMWKg7Ul9CI3kda59WnY4
 W2QnjVjLu8YZtTHISXf3F9BWIqXsy+Zhe4Q==
X-ME-Sender: <xms:IGREaEoAZAgf4kE7ULO3_qlKrYaRUUc_lS1L74u3RTOYAp403p4WNQ>
 <xme:IGREaKq3BCMsR_WZoQHlukkpeRurdv_rLaukiweUyI-aMzMc-HtM0npWkh9qs7zri
 UvtreA26SwDNUbmcUQ>
X-ME-Received: <xmr:IGREaJNHHdrWfkvurBknRElfaHUtGKji6jBqzI1xC_k5__YQzO0evMwGxgt8utfNZ9gzr94CnM642s-FC8nHzRjO_FU1qR4>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdeijeehucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecu
 hfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehsthgvvhgvnhesshhtvggsrghlihgvnh
 drtghomheqnecuggftrfgrthhtvghrnhepvdekheekgeelheehgefgudelkeethffhgfeu
 ffetkeegtddvfeduuddttdejjedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepshhtvghvvghnsehsthgvsggrlhhivghnrdgtohhmpdhnsggp
 rhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesgh
 hnuhdrohhrghdprhgtphhtthhopehjohhhnhifsehgnhhurdhorhhgpdhrtghpthhtohep
 shhhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpthhtohepjeejledvkeesuggvsggsuh
 hgshdrghhnuhdrohhrgh
X-ME-Proxy: <xmx:IGREaL73LOfDImgBsAcKLF_dHAZLNde4SP9WGIliJl5EDbx9ynzrOw>
 <xmx:IGREaD70JTic_k1-6sZEgp76yOZpmgszkYBQHHs_cKF9qHi5kpMPuw>
 <xmx:IGREaLhOp29ygAMNEjD8F-wkRHt4kQoAPT1jKAXzsbADR_Xeg92W_w>
 <xmx:IGREaN5lM29vlwnx277ODYsIKeejLCB4-8WeX6kLR67DrbKKBg4Www>
 <xmx:IWREaMRybdJnx6YpyfD3vPlzfFyA6NSWnyy3HdRiXrDeeAjsR8_3IqLu>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 7 Jun 2025 12:09:04 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <868qm3j2zr.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN> <868qm3j2zr.fsf@HIDDEN>
Date: Sat, 07 Jun 2025 09:09:03 -0700
Message-ID: <875xh7lejk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Steven Allen <steven@HIDDEN>
>> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
>> Date: Wed, 04 Jun 2025 12:07:12 -0700
>>
>> There are two parts to this report:
>>
>> 1. Bug: use-package's ":custom-face" no longer overrides themed
>>   faces.
>> 2. Opinion: ":custom-face" SHOULD merge the user-specified face spec
>>   with the underlying face spec (contrary to the original report).
>
> I'm not sure I agree.  I think the concept is that themes override any
> other face definitions, otherwise themes couldn't have done their main
> job.

But this is the user's config. The theme should (and does) override the
default face definitions, but the user should always have the last say.

For example, if a user customizes a face via the "Easy Customization"
interface, said customizations always override the theme. :custom-face
is supposed to be the use-package equivalent of the "Easy
Customization" system.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 7 Jun 2025 09:49:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 07 05:49:23 2025
Received: from localhost ([127.0.0.1]:46980 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uNqB1-0003eM-9a
	for submit <at> debbugs.gnu.org; Sat, 07 Jun 2025 05:49:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55710)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uNqAz-0003e6-1h
 for 77928 <at> debbugs.gnu.org; Sat, 07 Jun 2025 05:49:21 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uNqAt-0003fG-0z; Sat, 07 Jun 2025 05:49:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=X1641dOh4mLL/Iva98I6j3iSE9wcDxbxPV4SnfrUyw8=; b=lPrlL7gQvKMK
 eWR+hpaWfVvgji2sT+sEDy6aGAnqXdHoUxxcKEQIs6hju0V0zrvZJsuUTenN+Z/E9qnlRaM+f08oB
 ounJW8Vt7QDEnypb/2HDXu1GTHLtgTDeEWjkgkqqqlDRS/DVODqXv41EnjcGgkfwVDsyX6izpAMeS
 JP3XIy5MYnmBFR7PWsVVrq/o/gs/W86ApI92lawEIrQKHZGHahd5lt7plEi+Ga1xF7/te5RL1j4Bj
 kSsz1+Tj/oCMpd8WM2X78pMhW1dfmn9EkYe1kAbeH+PvuBO/7wca6gh2r+OFrsTlP2iTmNiVFZC7/
 Pe8ERrrpsweaumj8j0aA6w==;
Date: Sat, 07 Jun 2025 12:49:12 +0300
Message-Id: <868qm3j2zr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Steven Allen <steven@HIDDEN>
In-Reply-To: <875xhbgwbj.fsf@HIDDEN> (message from Steven Allen on Wed, 
 04 Jun 2025 12:07:12 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <875xhbgwbj.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Steven Allen <steven@HIDDEN>
> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
> Date: Wed, 04 Jun 2025 12:07:12 -0700
> 
> There are two parts to this report:
> 
> 1. Bug: use-package's ":custom-face" no longer overrides themed
>   faces.
> 2. Opinion: ":custom-face" SHOULD merge the user-specified face spec
>   with the underlying face spec (contrary to the original report).

I'm not sure I agree.  I think the concept is that themes override any
other face definitions, otherwise themes couldn't have done their main
job.

> IMO, :custom-face SHOULD behave like "custom-set-faces".

Not sure I agree, but maybe John could state his opinions on that?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 4 Jun 2025 19:07:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 04 15:07:24 2025
Received: from localhost ([127.0.0.1]:52627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uMtSN-0004Gb-IY
	for submit <at> debbugs.gnu.org; Wed, 04 Jun 2025 15:07:24 -0400
Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]:45429)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uMtSL-0004Fy-GO
 for 77928 <at> debbugs.gnu.org; Wed, 04 Jun 2025 15:07:22 -0400
Received: from phl-compute-05.internal (phl-compute-05.phl.internal
 [10.202.2.45])
 by mailfhigh.stl.internal (Postfix) with ESMTP id A704A254012D;
 Wed,  4 Jun 2025 15:07:15 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Wed, 04 Jun 2025 15:07:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm3;
 t=1749064035; x=1749150435; bh=o7MrzXcTeeHIrD1Gf9FUqBWz3KoEs5Wc
 MF39DjN+8Ts=; b=pLNLA/4HBjOd8/nHuhho+3J5bc/ML4p3u2Ly7F/Svagnh9zu
 3B1IyW0hKTvXjhUe8U1x0LAyGXLVIsDXdwWIEHAk6aRs7cKNM5oEVofXxVESr5n0
 xORbhbI/vgYLRQ60qRbbBoNnsW4g2g6gpEtnE3cYv3DAak3z9xnpQ0kKhOMFa5mg
 LhgN46xC7h7R8SQjM07Ivi/ZPDcjmPeQ0XFnjH5Wcm4Bqk9/LpI2rbyreulL4T15
 YoLmQk+pVuCqOoFmMF1SzGMnDvFd6xR6KlcW4WCZ03eaiAtnRB1y1RFahwJU8HNx
 AWlUncMrJsQ23iKO+cECOn16/DkPqHaNiLGRZw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1749064035; x=
 1749150435; bh=o7MrzXcTeeHIrD1Gf9FUqBWz3KoEs5WcMF39DjN+8Ts=; b=B
 ZirQKygjcLsPaEDqF1Vop/zdnvWkXet+FwO+sERnTNNNCYxPepDBaYksHjKAxjlS
 ZxK/VebD716l+nKJi8gLPy+Yud1qJ3gFi8b0zCii2a/Gv7vlSE7UnqiOZpUf1RO5
 jxDXnUUzbBLr6t850KYl+5g3p3x41Zi+PWiO8Y9QEJGFydZ4695S9Wno8nop2lDH
 ewhUv0pXrW1xVd5Cmx7c7revT9pUZgnHdfKHTuhyz5B+Kiu1c/0VehdtaDSU+RBq
 GHOYr1Juayyz3Y0h2mR/jmpf4NRJFyzsisnRDaas/WQLK0knbPBqy36J0pEjzdPU
 rjEZG3ceuNUjRBzI4lBPg==
X-ME-Sender: <xms:Y5lAaKkG6zPdUQuJNNByCr6nh3VqCpQdh_ybS2WcmpRWQCs9Vkn3hQ>
 <xme:Y5lAaB3IzzwKXe3d_A2kY2CHvriMOTFktfhtsOOqYiZ8g4Z1LgK7XZ8advERjMPKE
 xLOUPbUVcx46JXbVzE>
X-ME-Received: <xmr:Y5lAaIqaXipOQbIDANBl4L8jgLSuJedpDmfLKoUeXCpITmg-1y7GMKOBjinxSg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddvheehucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefujghffffkgggtgfesthhqredttddtjeen
 ucfhrhhomhepufhtvghvvghnucetlhhlvghnuceoshhtvghvvghnsehsthgvsggrlhhivg
 hnrdgtohhmqeenucggtffrrghtthgvrhhnpeefvdduheefuedvteevteeiveejgedtteeg
 hfelgfegueehvefhffeliedvteeiudenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomhdpnhgs
 pghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiise
 hgnhhurdhorhhgpdhrtghpthhtohepjhhohhhnfiesghhnuhdrohhrghdprhgtphhtthho
 pehshhhivghlughssehmshhrlhdrtghomhdprhgtphhtthhopeejjeelvdekseguvggssg
 hughhsrdhgnhhurdhorhhg
X-ME-Proxy: <xmx:Y5lAaOk0O3GJzJPN4HFk70pjgzKxSUwMKCDyVn7KiG1up8wGXO8yMQ>
 <xmx:Y5lAaI2hzniavlvS5Z8kK08zQFaj2THZ8GxgnK3REMI4ug9VJazPqQ>
 <xmx:Y5lAaFsTAso_0E9FlrCiSPATdtKLwOmq-g0PuDamofS2naDa7Hoidg>
 <xmx:Y5lAaEWRxxRXAAYmFGhWwzgE8brteqnQpqHfqMFsjSl3LkcE_WLnXQ>
 <xmx:Y5lAaJu85w79G_OC8evN4KSo6xB04sTAYbjvnsexgOE3V9490LqxxF9b>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 4 Jun 2025 15:07:14 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <86v7plvvma.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
Date: Wed, 04 Jun 2025 12:07:12 -0700
Message-ID: <875xhbgwbj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Steven Allen <steven@HIDDEN>
>> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
>> Date: Tue, 27 May 2025 09:38:28 -0700
>>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>> >> From: Steven Allen <steven@HIDDEN>
>> >> Cc: Michael Shields <shields@HIDDEN>, 77928 <at> debbugs.gnu.org
>> >> Date: Mon, 26 May 2025 18:26:24 -0700
>> >>
>> >> John Wiegley <johnw@HIDDEN> writes:
>> >>
>> >> >>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>> >> >
>> >> >>> From: Michael Shields <shields@HIDDEN>
>> >> >>> Date: Mon, 19 May 2025 22:51:29 -0700
>> >> >>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
>> >> >>>
>> >> >>> I think I understand the issue, but not its solution. There are m=
ore or less three standard ways to change
>> >> >>> faces now: Customize, themes, and use-package :custom-face. But t=
here is no clear way to resolve the
>> >> >>> ordering between them, or whether they replace or inherit at each=
 level. The behavior I was surprised by,
>> >> >>> and that has been reported previously, is that there was no way t=
o specify a replacement for face settings.
>> >> >>> But Steven is surprised by the fact that things now happen at a l=
evel below theme application, and the theme
>> >> >>> replaces instead of inherits the defface spec.
>> >> >
>> >> >> John, could you perhaps help us out here?  Bug#77928 was about
>> >> >> :custom-face, which is a use-package feature.  I don't really
>> >> >> understand how this feature is supposed to work, given that
>> >> >> use-package produces macros whose effect happens when a package is
>> >> >> loaded, and given that other methods of face definition are availa=
ble.
>> >> >
>> >> > All that use-package is doing here is expanding the =E2=80=98:custo=
m-face=E2=80=98 declaration
>> >> > into this call:
>> >> >
>> >> >   (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>> >> >
>> >> > Should it be calling something other than `face-spec-set' now?
>> >>
>> >> That's what it used to be before the change in question. Now it expan=
ds
>> >> to:
>> >>
>> >>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t)) =
face-defface-spec))
>> >>
>> >> The issue here is that the themed face spec has a higher priority than
>> >> the "defface" spec.
>> >
>> > But AFAIU, face-defface-spec records the theme customizations of the
>> > face as well, no?  I'm afraid I don't quite understand what you are
>> > saying here, could you please explain and elaborate?
>>
>> face-defface-spec is only used when declaring faces, not when
>> customizing/theming them. The theme-face property is used to store the
>> themed face, customized-face is used to store customizations through the
>> "custom" system, and face-override-spec is used otherwise.
>>
>> You can look at a face's plist to get a better idea of how this works:
>>
>>     (symbol-plist 'default)
>>
>> Also look at the documentation for facep-spec-recalc: theme and/or user
>> customizations override the "defface" spec, causing the bug I'm seeing h=
ere.
>>
>> >> IMO, this should be reverted to just:
>> >>
>> >>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>> >>
>> >> (leaving the part of the patch that marks the face as "modified" inta=
ct).
>> >>
>> >> >From what I can tell, the patch in question was attempting to solve =
an
>> >> issue where overriding faces get "merged" with "lower" priority face
>> >> specs but, IMO, that isn't really a bug.
>> >
>> > Why don't you consider that a bug?
>>
>> That's how face customization works. E.g.:
>>
>>     (custom-set-faces '(font-lock-keyword-face ((t :italic t)) t))
>>
>> Will make keywords italic but won't override the theme/defaults unless
>> requested. E.g.:
>>
>>     (custom-set-faces
>>       '(font-lock-keyword-face ((t :italic t :foreground unspecified)) t=
))
>>
>> Will "unset" the foreground (it'll inherit from the face's parent). And:
>>
>>     (custom-set-faces
>>       '(font-lock-keyword-face ((t :italic t :foreground reset)) t))
>>
>> Will "reset" the foreground to the default face's foreground.
>>
>> This makes it possible to compose/modify faces without completely
>> overriding them. E.g., if you want a specific face to be bold/italic but
>> otherwise want the underlying theme to apply. This makes it possible to,
>> e.g., customize certain aspects of faces across themes.
>
> Thanks.
>
> Unfortunately, what you say above seems to assume the level of
> detailed knowledge in themes, use-package, and their interactions with
> Customize that I don't have.  I think I know how faces work and how
> face merging works, but after reading your explanations and examples
> several times I'm sorry to say that I'm utterly confused by what you
> say and don't have any clear idea about the problem, its consequences,
> and your analysis of the original issue and its fix.
>
> So either someone explains this to me in terms I can understand and
> reason about, or we will need to wait for someone more knowledgeable
> in this stuff to pick up the gauntlet.
>
> Alternatively, if you convince John and Michael that the changes you
> think should be done are indeed the way to go, I will gladly delegate
> the decision to you three.
>
> Sorry I couldn't be of more help.

Unfortunately, my understanding is also very limited. Instead of trying
to explain the code (which I barely understand) I'll focus on explaining
the symptoms and my expectations.

There are two parts to this report:

1. Bug: use-package's ":custom-face" no longer overrides themed
  faces.
2. Opinion: ":custom-face" SHOULD merge the user-specified face spec
  with the underlying face spec (contrary to the original report).

**First Part (the clear bug)**

Before the commit in question, the :custom-face use-package keyword
(effectively=E2=80=A0) expanded to:

    (face-spec-set face spec)

Now, it (effectively=E2=80=A1) expands to:

    (face-spec-set face spec 'face-defface-spec)

This is a problem because this new code sets the DEFAULT spec for the
face while themes override the default spec. This means user
customizations via ":custom-face" fail to override the theme.

=E2=80=A0 Technically, it used to expand to (where "def" is `(FACE SPEC)'):

    (apply #'face-spec-set (backquote ,def))

=E2=80=A1 Technically, it now expands to:

    (progn
       (apply #'face-spec-set (append (backquote ,def) '(face-defface-spec)=
))
       (put ',(car def) 'face-modified t))

**Second Part**

IMO, :custom-face SHOULD behave like "custom-set-faces". Faces
specs applied via "custom-set-faces" are MERGED with the underlying face
(as use-package's ":custom-face" used to do behave). You can test this
behavior by opening any syntax-highlighted code and evaluating:

    (custom-set-faces '(font-lock-keyword-face ((t :italic t)) t))

All keywords will be made italic but will otherwise retain their coloring.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 31 May 2025 06:44:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 31 02:44:37 2025
Received: from localhost ([127.0.0.1]:54765 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uLFxL-0000MG-3V
	for submit <at> debbugs.gnu.org; Sat, 31 May 2025 02:44:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57194)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uLFxI-0000Kp-5K
 for 77928 <at> debbugs.gnu.org; Sat, 31 May 2025 02:44:32 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uLFxC-0002NC-11; Sat, 31 May 2025 02:44:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=KCD5TsUEeCKuuGz69dveQ8p4+9XOMa6ckelXHjJlZnw=; b=K/1b3hZ717s9
 mHPX0utzzf2XccnKoPtdjBXj2lsDl8au9TXNRsvi20y3mkhp7r5HjnDyFQyZMVVazOrc58PqYKIwh
 FxdbAhCQjxA55ei8vTIcYJFxXviWtT6CcdCThBi+Fo9UCeK9EKKBgzbFgj2SolA2bWo2o/1SKt+yg
 Eh0O8/qWWcdNYzj53pq5muwhURbysCtgjp0dg8voaEVgIziDF6ZXf9r83KftgdeuW/atx/nZshsgj
 qsFVe2U4xZVHnsjSmPy7ZCgh6RLyW0soHAaw4vBWODiqQL2ApE9OQez6CKJWJnsrT25NuuXofKD3F
 CtJyyLb9GBlKxSGO6oHzCw==;
Date: Sat, 31 May 2025 09:44:23 +0300
Message-Id: <8634clth2w.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andy Moreton <andrewjmoreton@HIDDEN>
In-Reply-To: <86r006rm8l.fsf@HIDDEN> (message from Andy Moreton on Fri, 30
 May 2025 19:23:38 +0100)
Subject: Re: bug#77928: 31.0.50;
 ebcde0f90f6 (bug#77928) breaks :custom-face for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
 <86r006rm8l.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Steven Allen <steven@HIDDEN>,
 shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andy Moreton <andrewjmoreton@HIDDEN>
> Date: Fri, 30 May 2025 19:23:38 +0100
> 
> On Wed 28 May 2025, Eli Zaretskii wrote:
> 
> > Unfortunately, what you say above seems to assume the level of
> > detailed knowledge in themes, use-package, and their interactions with
> > Customize that I don't have.  I think I know how faces work and how
> > face merging works, but after reading your explanations and examples
> > several times I'm sorry to say that I'm utterly confused by what you
> > say and don't have any clear idea about the problem, its consequences,
> > and your analysis of the original issue and its fix.
> >
> > So either someone explains this to me in terms I can understand and
> > reason about, or we will need to wait for someone more knowledgeable
> > in this stuff to pick up the gauntlet.
> >
> > Alternatively, if you convince John and Michael that the changes you
> > think should be done are indeed the way to go, I will gladly delegate
> > the decision to you three.
> >
> > Sorry I couldn't be of more help.
> 
> I'm not at all expert, but this effect is easily reproducible.
> Using the mingw64 build on Windows:
> 
> a) build from master, and start with "runemacs.exe -Q"
> b) in the scratch buffer, evaluate:
>   (use-package faces
>     :custom-face
>     (default
>      ((((class color)) :font "DejaVu Sans Mono-9" :background "gray85")))
>     (variable-pitch
>      ((((class color)) :font "Liberation Sans-10"))) )
> 
> c) Display a tooltip e.g. from moving the mouse over the major mode
>    indicator on the modeline. The tooltip is shown using a monospaced
>    font, even though the tooltip face inherits from variable-pitch.
> 
> d) "M-x describe-face RET tooltip RET" shows the tooltip face as
>    expected, with the sample text in a variable pitch font.
> 
> e) Repeat all steps, but instead of (b), evaluate:
>   (use-package faces
>     :init
>     (apply #'face-spec-set
>            '(variable-pitch
>              ((((class color)) :font "Liberation Sans-11"))))
>     :custom-face
>     (default
>      ((((class color)) :font "DejaVu Sans Mono-9" :background "gray85")))
>     )
> 
>    That produces the expected variable pitch font for the tooltip.
> 
> 
> Thus this is not working properly, even without interaction with themes.

Thanks.  Unfortunately, I'm not a bit wiser after reading your recipe
for several times (I don't have the Liberation Sans font here to fully
reproduce it).  You are showing the results using use-package, which I
don't use and know very little about, and John did agree with the
original patch back when it was proposed.

So I'm still unable to decide what to do with this, because I don't
understands well enough what is going on and what is being claimed.

But maybe someone else of the participants (whom you elided, and I
added back now) could understand better what you said, and explain it
or suggest a solution.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2025 18:24:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 30 14:24:04 2025
Received: from localhost ([127.0.0.1]:50604 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uL4Oe-0001jT-2F
	for submit <at> debbugs.gnu.org; Fri, 30 May 2025 14:24:04 -0400
Received: from lists.gnu.org ([2001:470:142::17]:52864)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1uL4Ob-0001j6-1Q
 for submit <at> debbugs.gnu.org; Fri, 30 May 2025 14:23:58 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1uL4OV-000380-67
 for bug-gnu-emacs@HIDDEN; Fri, 30 May 2025 14:23:51 -0400
Received: from ciao.gmane.io ([116.202.254.214])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1uL4OS-0000UN-HG
 for bug-gnu-emacs@HIDDEN; Fri, 30 May 2025 14:23:49 -0400
Received: from list by ciao.gmane.io with local (Exim 4.92)
 (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1uL4OP-0007z6-LF
 for bug-gnu-emacs@HIDDEN; Fri, 30 May 2025 20:23:45 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Andy Moreton <andrewjmoreton@HIDDEN>
Subject: Re: bug#77928: 31.0.50;
 ebcde0f90f6 (bug#77928) breaks :custom-face for themed faces
Date: Fri, 30 May 2025 19:23:38 +0100
Message-ID: <86r006rm8l.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:yUyRngEJU7ADcrCwhPscjpfSVrg=
Received-SPF: pass client-ip=116.202.254.214;
 envelope-from=geb-bug-gnu-emacs@HIDDEN; helo=ciao.gmane.io
X-Spam_score_int: 0
X-Spam_score: 0.0
X-Spam_bar: /
X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001,
 FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Wed 28 May 2025, Eli Zaretskii wrote:

>> From: Steven Allen <steven@HIDDEN>
>> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
>> Date: Tue, 27 May 2025 09:38:28 -0700
>> 
>> Eli Zaretskii <eliz@HIDDEN> writes:
>> 
>> >> From: Steven Allen <steven@HIDDEN>
>> >> Cc: Michael Shields <shields@HIDDEN>, 77928 <at> debbugs.gnu.org
>> >> Date: Mon, 26 May 2025 18:26:24 -0700
>> >>
>> >> John Wiegley <johnw@HIDDEN> writes:
>> >>
>> >> >>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>> >> >
>> >> >>> From: Michael Shields <shields@HIDDEN>
>> >> >>> Date: Mon, 19 May 2025 22:51:29 -0700
>> >> >>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
>> >> >>>
>> >> >>> I think I understand the issue, but not its solution. There are more or less three standard ways to change
>> >> >>> faces now: Customize, themes, and use-package :custom-face. But there is no clear way to resolve the
>> >> >>> ordering between them, or whether they replace or inherit at each level. The behavior I was surprised by,
>> >> >>> and that has been reported previously, is that there was no way to specify a replacement for face settings.
>> >> >>> But Steven is surprised by the fact that things now happen at a level below theme application, and the theme
>> >> >>> replaces instead of inherits the defface spec.
>> >> >
>> >> >> John, could you perhaps help us out here?  Bug#77928 was about
>> >> >> :custom-face, which is a use-package feature.  I don't really
>> >> >> understand how this feature is supposed to work, given that
>> >> >> use-package produces macros whose effect happens when a package is
>> >> >> loaded, and given that other methods of face definition are available.
>> >> >
>> >> > All that use-package is doing here is expanding the ¡®:custom-face¡® declaration
>> >> > into this call:
>> >> >
>> >> >   (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>> >> >
>> >> > Should it be calling something other than `face-spec-set' now?
>> >>
>> >> That's what it used to be before the change in question. Now it expands
>> >> to:
>> >>
>> >>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t)) face-defface-spec))
>> >>
>> >> The issue here is that the themed face spec has a higher priority than
>> >> the "defface" spec.
>> >
>> > But AFAIU, face-defface-spec records the theme customizations of the
>> > face as well, no?  I'm afraid I don't quite understand what you are
>> > saying here, could you please explain and elaborate?
>> 
>> face-defface-spec is only used when declaring faces, not when
>> customizing/theming them. The theme-face property is used to store the
>> themed face, customized-face is used to store customizations through the
>> "custom" system, and face-override-spec is used otherwise.
>> 
>> You can look at a face's plist to get a better idea of how this works:
>> 
>>     (symbol-plist 'default)
>> 
>> Also look at the documentation for facep-spec-recalc: theme and/or user
>> customizations override the "defface" spec, causing the bug I'm seeing here.
>> 
>> >> IMO, this should be reverted to just:
>> >>
>> >>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>> >>
>> >> (leaving the part of the patch that marks the face as "modified" intact).
>> >>
>> >> >From what I can tell, the patch in question was attempting to solve an
>> >> issue where overriding faces get "merged" with "lower" priority face
>> >> specs but, IMO, that isn't really a bug.
>> >
>> > Why don't you consider that a bug?
>> 
>> That's how face customization works. E.g.:
>> 
>>     (custom-set-faces '(font-lock-keyword-face ((t :italic t)) t))
>> 
>> Will make keywords italic but won't override the theme/defaults unless
>> requested. E.g.:
>> 
>>     (custom-set-faces
>>       '(font-lock-keyword-face ((t :italic t :foreground unspecified)) t))
>> 
>> Will "unset" the foreground (it'll inherit from the face's parent). And:
>> 
>>     (custom-set-faces
>>       '(font-lock-keyword-face ((t :italic t :foreground reset)) t))
>> 
>> Will "reset" the foreground to the default face's foreground.
>> 
>> This makes it possible to compose/modify faces without completely
>> overriding them. E.g., if you want a specific face to be bold/italic but
>> otherwise want the underlying theme to apply. This makes it possible to,
>> e.g., customize certain aspects of faces across themes.
>
> Thanks.
>
> Unfortunately, what you say above seems to assume the level of
> detailed knowledge in themes, use-package, and their interactions with
> Customize that I don't have.  I think I know how faces work and how
> face merging works, but after reading your explanations and examples
> several times I'm sorry to say that I'm utterly confused by what you
> say and don't have any clear idea about the problem, its consequences,
> and your analysis of the original issue and its fix.
>
> So either someone explains this to me in terms I can understand and
> reason about, or we will need to wait for someone more knowledgeable
> in this stuff to pick up the gauntlet.
>
> Alternatively, if you convince John and Michael that the changes you
> think should be done are indeed the way to go, I will gladly delegate
> the decision to you three.
>
> Sorry I couldn't be of more help.

I'm not at all expert, but this effect is easily reproducible.
Using the mingw64 build on Windows:

a) build from master, and start with "runemacs.exe -Q"
b) in the scratch buffer, evaluate:
  (use-package faces
    :custom-face
    (default
     ((((class color)) :font "DejaVu Sans Mono-9" :background "gray85")))
    (variable-pitch
     ((((class color)) :font "Liberation Sans-10"))) )

c) Display a tooltip e.g. from moving the mouse over the major mode
   indicator on the modeline. The tooltip is shown using a monospaced
   font, even though the tooltip face inherits from variable-pitch.

d) "M-x describe-face RET tooltip RET" shows the tooltip face as
   expected, with the sample text in a variable pitch font.

e) Repeat all steps, but instead of (b), evaluate:
  (use-package faces
    :init
    (apply #'face-spec-set
           '(variable-pitch
             ((((class color)) :font "Liberation Sans-11"))))
    :custom-face
    (default
     ((((class color)) :font "DejaVu Sans Mono-9" :background "gray85")))
    )

   That produces the expected variable pitch font for the tooltip.


Thus this is not working properly, even without interaction with themes.

    AndyM





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 May 2025 17:01:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 28 13:01:16 2025
Received: from localhost ([127.0.0.1]:55752 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uKK9U-000714-3p
	for submit <at> debbugs.gnu.org; Wed, 28 May 2025 13:01:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54780)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johnw@HIDDEN>) id 1uKK9Q-00070K-P8
 for 77928 <at> debbugs.gnu.org; Wed, 28 May 2025 13:01:13 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johnw@HIDDEN>)
 id 1uKK9K-0001NE-Ty; Wed, 28 May 2025 13:01:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=5sI0X17hJU1ZuzYK/z5YZfI/DksWYfJDMruATG4kM9g=; b=E2JD/yvp3BblxSoZY9nI
 WU3HFO0QplvPvfg1Fb5Z4Xy3Qvk0/Bkne2pJwnmmoAS/pR9EujUT9lcA6iTyK9ErD5syvU7oIljEf
 Z2VnreUvqSMMKj0frHQeAD3ac0ov81oQPRwegcSsWEcVpm/3r2vtj8cy/cnBAbn0a0zXqQxqECHmt
 ip1CwfdDD06iESN6bkHZXa9ANiTfOwiu1+yLrIr5eDF29QGIZUBkg6KXSzJzh5VnbZ1jDu1f5Un1N
 IekQCxEzrSKoRoY1pYTaXi1un/3c9Rs70UPEZakJgrllbnbd67YgaDbkm/+jOeDM30khK3bZPCZ1r
 Fgcc7M9BgLyLqw==;
X-ME-Sender: <xms:UUE3aAtbg0BusIxUKoIjB7jaUQGjJ-lPtEpzVMh_BN5agO98tQvIpQ>
 <xme:UUE3aNfB0zsp-ZIGYkOj4llCiHgqMeGy6MUrHg3JIEhV-DxajO-3j_pt9FFkYt-9C
 gvuEfdg1uSlIfjBxw>
X-ME-Received: <xmr:UUE3aLwK5dRPxdTUNkDskCJkXPq1TozT-r4UDrB86Uxtm78Mri4KRa6GR2XU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgddvfeekudculddtuddrgeefvddrtd
 dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft
 fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd
 dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhff
 kfgfgggtgfesthhqredttderjeenucfhrhhomheplfhohhhnucghihgvghhlvgihuceojh
 hohhhnfiesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepiefftdehvdeivddtffef
 ffffveekledujeeiledtudefheefhffhfeegjeetfeegnecuffhomhgrihhnpehnvgifrg
 hrthhishgrnhhsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm
 rghilhhfrhhomhepjhhohhhnfidomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthi
 dqieekjeektdelgeegqddujeejheefkeduiedqjhhohhhnfieppehgnhhurdhorhhgsehn
 vgifrghrthhishgrnhhsrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmth
 hpohhuthdprhgtphhtthhopeejjeelvdekseguvggssghughhsrdhgnhhurdhorhhgpdhr
 tghpthhtohepshhhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpthhtohepshhtvghvvg
 hnsehsthgvsggrlhhivghnrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-ME-Proxy: <xmx:UUE3aDPmXZ_uybZnxgdtGj6OVDtGDgtSjYP0mWa_aTB5bRVKAuZpKA>
 <xmx:UUE3aA-aFOVZu4Gb-YxEUUhDWgDC078zkPzk6HCFD1AlISjZGYrYtw>
 <xmx:UUE3aLWu6ZRkRhtdgBQbHdT9aItqZsbyuqP68Dqq_0-vh14QJTRjEw>
 <xmx:UUE3aJeS79HfuNVMqgrjUd3sXKsPPqEf3aFQP_JP80DSmkNyD4I56A>
 <xmx:UUE3aCfhmb6EruQigAL63r5rCnmlwbMiG0_kdGZsvyaz_eMR2f0c2Wy_>
Feedback-ID: ib64945b7:Fastmail
From: John Wiegley <johnw@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <86v7plvvma.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 28 May
 2025 14:10:37 +0300")
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN> <86v7plvvma.fsf@HIDDEN>
Date: Wed, 28 May 2025 10:01:03 -0700
Message-ID: <m2jz60hdps.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Steven Allen <steven@HIDDEN>,
 shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:

> So either someone explains this to me in terms I can understand and reason
> about, or we will need to wait for someone more knowledgeable in this stu=
ff
> to pick up the gauntlet.

> Alternatively, if you convince John and Michael that the changes you think
> should be done are indeed the way to go, I will gladly delegate the decis=
ion
> to you three.

I=E2=80=99m not an expert in face customization either, so I really can=E2=
=80=99t weigh in on
the merits of this change. I=E2=80=99d love a deep explanation also!

--=20
John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 28 May 2025 11:10:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 28 07:10:48 2025
Received: from localhost ([127.0.0.1]:51428 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uKEgJ-0007BC-W0
	for submit <at> debbugs.gnu.org; Wed, 28 May 2025 07:10:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58498)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uKEgI-0007Ae-4s
 for 77928 <at> debbugs.gnu.org; Wed, 28 May 2025 07:10:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uKEgB-0002AI-TF; Wed, 28 May 2025 07:10:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=3/mPVPUlh6apJtBTlz4RFdK+NWvQ2h2p6an1ipHAlXM=; b=DdBgOWljcvBael6Trr8s
 GstQY2J+1dGNvPpyzgGSe+buITK4mdmQzf59Kf15qXvVEaee9zoEdjolDu8RF+JbE3CbDALXqNLc6
 zLgA2Q8xNKsSBEo8HI78aBcc6v/BaXIc89SLMdQvF411ABRx0KJ7zmHJ87vKkyq4fw0rtf3KD+D3e
 DXQsIIBhEf8KVTq22kR2TiLgObktfctbTJ8dtCKdYmzZqBLUBAdUfqTgRi+dn2+WfnR7bkwBfmTJL
 sQfSIDxqZ3K16CZmsZ27MkrLyLbxNystUPj7/QDIOjh+hOCztClwoCtCeTcl4F9b/VOMuiTbiLZ3Q
 PTHtza3mABQVDg==;
Date: Wed, 28 May 2025 14:10:37 +0300
Message-Id: <86v7plvvma.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Steven Allen <steven@HIDDEN>
In-Reply-To: <87msayc8l7.fsf@HIDDEN> (message from Steven Allen on Tue, 
 27 May 2025 09:38:28 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
 <87msayc8l7.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Steven Allen <steven@HIDDEN>
> Cc: johnw@HIDDEN, shields@HIDDEN, 77928 <at> debbugs.gnu.org
> Date: Tue, 27 May 2025 09:38:28 -0700
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Steven Allen <steven@HIDDEN>
> >> Cc: Michael Shields <shields@HIDDEN>, 77928 <at> debbugs.gnu.org
> >> Date: Mon, 26 May 2025 18:26:24 -0700
> >>
> >> John Wiegley <johnw@HIDDEN> writes:
> >>
> >> >>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
> >> >
> >> >>> From: Michael Shields <shields@HIDDEN>
> >> >>> Date: Mon, 19 May 2025 22:51:29 -0700
> >> >>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
> >> >>>
> >> >>> I think I understand the issue, but not its solution. There are more or less three standard ways to change
> >> >>> faces now: Customize, themes, and use-package :custom-face. But there is no clear way to resolve the
> >> >>> ordering between them, or whether they replace or inherit at each level. The behavior I was surprised by,
> >> >>> and that has been reported previously, is that there was no way to specify a replacement for face settings.
> >> >>> But Steven is surprised by the fact that things now happen at a level below theme application, and the theme
> >> >>> replaces instead of inherits the defface spec.
> >> >
> >> >> John, could you perhaps help us out here?  Bug#77928 was about
> >> >> :custom-face, which is a use-package feature.  I don't really
> >> >> understand how this feature is supposed to work, given that
> >> >> use-package produces macros whose effect happens when a package is
> >> >> loaded, and given that other methods of face definition are available.
> >> >
> >> > All that use-package is doing here is expanding the ‘:custom-face‘ declaration
> >> > into this call:
> >> >
> >> >   (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
> >> >
> >> > Should it be calling something other than `face-spec-set' now?
> >>
> >> That's what it used to be before the change in question. Now it expands
> >> to:
> >>
> >>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t)) face-defface-spec))
> >>
> >> The issue here is that the themed face spec has a higher priority than
> >> the "defface" spec.
> >
> > But AFAIU, face-defface-spec records the theme customizations of the
> > face as well, no?  I'm afraid I don't quite understand what you are
> > saying here, could you please explain and elaborate?
> 
> face-defface-spec is only used when declaring faces, not when
> customizing/theming them. The theme-face property is used to store the
> themed face, customized-face is used to store customizations through the
> "custom" system, and face-override-spec is used otherwise.
> 
> You can look at a face's plist to get a better idea of how this works:
> 
>     (symbol-plist 'default)
> 
> Also look at the documentation for facep-spec-recalc: theme and/or user
> customizations override the "defface" spec, causing the bug I'm seeing here.
> 
> >> IMO, this should be reverted to just:
> >>
> >>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
> >>
> >> (leaving the part of the patch that marks the face as "modified" intact).
> >>
> >> >From what I can tell, the patch in question was attempting to solve an
> >> issue where overriding faces get "merged" with "lower" priority face
> >> specs but, IMO, that isn't really a bug.
> >
> > Why don't you consider that a bug?
> 
> That's how face customization works. E.g.:
> 
>     (custom-set-faces '(font-lock-keyword-face ((t :italic t)) t))
> 
> Will make keywords italic but won't override the theme/defaults unless
> requested. E.g.:
> 
>     (custom-set-faces
>       '(font-lock-keyword-face ((t :italic t :foreground unspecified)) t))
> 
> Will "unset" the foreground (it'll inherit from the face's parent). And:
> 
>     (custom-set-faces
>       '(font-lock-keyword-face ((t :italic t :foreground reset)) t))
> 
> Will "reset" the foreground to the default face's foreground.
> 
> This makes it possible to compose/modify faces without completely
> overriding them. E.g., if you want a specific face to be bold/italic but
> otherwise want the underlying theme to apply. This makes it possible to,
> e.g., customize certain aspects of faces across themes.

Thanks.

Unfortunately, what you say above seems to assume the level of
detailed knowledge in themes, use-package, and their interactions with
Customize that I don't have.  I think I know how faces work and how
face merging works, but after reading your explanations and examples
several times I'm sorry to say that I'm utterly confused by what you
say and don't have any clear idea about the problem, its consequences,
and your analysis of the original issue and its fix.

So either someone explains this to me in terms I can understand and
reason about, or we will need to wait for someone more knowledgeable
in this stuff to pick up the gauntlet.

Alternatively, if you convince John and Michael that the changes you
think should be done are indeed the way to go, I will gladly delegate
the decision to you three.

Sorry I couldn't be of more help.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 May 2025 16:38:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 27 12:38:40 2025
Received: from localhost ([127.0.0.1]:43121 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uJxK3-000824-FA
	for submit <at> debbugs.gnu.org; Tue, 27 May 2025 12:38:40 -0400
Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]:57493)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uJxK0-00081b-IP
 for 77928 <at> debbugs.gnu.org; Tue, 27 May 2025 12:38:37 -0400
Received: from phl-compute-04.internal (phl-compute-04.phl.internal
 [10.202.2.44])
 by mailfout.stl.internal (Postfix) with ESMTP id C2BB81140128;
 Tue, 27 May 2025 12:38:30 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-04.internal (MEProxy); Tue, 27 May 2025 12:38:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm3;
 t=1748363910; x=1748450310; bh=WSPuDLBPtLHsWZt82eXmg5c0Bu3QC2+V
 7Zkxeg2mpmQ=; b=beK9ZXFjHbcX9D5llQohTp++xgQfHnwWDiTUrn/O0o4i3uBW
 oJAe3/RtMOTmKhasuoH2ms5sBu7U4wMUbss5B8Oyvc8oapa0OQ4VLCBMAMuzE/pn
 TM0D1BsHy3IdElU3rl04POUVNTQRhH199g9N7gi7QiwhmFCBSKWmhkOLsWCGdk5n
 VNexapoy4T7yjnAPRRTYEda7TED+IJKFFYG3e6SkdHpMj0WHTcrc3Kg3IyQ0EYKx
 Dv5aMqcOu/Ic48KypbZnUaOBPxE4cyvj1FlLFccHy5ynXy7CFDHJL0PVyarx+5Xm
 wx8sBjBAB2+ALb+ACRhDrGGjeXSTkrN5LWuX2A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1748363910; x=
 1748450310; bh=WSPuDLBPtLHsWZt82eXmg5c0Bu3QC2+V7Zkxeg2mpmQ=; b=n
 QflSESSAzRuIABw9uKxM91UCx65vblCrTZg+o35qpdJJ4AVX7jtFpNzWstflwTS1
 Kz2rt/eI6ShgDiSUZhZr9ZOCsKh+w29Oe2LqwCafOmKivSXCc25E4oz8lhYXaffp
 +2cp9KUH0/7mV5l+pYqAUdYndn5D0P+F1vOmp2MbylLnZlaRlzoMc8Eto1Y5TU8p
 DLCcy9h2SATDMQ5UCrydyrqP/mlJVoS5OL7fiQDu0bghp59o2v07QpQP8a2EL3yG
 N5Zy4V2y1lNuk2j85+c/dfziCd8ETNES2GuxTFrItG3BkjKVAG2sr8L6MxQaI3zC
 62uvWyefUt1mTiF5K9agQ==
X-ME-Sender: <xms:heo1aE1zX_eOb2Zrn0ivRazFpbZ8b9leAUmgbsu-9LNF1wVtW5wVKg>
 <xme:heo1aPFhLW7MNwIU7QOnqmuzDD9hIVMcKqNUfF6AMpwRWEOmJ-SKd_PDzTBN8wfMl
 XiBdZ3INM5usrj-9jo>
X-ME-Received: <xmr:heo1aM6R3e4NF42_b5pIsV2zZq4LZXrVixtVsrMSmzEFxmwbmvZw3gEg5m4kgKpZNlS_xOVIdH3cdgBFuxSfMn90a9AaY-PVhA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgddvtdekkeculddtuddrgeefvddrtd
 dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft
 fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd
 dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhff
 kfggtgfgsehtqhertddttdejnecuhfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehsth
 gvvhgvnhesshhtvggsrghlihgvnhdrtghomheqnecuggftrfgrthhtvghrnhepfedvudeh
 feeuvdetveetieevjeegtdetgefhlefggeeuheevhfffleeivdetiedunecuvehluhhsth
 gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhtvghvvghnsehsthgv
 sggrlhhivghnrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuth
 dprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehjohhhnhifsehg
 nhhurdhorhhgpdhrtghpthhtohepshhhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpth
 htohepjeejledvkeesuggvsggsuhhgshdrghhnuhdrohhrgh
X-ME-Proxy: <xmx:huo1aN2UIRgd4tzNJJxOLBfZ3oZ4YnlekSv0vt0ykSGBMQ-fEetXSQ>
 <xmx:huo1aHG0CpAt5YNwwDdYTec7vSjNzC1Qbvv8CmIQatsZv6bemnljYA>
 <xmx:huo1aG_2vsn_18ju1uy9yT6AKx5VgxdZA2Qe1r7G3JysIJD-3Epu7A>
 <xmx:huo1aMk4qFrxRQ3IFEoLhY4hUv0A1fRpwULFS9ZUrHSNxpVLALw1qQ>
 <xmx:huo1aF88iOq_GgppYH3NeRNPdV8uz6G4q-Mp2Yi26CDjfjhtfLpHr2Jk>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 27 May 2025 12:38:29 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <86iklmxppf.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN> <86iklmxppf.fsf@HIDDEN>
Date: Tue, 27 May 2025 09:38:28 -0700
Message-ID: <87msayc8l7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Steven Allen <steven@HIDDEN>
>> Cc: Michael Shields <shields@HIDDEN>, 77928 <at> debbugs.gnu.org
>> Date: Mon, 26 May 2025 18:26:24 -0700
>>
>> John Wiegley <johnw@HIDDEN> writes:
>>
>> >>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>> >
>> >>> From: Michael Shields <shields@HIDDEN>
>> >>> Date: Mon, 19 May 2025 22:51:29 -0700
>> >>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
>> >>>
>> >>> I think I understand the issue, but not its solution. There are more=
 or less three standard ways to change
>> >>> faces now: Customize, themes, and use-package :custom-face. But ther=
e is no clear way to resolve the
>> >>> ordering between them, or whether they replace or inherit at each le=
vel. The behavior I was surprised by,
>> >>> and that has been reported previously, is that there was no way to s=
pecify a replacement for face settings.
>> >>> But Steven is surprised by the fact that things now happen at a leve=
l below theme application, and the theme
>> >>> replaces instead of inherits the defface spec.
>> >
>> >> John, could you perhaps help us out here?  Bug#77928 was about
>> >> :custom-face, which is a use-package feature.  I don't really
>> >> understand how this feature is supposed to work, given that
>> >> use-package produces macros whose effect happens when a package is
>> >> loaded, and given that other methods of face definition are available.
>> >
>> > All that use-package is doing here is expanding the =E2=80=98:custom-f=
ace=E2=80=98 declaration
>> > into this call:
>> >
>> >   (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>> >
>> > Should it be calling something other than `face-spec-set' now?
>>
>> That's what it used to be before the change in question. Now it expands
>> to:
>>
>>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t)) fac=
e-defface-spec))
>>
>> The issue here is that the themed face spec has a higher priority than
>> the "defface" spec.
>
> But AFAIU, face-defface-spec records the theme customizations of the
> face as well, no?  I'm afraid I don't quite understand what you are
> saying here, could you please explain and elaborate?

face-defface-spec is only used when declaring faces, not when
customizing/theming them. The theme-face property is used to store the
themed face, customized-face is used to store customizations through the
"custom" system, and face-override-spec is used otherwise.

You can look at a face's plist to get a better idea of how this works:

    (symbol-plist 'default)

Also look at the documentation for facep-spec-recalc: theme and/or user
customizations override the "defface" spec, causing the bug I'm seeing here.

>> IMO, this should be reverted to just:
>>
>>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>>
>> (leaving the part of the patch that marks the face as "modified" intact).
>>
>> >From what I can tell, the patch in question was attempting to solve an
>> issue where overriding faces get "merged" with "lower" priority face
>> specs but, IMO, that isn't really a bug.
>
> Why don't you consider that a bug?

That's how face customization works. E.g.:

    (custom-set-faces '(font-lock-keyword-face ((t :italic t)) t))

Will make keywords italic but won't override the theme/defaults unless
requested. E.g.:

    (custom-set-faces
      '(font-lock-keyword-face ((t :italic t :foreground unspecified)) t))

Will "unset" the foreground (it'll inherit from the face's parent). And:

    (custom-set-faces
      '(font-lock-keyword-face ((t :italic t :foreground reset)) t))

Will "reset" the foreground to the default face's foreground.

This makes it possible to compose/modify faces without completely
overriding them. E.g., if you want a specific face to be bold/italic but
otherwise want the underlying theme to apply. This makes it possible to,
e.g., customize certain aspects of faces across themes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 May 2025 11:23:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 27 07:23:23 2025
Received: from localhost ([127.0.0.1]:39336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uJsOw-0003rE-NY
	for submit <at> debbugs.gnu.org; Tue, 27 May 2025 07:23:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54492)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uJsOt-0003qe-5T
 for 77928 <at> debbugs.gnu.org; Tue, 27 May 2025 07:23:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uJsOm-0000E8-Ds; Tue, 27 May 2025 07:23:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=goN6GXAchzPbjP7cA6v2dgQ+GgKTo1zlIcQZQLMoCf8=; b=Kh2cnrki022Fl+HmTbSU
 f5uXCWgxJ8JpnkKe3vWxcbo9dH6Z5/hcdLG798NQpvs7UmS9FUKx48AmOXH7qWiBlCllCslFOEpNj
 Bbo8oq1pclbAdRt9vODAjp30ws03jwrOWE9YleO+WCtA2To/r/obEIQoVuwnI+Qz1Fp6jr1lBspCO
 XmegxadMGXvThZTxC1H2tOx5g7eqXHAGAR/B9st5DaJktQlmyPTI0eaPGlQxFIJAd0+lSeYrkjCz+
 h/Jjbs26zaENajlDghFTWCttQagOVGOfOBUujAeE7vUfAN2WgknRNBdCM6ED93BFMHr2xHXQ2Vuhn
 /ktIumkLVNbAlg==;
Date: Tue, 27 May 2025 14:23:08 +0300
Message-Id: <86iklmxppf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Steven Allen <steven@HIDDEN>
In-Reply-To: <87y0uialof.fsf@HIDDEN> (message from Steven Allen on Mon, 
 26 May 2025 18:26:24 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
 <87y0uialof.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, johnw@HIDDEN, shields@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Steven Allen <steven@HIDDEN>
> Cc: Michael Shields <shields@HIDDEN>, 77928 <at> debbugs.gnu.org
> Date: Mon, 26 May 2025 18:26:24 -0700
> 
> John Wiegley <johnw@HIDDEN> writes:
> 
> >>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
> >
> >>> From: Michael Shields <shields@HIDDEN>
> >>> Date: Mon, 19 May 2025 22:51:29 -0700
> >>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
> >>> 
> >>> I think I understand the issue, but not its solution. There are more or less three standard ways to change
> >>> faces now: Customize, themes, and use-package :custom-face. But there is no clear way to resolve the
> >>> ordering between them, or whether they replace or inherit at each level. The behavior I was surprised by,
> >>> and that has been reported previously, is that there was no way to specify a replacement for face settings.
> >>> But Steven is surprised by the fact that things now happen at a level below theme application, and the theme
> >>> replaces instead of inherits the defface spec.
> >
> >> John, could you perhaps help us out here?  Bug#77928 was about
> >> :custom-face, which is a use-package feature.  I don't really
> >> understand how this feature is supposed to work, given that
> >> use-package produces macros whose effect happens when a package is
> >> loaded, and given that other methods of face definition are available.
> >
> > All that use-package is doing here is expanding the ‘:custom-face‘ declaration
> > into this call:
> >
> >   (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
> >
> > Should it be calling something other than `face-spec-set' now?
> 
> That's what it used to be before the change in question. Now it expands
> to:
> 
>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t)) face-defface-spec))
> 
> The issue here is that the themed face spec has a higher priority than
> the "defface" spec.

But AFAIU, face-defface-spec records the theme customizations of the
face as well, no?  I'm afraid I don't quite understand what you are
saying here, could you please explain and elaborate?

> IMO, this should be reverted to just:
> 
>      (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
> 
> (leaving the part of the patch that marks the face as "modified" intact).
> 
> >From what I can tell, the patch in question was attempting to solve an
> issue where overriding faces get "merged" with "lower" priority face
> specs but, IMO, that isn't really a bug.

Why don't you consider that a bug?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 May 2025 01:26:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 26 21:26:37 2025
Received: from localhost ([127.0.0.1]:34464 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uJj5Q-0005xQ-M7
	for submit <at> debbugs.gnu.org; Mon, 26 May 2025 21:26:37 -0400
Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]:45855)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uJj5N-0005x1-4A
 for 77928 <at> debbugs.gnu.org; Mon, 26 May 2025 21:26:34 -0400
Received: from phl-compute-06.internal (phl-compute-06.phl.internal
 [10.202.2.46])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 3279D25400D6;
 Mon, 26 May 2025 21:26:27 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-06.internal (MEProxy); Mon, 26 May 2025 21:26:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm3;
 t=1748309187; x=1748395587; bh=/q/vwyQuYTO1zQu++Bo/wSPH7KrTreyA
 +LawXGJiwX8=; b=L8ojKGWmv8rs3lUpjbrRKufAba6FFIfvcfzM8mavq3ZmRG8P
 ZVN9qwtEy0a9iXfG27Lpxt3bT9pQMVsRawwY4O4sDscsZXVBBjI7bWSD6RPNxeUc
 4+noo7Ht0vfmYd7gJHDAprYM/CiarfKuVB8FNhj1lZuaA4GoNKTGhwZQO/mZ76cO
 yhLOhJJIK6XctqBVP1Quta5d8pCa9bxIS/hbCc0qUspjFNHUJbpV+X2bjiFaKmsO
 4UQKU5BqiUTvVJtdI7GWExTZsEG9LHgLLQn0od65V/15bI5FwJ0PTjafwyLvQKjJ
 WprY8ll15XvUblt977kvVHrvN0HzLtK4MTg3qw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1748309187; x=
 1748395587; bh=/q/vwyQuYTO1zQu++Bo/wSPH7KrTreyA+LawXGJiwX8=; b=D
 HcNqRg3yCJW1D7/u8POiEm8gRQC7tgZUNYWwKNeBQvNJE7p0m16eMFEl9Q5oQecI
 3QcMgc9Mae+FH1srzpB2L593g6KqTCi7FsUO/rglKNnzOEJN4gjdvDRBiv7GEdwC
 a1lsH6DxieRNqm2E+HUGX7jq6iP6L7tN4FyQnHgZJuik4qKQdpFUTCCF7VgKpQrH
 ksIK6zsffCLJSb+wtRtJvl0/OazuK6G1W0SZqdx+oZnWZecKOewTUtnsyJxzweuQ
 z1hM0COIs2d2l5rPTzh+9bUbXEE7Tx8iGePJpCobs0d+gZUMgOD8ptMvOd5v8fuR
 Cpcnipv0HSBFr4U8rKb6Q==
X-ME-Sender: <xms:wRQ1aEbUm73uaLiMseY4NiUrkeOMk4A8AnP2wq3e3X83cyJYddIOQQ>
 <xme:wRQ1aPZhjmgsKRDlbswLox2659L-nAooiAbEgxFMQ3Pk0KOtjkZx2KIS7py2cpbt-
 BuDytAioLg4peJ3Xgo>
X-ME-Received: <xmr:wRQ1aO8RywrRVQqO9-BY2xmDrJT4zcxyd1i3EdR8HYzhwocSZ5hWqkgWE7amaRzKxj98327NW5VQ5Y7hTyalmU6sB_mAMSzfqg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdduledtjeculddtuddrgeefvddrtd
 dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft
 fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd
 dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhff
 kfggtgfgsehtqhertddttdejnecuhfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehsth
 gvvhgvnhesshhtvggsrghlihgvnhdrtghomheqnecuggftrfgrthhtvghrnhepfedvudeh
 feeuvdetveetieevjeegtdetgefhlefggeeuheevhfffleeivdetiedunecuvehluhhsth
 gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhtvghvvghnsehsthgv
 sggrlhhivghnrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuth
 dprhgtphhtthhopehjohhhnhifsehgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehg
 nhhurdhorhhgpdhrtghpthhtohepshhhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpth
 htohepjeejledvkeesuggvsggsuhhgshdrghhnuhdrohhrgh
X-ME-Proxy: <xmx:wRQ1aOrIyhko0edK1f0uLvy_KNz0BjgZXvGRU7gRHAiO90DMZR5G2g>
 <xmx:wRQ1aPqL1YuW2acCY8FwOQvFGmnANBcKBqNi0vmOuMViz0pKVijIUw>
 <xmx:wRQ1aMTRDb3nY0wrpnKuwSc461uT80B7XjTjdoVpEE0xG3l51d1eWQ>
 <xmx:wRQ1aPr5pbSx1qDfpaW9O0yrtdkx3lzXouR7LbJMJzjQ6QZiYGL2ug>
 <xmx:wxQ1aKDo0oBa7cKrHFZ_Uxq0NeYuPwKyhM__Fz1no_q6wMbW6bGpEYod>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 26 May 2025 21:26:25 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: John Wiegley <johnw@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <m2iklnq8iw.fsf@HIDDEN>
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN> <m2iklnq8iw.fsf@HIDDEN>
Date: Mon, 26 May 2025 18:26:24 -0700
Message-ID: <87y0uialof.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Michael Shields <shields@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

John Wiegley <johnw@HIDDEN> writes:

>>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>
>>> From: Michael Shields <shields@HIDDEN>
>>> Date: Mon, 19 May 2025 22:51:29 -0700
>>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
>>>=20
>>> I think I understand the issue, but not its solution. There are more or=
 less three standard ways to change
>>> faces now: Customize, themes, and use-package :custom-face. But there i=
s no clear way to resolve the
>>> ordering between them, or whether they replace or inherit at each level=
. The behavior I was surprised by,
>>> and that has been reported previously, is that there was no way to spec=
ify a replacement for face settings.
>>> But Steven is surprised by the fact that things now happen at a level b=
elow theme application, and the theme
>>> replaces instead of inherits the defface spec.
>
>> John, could you perhaps help us out here?  Bug#77928 was about
>> :custom-face, which is a use-package feature.  I don't really
>> understand how this feature is supposed to work, given that
>> use-package produces macros whose effect happens when a package is
>> loaded, and given that other methods of face definition are available.
>
> All that use-package is doing here is expanding the =E2=80=98:custom-face=
=E2=80=98 declaration
> into this call:
>
>   (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))
>
> Should it be calling something other than `face-spec-set' now?

That's what it used to be before the change in question. Now it expands
to:

     (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t)) face-d=
efface-spec))

The issue here is that the themed face spec has a higher priority than
the "defface" spec. IMO, this should be reverted to just:

     (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))

(leaving the part of the patch that marks the face as "modified" intact).

From what I can tell, the patch in question was attempting to solve an
issue where overriding faces get "merged" with "lower" priority face
specs but, IMO, that isn't really a bug.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 26 May 2025 23:04:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 26 19:04:05 2025
Received: from localhost ([127.0.0.1]:33333 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uJgrU-0003YC-Sd
	for submit <at> debbugs.gnu.org; Mon, 26 May 2025 19:04:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47758)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johnw@HIDDEN>) id 1uJgrR-0003XV-Hd
 for 77928 <at> debbugs.gnu.org; Mon, 26 May 2025 19:04:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johnw@HIDDEN>)
 id 1uJgrL-0005l4-Pw; Mon, 26 May 2025 19:03:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=HfkDUPcmuolmAwwvY9CimR7Wzzmy+SFmAQ9yvllgkQI=; b=RGon/7KFJ4V7zUxK9cq2
 K8X+1K1yeOHc3dpzmSpC7XqFxm4eahjlbbo6H4z+rYlXQMyMNR81sozxKzJxNPynZmAm1w0qgMVnl
 S70/+YPV/gYSa95hnrmOFWSP7JSz5EAORcOexXR7HiIqJ74iUS6TmEVTHyKZj3IhhnVNz5Q3mWHBT
 8xK5iOkgdaG7Q5DQPOGjvQaQ0N0WFwxJoQo/moL5rcWoPJ4a/oVaCDwKRrcuPmVq9fL5zTJZ57PZI
 xck/uLZY4p5Wbz3WACwuCRq3B3G9+veuw3pp/vnyuXc/Wz7x6vxHoL8BIrVr75Mrbr1818A5nBY6p
 LXi28qMw3/Z+gg==;
X-ME-Sender: <xms:WvM0aJCqWJ49jXkHqgTXxdJUJf2k2KoOMrvlYfxD_yMnEl1yx6IQbQ>
 <xme:WvM0aHgbtHnXEtM_oy5wYP5RDm6rFJU4-DYbkjymok_F5pkKkUF19eyyoGjZqEBN_
 7SrgQE77AgYlOQyzQ>
X-ME-Received: <xmr:WvM0aEnaXfz66kMWeYG95JCBAHafdACo-hYY4sxQtqGM-gJ_5-KgeSuSQsND>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgddukeejleculddtuddrgeefvddrtd
 dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft
 fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd
 dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhff
 kfgfgggtgfesthhqredttderjeenucfhrhhomheplfhohhhnucghihgvghhlvgihuceojh
 hohhhnfiesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepiefftdehvdeivddtffef
 ffffveekledujeeiledtudefheefhffhfeegjeetfeegnecuffhomhgrihhnpehnvgifrg
 hrthhishgrnhhsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm
 rghilhhfrhhomhepjhhohhhnfidomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthi
 dqieekjeektdelgeegqddujeejheefkeduiedqjhhohhhnfieppehgnhhurdhorhhgsehn
 vgifrghrthhishgrnhhsrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmth
 hpohhuthdprhgtphhtthhopeejjeelvdekseguvggssghughhsrdhgnhhurdhorhhgpdhr
 tghpthhtohepshhtvghvvghnsehsthgvsggrlhhivghnrdgtohhmpdhrtghpthhtohepsh
 hhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-ME-Proxy: <xmx:WvM0aDzzQpQQH6an_vhEuAjILH0teuG9OHAL9zwCoQtVaEw8GynHjA>
 <xmx:WvM0aOQ8ncYIdGXluRLAgMDRRRLdW4fqkTz9HPbscxZzW1zviVwFng>
 <xmx:WvM0aGZhvjCNcgMFw6m1I9NbwUyuBuza4_Gtppe7KqeOmJn6-e6L-g>
 <xmx:WvM0aPStNn3Hazhtn_5c_7PAmjkrUNFNGwUofuVgLRWJLFp5ERsCjg>
 <xmx:WvM0aMAVMm5-CQTWCnvlGoY_uyq2YT7OAEbtjdymYbaqc2IiBaFmlhe5>
Feedback-ID: ib64945b7:Fastmail
From: John Wiegley <johnw@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
In-Reply-To: <86ldqm1hli.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 24 May
 2025 12:30:17 +0300")
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 <86ldqm1hli.fsf@HIDDEN>
Date: Mon, 26 May 2025 16:03:51 -0700
Message-ID: <m2iklnq8iw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Michael Shields <shields@HIDDEN>,
 steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Michael Shields <shields@HIDDEN>
>> Date: Mon, 19 May 2025 22:51:29 -0700
>> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
>>=20
>> I think I understand the issue, but not its solution. There are more or =
less three standard ways to change
>> faces now: Customize, themes, and use-package :custom-face. But there is=
 no clear way to resolve the
>> ordering between them, or whether they replace or inherit at each level.=
 The behavior I was surprised by,
>> and that has been reported previously, is that there was no way to speci=
fy a replacement for face settings.
>> But Steven is surprised by the fact that things now happen at a level be=
low theme application, and the theme
>> replaces instead of inherits the defface spec.

> John, could you perhaps help us out here?  Bug#77928 was about
> :custom-face, which is a use-package feature.  I don't really
> understand how this feature is supposed to work, given that
> use-package produces macros whose effect happens when a package is
> loaded, and given that other methods of face definition are available.

All that use-package is doing here is expanding the =E2=80=98:custom-face=
=E2=80=98 declaration
into this call:

  (apply #'face-spec-set '(font-lock-keyword-face ((t :italic t))))

Should it be calling something other than `face-spec-set' now?

--=20
John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 24 May 2025 09:30:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 24 05:30:33 2025
Received: from localhost ([127.0.0.1]:57177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uIlD6-000155-RE
	for submit <at> debbugs.gnu.org; Sat, 24 May 2025 05:30:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45074)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uIlD3-00014V-Vs
 for 77928 <at> debbugs.gnu.org; Sat, 24 May 2025 05:30:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uIlCx-0003tA-TJ; Sat, 24 May 2025 05:30:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=UJc7lHR2k0AY8+K07X9ycN8kL16opYI5eNnVi2uQUts=; b=Uvt2Y11StgsD
 wDhrSXX8fgR8Xkft5BDoKdOhbV9uRVrGutaRdbAugogiYueL6LvJSeMx6/xXUrvoUYv77cuXqfN0a
 R30/oPB2pYDBLaqqjSGSpIigYuneoDLGcTUUSGpsrT9BuJSjVtZJff5cet5eVS5/xvWsE7HoEK2aT
 6GrLQMTbF+ktMDaaxyspCEa2LNvL6aUhIu+K49N89nDzT1RUoaWOFe9KLnrR1BfyB6F0LU+9wYVKH
 7+ydEAMCaGgtbN6vWg+ID83W5W7JI9W9rKKOZe0GNfvSL1FfzBBUrHp/UYECVujHHx1rmWNDy1N0m
 q9nql6kJNrAUvXgQqc0hKA==;
Date: Sat, 24 May 2025 12:30:17 +0300
Message-Id: <86ldqm1hli.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Shields <shields@HIDDEN>, John Wiegley <johnw@HIDDEN>
In-Reply-To: <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
 (message from Michael Shields on Mon, 19 May 2025 22:51:29 -0700)
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
 <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Shields <shields@HIDDEN>
> Date: Mon, 19 May 2025 22:51:29 -0700
> Cc: steven@HIDDEN, 77928 <at> debbugs.gnu.org
> 
> I think I understand the issue, but not its solution. There are more or less three standard ways to change
> faces now: Customize, themes, and use-package :custom-face. But there is no clear way to resolve the
> ordering between them, or whether they replace or inherit at each level. The behavior I was surprised by,
> and that has been reported previously, is that there was no way to specify a replacement for face settings.
> But Steven is surprised by the fact that things now happen at a level below theme application, and the theme
> replaces instead of inherits the defface spec.

John, could you perhaps help us out here?  Bug#77928 was about
:custom-face, which is a use-package feature.  I don't really
understand how this feature is supposed to work, given that
use-package produces macros whose effect happens when a package is
loaded, and given that other methods of face definition are available.

It seems like the original patch installed in this bug fixed one
(mis)behavior but introduced another.  The documentation of
:custom-face in the use-package manual is completely silent regarding
its interaction with themes and defface's.  Could you perhaps explain
the intent of this feature, and what should users expect in the two
use cases described in this bug?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 20 May 2025 05:51:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 20 01:51:50 2025
Received: from localhost ([127.0.0.1]:52017 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uHFtF-0001tZ-P4
	for submit <at> debbugs.gnu.org; Tue, 20 May 2025 01:51:50 -0400
Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]:47108)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shields@HIDDEN>) id 1uHFtC-0001sE-J6
 for 77928 <at> debbugs.gnu.org; Tue, 20 May 2025 01:51:47 -0400
Received: by mail-yb1-xb2e.google.com with SMTP id
 3f1490d57ef6-e7b3178473eso4852596276.2
 for <77928 <at> debbugs.gnu.org>; Mon, 19 May 2025 22:51:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=msrl.com; s=google; t=1747720300; x=1748325100; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=8tUlTmUdOEKk5uh6sZPl1iS7uu+AptiZwMZ1BYN3VoQ=;
 b=Zo3oZiTO8m1DZ5RvjmMtSCY/R/H+86phYQLJOuQP7oAmp5m4NGAfwcl8/7NUk2Stdb
 QdUunhmRQSxkkiSupsBH1BxoWjMDO5r7IUSsymAXrMKs/5Sz5hq73gpcrzlIoNELvszs
 vJroFdffuw+SWS5apMhddH1g0BxNOMVo36O3E=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1747720300; x=1748325100;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=8tUlTmUdOEKk5uh6sZPl1iS7uu+AptiZwMZ1BYN3VoQ=;
 b=vynlBbzqnTMuulyyFfhSjNFlR6ampKHLEHRqT4mFZI/V8ESPGpBOI3wsf/oVFsAnhC
 wH0RLrgapLe6f87gUZt7FvvJVA3NrfO5fY9h2h87ghdgWe3aHxydzfNPhNGFAzuNcJSo
 oa5+XEDyfvQ4qgqlYZicHbiyagk3Ku3zUz9McCcq0lfHW4OG1gLj03MC+vJlk6SBHQMJ
 M+lmFjaT9E7CmD40i0rOCGj1eDdQOWW6horIGS5rVUawbGcRz6hdpZOsOXOsHnEyjSqZ
 ujZSKqeeoGqloORLpuouiX34SLaPu4TtoqxUe5Ncu+xR4I0W5mQemtdijfPbmQZXPuwj
 osAw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWeBcenxStvL+uVpR/Onb+UoFCBiYRycKQdJpWI2QhIENIJerZc0EEYGax61FZh2/JYwKABLQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw1g6B3I2dQ7v8OlPt8ppyx+uogjY3FOZeKDazORTJGAUuMvWyr
 wddCnX+g6RWI3N42le2hO3Ws4mCU0aN6iNxKV4R4JALQY7L0jhh56vhuQ79V8H9eWrKa2wVwL5o
 N9bzc+QluZ95ev8CZroEGadbbaBpk0+vvQeKivkTh
X-Gm-Gg: ASbGncu09yHt0IOiFeGR9SBM7sh+N/yNR6BUrp2d1VYIScgP7gpzzCVXFLo5j6Tvrg2
 Mp57oTqnjI8nN9Z4HN9tLChl418eBFT0n0J5h48fbnFSgvatK+5jSphVS8PCQI+Axu61/4AFi/V
 Zb6BBby51iCt8sYLgVVXHlGbaHWX20CL/FbtKd+qrnZAsmjLzG8oRXZUOJO8sHE4wkob8=
X-Google-Smtp-Source: AGHT+IH5ch+NYmwV04fPOP4XZboJtIP6g/vQhi1KtdLfiO8RXKNY7mDjlIuqCFHKXKYGp3/Rxf7ovB3nMCn5oulTbXE=
X-Received: by 2002:a05:690c:39c:b0:6ef:5097:5daa with SMTP id
 00721157ae682-70ca7c5437bmr204373167b3.34.1747720300559; Mon, 19 May 2025
 22:51:40 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
 <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
In-Reply-To: <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
From: Michael Shields <shields@HIDDEN>
Date: Mon, 19 May 2025 22:51:29 -0700
X-Gm-Features: AX0GCFvrBpFeLyJvHJI81VEp4Gws2yxRphzirEIFtU8U2aoyvA0u7i-YROuC32k
Message-ID: <CAMPZLER8pgF2Haw-4UYCUpdK0A7xmnCCsnNUbv_FG0Joa6yqAQ@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000aea07e06358ad7f3"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000aea07e06358ad7f3
Content-Type: text/plain; charset="UTF-8"

I think I understand the issue, but not its solution. There are more or
less three standard ways to change faces now: Customize, themes, and
use-package :custom-face. But there is no clear way to resolve the ordering
between them, or whether they replace or inherit at each level. The
behavior I was surprised by, and that has been reported previously, is that
there was no way to specify a replacement for face settings. But Steven is
surprised by the fact that things now happen at a level below theme
application, and the theme replaces instead of inherits the defface spec.

--000000000000aea07e06358ad7f3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I think I understand the issue, but not its solution. Ther=
e are more or less three standard ways to change faces now: Customize, them=
es, and use-package :custom-face. But there is no clear way to resolve the =
ordering between them, or whether they replace or inherit at each level. Th=
e behavior I was surprised by, and that has been reported previously, is th=
at there was no way to specify a replacement for face settings. But Steven =
is surprised by the fact that things now happen at a level below theme appl=
ication, and the theme replaces instead of inherits the defface spec.</div>

--000000000000aea07e06358ad7f3--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 18 May 2025 00:39:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 17 20:39:25 2025
Received: from localhost ([127.0.0.1]:52602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGS3o-0004x6-Br
	for submit <at> debbugs.gnu.org; Sat, 17 May 2025 20:39:24 -0400
Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:59741)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shields@HIDDEN>) id 1uGS3l-0004wm-8q
 for 77928 <at> debbugs.gnu.org; Sat, 17 May 2025 20:39:22 -0400
Received: by mail-yb1-xb34.google.com with SMTP id
 3f1490d57ef6-e75668006b9so3386895276.3
 for <77928 <at> debbugs.gnu.org>; Sat, 17 May 2025 17:39:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=msrl.com; s=google; t=1747528755; x=1748133555; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=+zUqMThQMWDgT/Oa3DfR8hu3879hhghfts2rspMbN/8=;
 b=iIqT8XK+ww5X1boQB51oqkfG87pf1DvtP4kp1bRnb4i+OHfIqtouVJjk723715MnIo
 NroKSk1SyVIRlMB8mn0pRubXQlC55SphuEHf1YX6LHrYfh2pyTsg+rpmCR/Zradrng3O
 oxhbb3wHK7etphWnXlmChebMaQaLqcDMbvDrU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1747528755; x=1748133555;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=+zUqMThQMWDgT/Oa3DfR8hu3879hhghfts2rspMbN/8=;
 b=Pn6IjSYQFaluZIQ0/qNzWGnwEQ4Zt/nzhRssx45UvDxsL8Jq4VPihN9xJa0y8Gwrhj
 j7wa9SriT50qZHtVhIP8jZSJaQ03ew7a469dhGhaKNDB4i81oikx7mxAb7Sg/USO/0iB
 cFf374kPf0HRj//reJOKYaC33ltTSF3xzKNyg9fVZRhhGijiudxRdpc8Om7IJqXKc8kX
 lyRzdasdEtF9HZvfSECVFVX1j0OqqqON6wyGNFBoIRvAtuZeW3rlH08dHGByNMS04fzx
 hvMz+prvHFJtMnDu/cPkeT0kbFQBoiY4YoVTMY+z1mVYjF7DhBUh/i72u//LagSsoHdD
 TrJQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCUo3IURsCfKjB/aREC/cBrjpIrlQggYtnD+ZXmKkSLoGY2JQlsOE4TXy/0o6hFSutndDO2IQg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzdOykZ/eiL+ykt8pKPpMQ/2XaPCt8pB/U2YuOQ4Tm2LQDCBuVu
 KkgOlK2Zfo47qB9MXFO8W0/q3Ez66dGWPNryJCzYaXBsBUvU9T7CWpn3DP2h13RSomTVvCRYxGd
 6CqzlA1+5OS+M5O+3eQ/n6nb589Lx5/ucS+0R4GBu
X-Gm-Gg: ASbGncu8iY/rfJwprclA1x9aZsxPtRr/88SUdyj0s/Hq5EWFnLJBNZKTALG+uq8DWeZ
 joQBgbOcT84MGYuApHOVTCXmnl/M0Lcp9DmzbG54/4Yn00VpD3faiMtUau0DSAnWdWZoB1lv8Ld
 tXUdof7ccdMINdjm4bmJ2mR9qibVRz2K4BUGxbAhidlHaPVex3vxKPgSK1zth4Ldnp9iE=
X-Google-Smtp-Source: AGHT+IE1XqVaPzWtMVrOjEY/12OD3Benf5Q/x9VTNEoiNh3g7y2ajvABF4suvp1fJl5K5LK+ds8uXPHW2FcJZ4QFtH0=
X-Received: by 2002:a05:690c:316:b0:705:750e:851 with SMTP id
 00721157ae682-70ca7bc3436mr138636117b3.37.1747528755354; Sat, 17 May 2025
 17:39:15 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
 <86tt5jwtpq.fsf@HIDDEN>
In-Reply-To: <86tt5jwtpq.fsf@HIDDEN>
From: Michael Shields <shields@HIDDEN>
Date: Sat, 17 May 2025 17:39:04 -0700
X-Gm-Features: AX0GCFtVt1G5mh33kBR8_alZKKNVi_QUTMJoxKB_BFtwDVmtDsFWD0oTPM4fJCo
Message-ID: <CAMPZLES1u1Y-b0p+iYwE+OBJT0bhBLW47JqnBFrJbxyqtNCCPg@HIDDEN>
Subject: Re: bug#77928: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face
 for themed faces
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000b2bc6d06355e3ea3"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, steven@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000b2bc6d06355e3ea3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I can take a look at this tomorrow.

On Sat, May 17, 2025 at 1:02=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

> Ping!  Michael, could you please chime in?
>
> > Cc: 77928 <at> debbugs.gnu.org
> > Date: Thu, 01 May 2025 20:43:28 +0300
> > From: Eli Zaretskii <eliz@HIDDEN>
> >
> > > Date: Wed, 30 Apr 2025 14:26:34 -0700
> > > From:  Steven Allen via "Bug reports for GNU Emacs,
> > >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> > >
> > >
> > > ebcde0f90f6 (bug#77928) makes it impossible to override themed faces
> with
> > > :custom-face. This can be reproduced by:
> > >
> > > 1. Applying a theme (tested with modus).
> > > 2. Then attempt to override a themed face with ":custom-face".
> > >
> > > E.g., put the following into a scratch buffer and eval it.
> > >
> > >     (load-theme 'modus-vivendi)
> > >     (use-package emacs :custom-face (font-lock-keyword-face ((t
> :italic t))))
> > >
> > > I'd expect my keywords to become italic but nothing happens (tested
> with
> > > `emacs -Q`).
> > >
> > > Additionally, this patch (as it was intended, as far as I can tell)
> > > makes the :custom-face feature much less useful for tweaking faces.
> > > Previously, it was possible to achieve both behaviors (override or
> > > merge), now it's only possible to override faces entirely which isn't
> > > nearly as useful.
> > >
> > > (I posted a comment on
> > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77928#28 but the bug =
was
> > > already closed)
> >
> > Thanks.
> >
> > Michael, could you please look into this regression?
> >
> >
> >
> >
>

--000000000000b2bc6d06355e3ea3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I can take a look at this tomorrow.</div><br><div class=3D=
"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">O=
n Sat, May 17, 2025 at 1:02=E2=80=AFAM Eli Zaretskii &lt;<a href=3D"mailto:=
eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gma=
il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex">Ping!=C2=A0 Michael, could you please chime in?<b=
r>
<br>
&gt; Cc: <a href=3D"mailto:77928 <at> debbugs.gnu.org" target=3D"_blank">77928@d=
ebbugs.gnu.org</a><br>
&gt; Date: Thu, 01 May 2025 20:43:28 +0300<br>
&gt; From: Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_bla=
nk">eliz@HIDDEN</a>&gt;<br>
&gt; <br>
&gt; &gt; Date: Wed, 30 Apr 2025 14:26:34 -0700<br>
&gt; &gt; From:=C2=A0 Steven Allen via &quot;Bug reports for GNU Emacs,<br>
&gt; &gt;=C2=A0 the Swiss army knife of text editors&quot; &lt;<a href=3D"m=
ailto:bug-gnu-emacs@HIDDEN" target=3D"_blank">bug-gnu-emacs@HIDDEN</a>&gt=
;<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; ebcde0f90f6 (bug#77928) makes it impossible to override themed fa=
ces with<br>
&gt; &gt; :custom-face. This can be reproduced by:<br>
&gt; &gt; <br>
&gt; &gt; 1. Applying a theme (tested with modus).<br>
&gt; &gt; 2. Then attempt to override a themed face with &quot;:custom-face=
&quot;.<br>
&gt; &gt; <br>
&gt; &gt; E.g., put the following into a scratch buffer and eval it.<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0(load-theme &#39;modus-vivendi)<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0(use-package emacs :custom-face (font-lock-key=
word-face ((t :italic t))))<br>
&gt; &gt; <br>
&gt; &gt; I&#39;d expect my keywords to become italic but nothing happens (=
tested with<br>
&gt; &gt; `emacs -Q`).<br>
&gt; &gt; <br>
&gt; &gt; Additionally, this patch (as it was intended, as far as I can tel=
l)<br>
&gt; &gt; makes the :custom-face feature much less useful for tweaking face=
s.<br>
&gt; &gt; Previously, it was possible to achieve both behaviors (override o=
r<br>
&gt; &gt; merge), now it&#39;s only possible to override faces entirely whi=
ch isn&#39;t<br>
&gt; &gt; nearly as useful.<br>
&gt; &gt; <br>
&gt; &gt; (I posted a comment on<br>
&gt; &gt; <a href=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77928#=
28" rel=3D"noreferrer" target=3D"_blank">https://debbugs.gnu.org/cgi/bugrep=
ort.cgi?bug=3D77928#28</a> but the bug was<br>
&gt; &gt; already closed)<br>
&gt; <br>
&gt; Thanks.<br>
&gt; <br>
&gt; Michael, could you please look into this regression?<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
</blockquote></div>

--000000000000b2bc6d06355e3ea3--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 17 May 2025 08:02:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 17 04:02:41 2025
Received: from localhost ([127.0.0.1]:45092 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGCVE-0003ez-2Z
	for submit <at> debbugs.gnu.org; Sat, 17 May 2025 04:02:41 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60200)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uGCV9-0003dA-3T
 for 77928 <at> debbugs.gnu.org; Sat, 17 May 2025 04:02:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uGCV3-0006Ue-EU; Sat, 17 May 2025 04:02:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=+QA3oCiAN5qvcPqkUEdTRIyANrJuRF6TjvkKK4frMHE=; b=lz6HDp1lNyhh
 Q9iz1+wht7VB/Hsc2oRehg96LYUfLl8AmM59SZBpMa7PI4MyOlKxMuDHHXm6kqPCatHzef3kg98YK
 Xj0OtrCRa0mz7Lspr6zo8PxP1pqJPT0FYuXNkUfnGYQy/IVFX360lBPwlkHHX8OLBFICJ7qJpGSFG
 tF2YrpjX80sy1uRM634/ukYu+2+R5u7mtDELDhKZmZpIxlfea9MMA2cOR8CNxdFBUkDKLPJh/8b/r
 niFaP2OCut0rGlERmRzyGpLZ/4pULXWREsjykq6lPaN9sR0j3wZdU20/muTT18To29VsHqM7Q+GW/
 qCw4s/W+Mtuo1AiVCK4OoA==;
Date: Sat, 17 May 2025 11:02:25 +0300
Message-Id: <86tt5jwtpq.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: steven@HIDDEN, shields@HIDDEN
In-Reply-To: <86ikmkmdkv.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 01
 May 2025 20:43:28 +0300)
Subject: Re: bug#77928: 31.0.50;
 ebcde0f90f6 (bug#77928) breaks :custom-face for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN> <86ikmkmdkv.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  Michael, could you please chime in?

> Cc: 77928 <at> debbugs.gnu.org
> Date: Thu, 01 May 2025 20:43:28 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > Date: Wed, 30 Apr 2025 14:26:34 -0700
> > From:  Steven Allen via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> > 
> > 
> > ebcde0f90f6 (bug#77928) makes it impossible to override themed faces with
> > :custom-face. This can be reproduced by:
> > 
> > 1. Applying a theme (tested with modus).
> > 2. Then attempt to override a themed face with ":custom-face".
> > 
> > E.g., put the following into a scratch buffer and eval it.
> > 
> >     (load-theme 'modus-vivendi)
> >     (use-package emacs :custom-face (font-lock-keyword-face ((t :italic t))))
> > 
> > I'd expect my keywords to become italic but nothing happens (tested with
> > `emacs -Q`).
> > 
> > Additionally, this patch (as it was intended, as far as I can tell)
> > makes the :custom-face feature much less useful for tweaking faces.
> > Previously, it was possible to achieve both behaviors (override or
> > merge), now it's only possible to override faces entirely which isn't
> > nearly as useful.
> > 
> > (I posted a comment on
> > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77928#28 but the bug was
> > already closed)
> 
> Thanks.
> 
> Michael, could you please look into this regression?
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 1 May 2025 17:43:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 01 13:43:40 2025
Received: from localhost ([127.0.0.1]:52936 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uAXwi-0000vh-Cx
	for submit <at> debbugs.gnu.org; Thu, 01 May 2025 13:43:40 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33592)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uAXwf-0000vN-MT
 for 77928 <at> debbugs.gnu.org; Thu, 01 May 2025 13:43:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uAXwY-0006Io-Cq; Thu, 01 May 2025 13:43:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=LL+pjn1dENKuOPcs4HbvU++uY/W7afj6H6tGnIzIQZE=; b=l2JiGKWpxf/A
 tA1s+j9NMq6XoHMMo+WHnPMVOU7pYma13ZGWmyEfa5PppEoQUSEloJfAa9PlMBlJLtEt5A8lJwR3v
 nFG+wwmL/LCpnIqSyAh9loVxS0MO3I64Z3rdiyqKozSFJtDdfZXMil1LJ5CDvyf9TBFG402NTJzX3
 eVxvvJalQKGTLrgqlTlwfAuGYmUXlBwWB33y8q6kNZH5FnIbETqqrKieaFOGLXdjGuXiZ+0TbC6yR
 6gqjgjrFA3yGSjK6aXDdsPJJ6xzvDRUd2I2VA0+z+y49N0H5HNeE+8bk39KlgcX9IJBYdZMq6wK9s
 C5irrLGDAsGPF0CaB7uTCQ==;
Date: Thu, 01 May 2025 20:43:28 +0300
Message-Id: <86ikmkmdkv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Steven Allen <steven@HIDDEN>, Michael Shields <shields@HIDDEN>
In-Reply-To: <87y0vhwdbp.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#77928: 31.0.50;
 ebcde0f90f6 (bug#77928) breaks :custom-face for themed faces
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <87y0vhwdbp.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Wed, 30 Apr 2025 14:26:34 -0700
> From:  Steven Allen via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> 
> ebcde0f90f6 (bug#77928) makes it impossible to override themed faces with
> :custom-face. This can be reproduced by:
> 
> 1. Applying a theme (tested with modus).
> 2. Then attempt to override a themed face with ":custom-face".
> 
> E.g., put the following into a scratch buffer and eval it.
> 
>     (load-theme 'modus-vivendi)
>     (use-package emacs :custom-face (font-lock-keyword-face ((t :italic t))))
> 
> I'd expect my keywords to become italic but nothing happens (tested with
> `emacs -Q`).
> 
> Additionally, this patch (as it was intended, as far as I can tell)
> makes the :custom-face feature much less useful for tweaking faces.
> Previously, it was possible to achieve both behaviors (override or
> merge), now it's only possible to override faces entirely which isn't
> nearly as useful.
> 
> (I posted a comment on
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77928#28 but the bug was
> already closed)

Thanks.

Michael, could you please look into this regression?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Apr 2025 21:26:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 30 17:26:58 2025
Received: from localhost ([127.0.0.1]:46065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uAExE-0007wG-F9
	for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 17:26:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:40088)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1uAExA-0007vx-4v
 for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 17:26:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steven@HIDDEN>)
 id 1uAEx3-000729-Oi
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 17:26:46 -0400
Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steven@HIDDEN>)
 id 1uAEwz-0006gG-JL
 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 17:26:45 -0400
Received: from phl-compute-08.internal (phl-compute-08.phl.internal
 [10.202.2.48])
 by mailfout.stl.internal (Postfix) with ESMTP id AE32D11401C4
 for <bug-gnu-emacs@HIDDEN>; Wed, 30 Apr 2025 17:26:38 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-08.internal (MEProxy); Wed, 30 Apr 2025 17:26:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2;
 t=1746048398; x=1746134798; bh=EYKTpUYbPs96gNZTlU4txIJKl5vuT1mM
 6s5qsE3/4WU=; b=Rw1frLNQHx6+KVqHQVG4IbZfYFU/FSKLkAE1lPROrhkzOEvO
 4pUJU7OyKLvzcinOlyrEPkPa0+8NhF9O6lS/fB6tCWfpCCEctDd+21v+jGMG3m2m
 nhrNcxMU6z7gqOB4Xm1FIJLmfHmrjvvPD84TRLQzCFAAhM9aiZTyWa11nJyDfenU
 xpLZMU6G26bm4rfBLd01jhE/zPZqmKWUZGKbR7LuKrj2U3Vg305yTzJTvgy9xBMm
 98sbEMCS7JPdcMZdX8VutebzpsmabU4q3F4Lihtz6wqqmUxCOHWX3pgLEzurf+vU
 6gOXCESUlb4aobVdoBienZvcFxXCdOhB+ZydNg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1746048398; x=
 1746134798; bh=EYKTpUYbPs96gNZTlU4txIJKl5vuT1mM6s5qsE3/4WU=; b=Q
 A+cYAXG+Sjlwfdl5sKrNLhzHo3ro+NJddkOE0uwWta8/34FYAb8wRjFylAHouCeN
 7gLlX0tveaGHinq7bIdmN6GQyd30gwrpNqu7NqjgC4dI0icHe19Dca2UCAQnL8qu
 G7OhyadRNGLE53phTRuHfusGoeqCEAqom4LjUzhlV1VIxUP2g1G9n4NAmRFkDbl7
 elNlmsvdZhOiqrkGVcqGi8iRJ7udRv5CIotUj6d31UfQWwOP7Pcb9yCSAXEPHwzr
 GOzHahAfA4VSTJ0o+hjjHge1WTEwbahruAoMiEDh42GeistaDRjF1haLcMYL2aBH
 VU4DWbhIVGvMN9TOTukSw==
X-ME-Sender: <xms:jpUSaJrJRBWDrNGIc0GRT4mGC5S92yIcVibJTF2t7winqxVot6aIVw>
 <xme:jpUSaLpOWImorbvnasfR4pRiI4dCMhSEavUi0jJsTuyI06sli2hXM2_C2bGDv9oZA
 aR2J9RaBWmerqx3mWA>
X-ME-Received: <xmr:jpUSaGP5LKg-78V_CDOntWWwxOjOin3wNBdAo2Pgo0H42tEx75GbJe5HGnnm>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieejjeejucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf
 fufffkgggtsehttdertddttddtnecuhfhrohhmpefuthgvvhgvnhcutehllhgvnhcuoehs
 thgvvhgvnhesshhtvggsrghlihgvnhdrtghomheqnecuggftrfgrthhtvghrnheplefhve
 fhffdufedvhfekhfduveelkeefjeeuteeijeetfeegjedtteegueeuveeknecuffhomhgr
 ihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg
 hilhhfrhhomhepshhtvghvvghnsehsthgvsggrlhhivghnrdgtohhmpdhnsggprhgtphht
 thhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmh
 grtghssehgnhhurdhorhhg
X-ME-Proxy: <xmx:jpUSaE6NXAlsqv4S4imWxafvYcj1xNkpj7R-Og64INp_OP8vSLbFLg>
 <xmx:jpUSaI4CiEemZ8alDmH266djgaw9qfioQY5Zne5GmJeA6MMtAhKoyw>
 <xmx:jpUSaMhGA6eg-ES3csNRig_p7LE_TlhZ92qy8Vk-OQUiWX75lHUW5g>
 <xmx:jpUSaK5k-jAhFQDwheuz3fsi_a4DAx7JcrQ9lCca8wB0hjGWXNGvqg>
 <xmx:jpUSaHb7uu5cVApzYfkCRkUo0NW40amJujwDwDjCk5IkmE84nuTq4uAa>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Wed, 30 Apr 2025 17:26:37 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; ebcde0f90f6 (bug#77928) breaks :custom-face for themed faces
X-Debbugs-Cc: 
Date: Wed, 30 Apr 2025 14:26:34 -0700
Message-ID: <87y0vhwdbp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=202.12.124.149; envelope-from=steven@HIDDEN;
 helo=fout-b6-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)


ebcde0f90f6 (bug#77928) makes it impossible to override themed faces with
:custom-face. This can be reproduced by:

1. Applying a theme (tested with modus).
2. Then attempt to override a themed face with ":custom-face".

E.g., put the following into a scratch buffer and eval it.

    (load-theme 'modus-vivendi)
    (use-package emacs :custom-face (font-lock-keyword-face ((t :italic t))))

I'd expect my keywords to become italic but nothing happens (tested with
`emacs -Q`).

Additionally, this patch (as it was intended, as far as I can tell)
makes the :custom-face feature much less useful for tweaking faces.
Previously, it was possible to achieve both behaviors (override or
merge), now it's only possible to override faces entirely which isn't
nearly as useful.

(I posted a comment on
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77928#28 but the bug was
already closed)


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, cairo version
 1.18.4) of 2025-04-30 built on Laptop
Repository revision: 1108523eb03d62eea10ece284594a862f0a62bcb
Repository branch: merged
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Arch Linux

Configured using:
 'configure
 'CPPFLAGS=-I/run/user/1000/build/emacs-git/src/mps-git/build/include '
 'LDFLAGS=-L/run/user/1000/build/emacs-git/src/mps-git/build/lib -Wl,-O1
 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now
 -Wl,-z,pack-relative-relocs -flto=auto' --prefix=/usr --sysconfdir=/etc
 --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man
 --with-gameuser=:games --with-modules --without-m17n-flt
 --without-selinux --without-pop --without-gconf --disable-gc-mark-trace
 --with-mps=yes --enable-link-time-optimization
 --with-native-compilation=yes --with-xinput2 --with-x-toolkit=no
 --without-toolkit-scroll-bars --without-xft --without-xaw3d
 --without-gsettings --with-cairo-xcb --with-sound=no --with-tree-sitter
 --without-gpm --without-compress-install
 '--program-transform-name=s/\([ec]tags\)/\1.emacs/'
 'CFLAGS=-march=native -mtune=native -O3 -pipe -fno-plt -fexceptions
 -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security
 -fstack-clash-protection -fcf-protection -fomit-frame-pointer
 -fno-math-errno -fno-trapping-math -fno-math-errno -fno-trapping-math
 -flto=auto''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBOTF
LIBSYSTEMD LIBXML2 MODULES MPS NATIVE_COMP NOTIFY INOTIFY OLDXMENU
PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XDBE
XIM XINERAMA XINPUT2 XPM XRANDR ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: EXWM

Minor modes in effect:
  notmuch-bookmarks-mode: t
  windmove-mode: t
  global-atomic-chrome-edit-mode: t
  iwd-agent-mode: t
  i3bar-mode: t
  ednc-mode: t
  exwm-xsettings-mode: t
  exwm-background-mode: t
  exwm-systemtray-mode: t
  exwm-randr-mode: t
  compile-angel-on-load-mode: t
  save-place-mode: t
  savehist-mode: t
  global-org-modern-mode: t
  eat-eshell-mode: t
  magit-todos-mode: t
  global-git-commit-mode: t
  server-mode: t
  llama-fontify-mode: t
  dired-async-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  ultra-scroll-mode: t
  pixel-scroll-precision-mode: t
  global-hl-todo-mode: t
  marginalia-mode: t
  nerd-icons-completion-mode: t
  global-jinx-mode: t
  visual-replace-global-mode: t
  vertico-mode: t
  corfu-popupinfo-mode: t
  global-corfu-mode: t
  corfu-mode: t
  isearch-mb-mode: t
  evil-goggles-mode: t
  global-evil-surround-mode: t
  evil-surround-mode: t
  global-evil-collection-unimpaired-mode: t
  evil-collection-unimpaired-mode: t
  recentf-mode: t
  editorconfig-mode: t
  global-auto-revert-mode: t
  minibuffer-depth-indicate-mode: t
  minibuffer-electric-default-mode: t
  evil-mode: t
  desktop-environment-mode: t
  elpaca-use-package-mode: t
  override-global-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tab-bar-history-mode: t
  tab-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  minibuffer-regexp-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/steb/.config/emacs/elpaca/builds/package-lint-flymake/package-lint-flymake hides /home/steb/.config/emacs/elpaca/builds/package-lint/package-lint-flymake
/home/steb/.config/emacs/elpaca/builds/transient/transient hides /usr/share/emacs/31.0.50/lisp/transient
/home/steb/.config/emacs/elpaca/builds/org/ox hides /usr/share/emacs/31.0.50/lisp/org/ox
/home/steb/.config/emacs/elpaca/builds/org/ox-texinfo hides /usr/share/emacs/31.0.50/lisp/org/ox-texinfo
/home/steb/.config/emacs/elpaca/builds/org/ox-publish hides /usr/share/emacs/31.0.50/lisp/org/ox-publish
/home/steb/.config/emacs/elpaca/builds/org/ox-org hides /usr/share/emacs/31.0.50/lisp/org/ox-org
/home/steb/.config/emacs/elpaca/builds/org/ox-odt hides /usr/share/emacs/31.0.50/lisp/org/ox-odt
/home/steb/.config/emacs/elpaca/builds/org/ox-md hides /usr/share/emacs/31.0.50/lisp/org/ox-md
/home/steb/.config/emacs/elpaca/builds/org/ox-man hides /usr/share/emacs/31.0.50/lisp/org/ox-man
/home/steb/.config/emacs/elpaca/builds/org/ox-latex hides /usr/share/emacs/31.0.50/lisp/org/ox-latex
/home/steb/.config/emacs/elpaca/builds/org/ox-koma-letter hides /usr/share/emacs/31.0.50/lisp/org/ox-koma-letter
/home/steb/.config/emacs/elpaca/builds/org/ox-icalendar hides /usr/share/emacs/31.0.50/lisp/org/ox-icalendar
/home/steb/.config/emacs/elpaca/builds/org/ox-html hides /usr/share/emacs/31.0.50/lisp/org/ox-html
/home/steb/.config/emacs/elpaca/builds/org/ox-beamer hides /usr/share/emacs/31.0.50/lisp/org/ox-beamer
/home/steb/.config/emacs/elpaca/builds/org/ox-ascii hides /usr/share/emacs/31.0.50/lisp/org/ox-ascii
/home/steb/.config/emacs/elpaca/builds/org/org hides /usr/share/emacs/31.0.50/lisp/org/org
/home/steb/.config/emacs/elpaca/builds/org/org-version hides /usr/share/emacs/31.0.50/lisp/org/org-version
/home/steb/.config/emacs/elpaca/builds/org/org-timer hides /usr/share/emacs/31.0.50/lisp/org/org-timer
/home/steb/.config/emacs/elpaca/builds/org/org-tempo hides /usr/share/emacs/31.0.50/lisp/org/org-tempo
/home/steb/.config/emacs/elpaca/builds/org/org-table hides /usr/share/emacs/31.0.50/lisp/org/org-table
/home/steb/.config/emacs/elpaca/builds/org/org-src hides /usr/share/emacs/31.0.50/lisp/org/org-src
/home/steb/.config/emacs/elpaca/builds/org/org-refile hides /usr/share/emacs/31.0.50/lisp/org/org-refile
/home/steb/.config/emacs/elpaca/builds/org/org-protocol hides /usr/share/emacs/31.0.50/lisp/org/org-protocol
/home/steb/.config/emacs/elpaca/builds/org/org-plot hides /usr/share/emacs/31.0.50/lisp/org/org-plot
/home/steb/.config/emacs/elpaca/builds/org/org-persist hides /usr/share/emacs/31.0.50/lisp/org/org-persist
/home/steb/.config/emacs/elpaca/builds/org/org-pcomplete hides /usr/share/emacs/31.0.50/lisp/org/org-pcomplete
/home/steb/.config/emacs/elpaca/builds/org/org-num hides /usr/share/emacs/31.0.50/lisp/org/org-num
/home/steb/.config/emacs/elpaca/builds/org/org-mouse hides /usr/share/emacs/31.0.50/lisp/org/org-mouse
/home/steb/.config/emacs/elpaca/builds/org/org-mobile hides /usr/share/emacs/31.0.50/lisp/org/org-mobile
/home/steb/.config/emacs/elpaca/builds/org/org-macs hides /usr/share/emacs/31.0.50/lisp/org/org-macs
/home/steb/.config/emacs/elpaca/builds/org/org-macro hides /usr/share/emacs/31.0.50/lisp/org/org-macro
/home/steb/.config/emacs/elpaca/builds/org/org-loaddefs hides /usr/share/emacs/31.0.50/lisp/org/org-loaddefs
/home/steb/.config/emacs/elpaca/builds/org/org-list hides /usr/share/emacs/31.0.50/lisp/org/org-list
/home/steb/.config/emacs/elpaca/builds/org/org-lint hides /usr/share/emacs/31.0.50/lisp/org/org-lint
/home/steb/.config/emacs/elpaca/builds/org/org-keys hides /usr/share/emacs/31.0.50/lisp/org/org-keys
/home/steb/.config/emacs/elpaca/builds/org/org-inlinetask hides /usr/share/emacs/31.0.50/lisp/org/org-inlinetask
/home/steb/.config/emacs/elpaca/builds/org/org-indent hides /usr/share/emacs/31.0.50/lisp/org/org-indent
/home/steb/.config/emacs/elpaca/builds/org/org-id hides /usr/share/emacs/31.0.50/lisp/org/org-id
/home/steb/.config/emacs/elpaca/builds/org/org-habit hides /usr/share/emacs/31.0.50/lisp/org/org-habit
/home/steb/.config/emacs/elpaca/builds/org/org-goto hides /usr/share/emacs/31.0.50/lisp/org/org-goto
/home/steb/.config/emacs/elpaca/builds/org/org-footnote hides /usr/share/emacs/31.0.50/lisp/org/org-footnote
/home/steb/.config/emacs/elpaca/builds/org/org-fold hides /usr/share/emacs/31.0.50/lisp/org/org-fold
/home/steb/.config/emacs/elpaca/builds/org/org-fold-core hides /usr/share/emacs/31.0.50/lisp/org/org-fold-core
/home/steb/.config/emacs/elpaca/builds/org/org-feed hides /usr/share/emacs/31.0.50/lisp/org/org-feed
/home/steb/.config/emacs/elpaca/builds/org/org-faces hides /usr/share/emacs/31.0.50/lisp/org/org-faces
/home/steb/.config/emacs/elpaca/builds/org/org-entities hides /usr/share/emacs/31.0.50/lisp/org/org-entities
/home/steb/.config/emacs/elpaca/builds/org/org-element hides /usr/share/emacs/31.0.50/lisp/org/org-element
/home/steb/.config/emacs/elpaca/builds/org/org-element-ast hides /usr/share/emacs/31.0.50/lisp/org/org-element-ast
/home/steb/.config/emacs/elpaca/builds/org/org-duration hides /usr/share/emacs/31.0.50/lisp/org/org-duration
/home/steb/.config/emacs/elpaca/builds/org/org-datetree hides /usr/share/emacs/31.0.50/lisp/org/org-datetree
/home/steb/.config/emacs/elpaca/builds/org/org-cycle hides /usr/share/emacs/31.0.50/lisp/org/org-cycle
/home/steb/.config/emacs/elpaca/builds/org/org-ctags hides /usr/share/emacs/31.0.50/lisp/org/org-ctags
/home/steb/.config/emacs/elpaca/builds/org/org-crypt hides /usr/share/emacs/31.0.50/lisp/org/org-crypt
/home/steb/.config/emacs/elpaca/builds/org/org-compat hides /usr/share/emacs/31.0.50/lisp/org/org-compat
/home/steb/.config/emacs/elpaca/builds/org/org-colview hides /usr/share/emacs/31.0.50/lisp/org/org-colview
/home/steb/.config/emacs/elpaca/builds/org/org-clock hides /usr/share/emacs/31.0.50/lisp/org/org-clock
/home/steb/.config/emacs/elpaca/builds/org/org-capture hides /usr/share/emacs/31.0.50/lisp/org/org-capture
/home/steb/.config/emacs/elpaca/builds/org/org-attach hides /usr/share/emacs/31.0.50/lisp/org/org-attach
/home/steb/.config/emacs/elpaca/builds/org/org-attach-git hides /usr/share/emacs/31.0.50/lisp/org/org-attach-git
/home/steb/.config/emacs/elpaca/builds/org/org-archive hides /usr/share/emacs/31.0.50/lisp/org/org-archive
/home/steb/.config/emacs/elpaca/builds/org/org-agenda hides /usr/share/emacs/31.0.50/lisp/org/org-agenda
/home/steb/.config/emacs/elpaca/builds/org/ol hides /usr/share/emacs/31.0.50/lisp/org/ol
/home/steb/.config/emacs/elpaca/builds/org/ol-w3m hides /usr/share/emacs/31.0.50/lisp/org/ol-w3m
/home/steb/.config/emacs/elpaca/builds/org/ol-rmail hides /usr/share/emacs/31.0.50/lisp/org/ol-rmail
/home/steb/.config/emacs/elpaca/builds/org/ol-mhe hides /usr/share/emacs/31.0.50/lisp/org/ol-mhe
/home/steb/.config/emacs/elpaca/builds/org/ol-man hides /usr/share/emacs/31.0.50/lisp/org/ol-man
/home/steb/.config/emacs/elpaca/builds/org/ol-irc hides /usr/share/emacs/31.0.50/lisp/org/ol-irc
/home/steb/.config/emacs/elpaca/builds/org/ol-info hides /usr/share/emacs/31.0.50/lisp/org/ol-info
/home/steb/.config/emacs/elpaca/builds/org/ol-gnus hides /usr/share/emacs/31.0.50/lisp/org/ol-gnus
/home/steb/.config/emacs/elpaca/builds/org/ol-eww hides /usr/share/emacs/31.0.50/lisp/org/ol-eww
/home/steb/.config/emacs/elpaca/builds/org/ol-eshell hides /usr/share/emacs/31.0.50/lisp/org/ol-eshell
/home/steb/.config/emacs/elpaca/builds/org/ol-doi hides /usr/share/emacs/31.0.50/lisp/org/ol-doi
/home/steb/.config/emacs/elpaca/builds/org/ol-docview hides /usr/share/emacs/31.0.50/lisp/org/ol-docview
/home/steb/.config/emacs/elpaca/builds/org/ol-bibtex hides /usr/share/emacs/31.0.50/lisp/org/ol-bibtex
/home/steb/.config/emacs/elpaca/builds/org/ol-bbdb hides /usr/share/emacs/31.0.50/lisp/org/ol-bbdb
/home/steb/.config/emacs/elpaca/builds/org/oc hides /usr/share/emacs/31.0.50/lisp/org/oc
/home/steb/.config/emacs/elpaca/builds/org/oc-natbib hides /usr/share/emacs/31.0.50/lisp/org/oc-natbib
/home/steb/.config/emacs/elpaca/builds/org/oc-csl hides /usr/share/emacs/31.0.50/lisp/org/oc-csl
/home/steb/.config/emacs/elpaca/builds/org/oc-bibtex hides /usr/share/emacs/31.0.50/lisp/org/oc-bibtex
/home/steb/.config/emacs/elpaca/builds/org/oc-biblatex hides /usr/share/emacs/31.0.50/lisp/org/oc-biblatex
/home/steb/.config/emacs/elpaca/builds/org/oc-basic hides /usr/share/emacs/31.0.50/lisp/org/oc-basic
/home/steb/.config/emacs/elpaca/builds/org/ob hides /usr/share/emacs/31.0.50/lisp/org/ob
/home/steb/.config/emacs/elpaca/builds/org/ob-tangle hides /usr/share/emacs/31.0.50/lisp/org/ob-tangle
/home/steb/.config/emacs/elpaca/builds/org/ob-table hides /usr/share/emacs/31.0.50/lisp/org/ob-table
/home/steb/.config/emacs/elpaca/builds/org/ob-sqlite hides /usr/share/emacs/31.0.50/lisp/org/ob-sqlite
/home/steb/.config/emacs/elpaca/builds/org/ob-sql hides /usr/share/emacs/31.0.50/lisp/org/ob-sql
/home/steb/.config/emacs/elpaca/builds/org/ob-shell hides /usr/share/emacs/31.0.50/lisp/org/ob-shell
/home/steb/.config/emacs/elpaca/builds/org/ob-sed hides /usr/share/emacs/31.0.50/lisp/org/ob-sed
/home/steb/.config/emacs/elpaca/builds/org/ob-screen hides /usr/share/emacs/31.0.50/lisp/org/ob-screen
/home/steb/.config/emacs/elpaca/builds/org/ob-scheme hides /usr/share/emacs/31.0.50/lisp/org/ob-scheme
/home/steb/.config/emacs/elpaca/builds/org/ob-sass hides /usr/share/emacs/31.0.50/lisp/org/ob-sass
/home/steb/.config/emacs/elpaca/builds/org/ob-ruby hides /usr/share/emacs/31.0.50/lisp/org/ob-ruby
/home/steb/.config/emacs/elpaca/builds/org/ob-ref hides /usr/share/emacs/31.0.50/lisp/org/ob-ref
/home/steb/.config/emacs/elpaca/builds/org/ob-python hides /usr/share/emacs/31.0.50/lisp/org/ob-python
/home/steb/.config/emacs/elpaca/builds/org/ob-processing hides /usr/share/emacs/31.0.50/lisp/org/ob-processing
/home/steb/.config/emacs/elpaca/builds/org/ob-plantuml hides /usr/share/emacs/31.0.50/lisp/org/ob-plantuml
/home/steb/.config/emacs/elpaca/builds/org/ob-perl hides /usr/share/emacs/31.0.50/lisp/org/ob-perl
/home/steb/.config/emacs/elpaca/builds/org/ob-org hides /usr/share/emacs/31.0.50/lisp/org/ob-org
/home/steb/.config/emacs/elpaca/builds/org/ob-octave hides /usr/share/emacs/31.0.50/lisp/org/ob-octave
/home/steb/.config/emacs/elpaca/builds/org/ob-ocaml hides /usr/share/emacs/31.0.50/lisp/org/ob-ocaml
/home/steb/.config/emacs/elpaca/builds/org/ob-maxima hides /usr/share/emacs/31.0.50/lisp/org/ob-maxima
/home/steb/.config/emacs/elpaca/builds/org/ob-matlab hides /usr/share/emacs/31.0.50/lisp/org/ob-matlab
/home/steb/.config/emacs/elpaca/builds/org/ob-makefile hides /usr/share/emacs/31.0.50/lisp/org/ob-makefile
/home/steb/.config/emacs/elpaca/builds/org/ob-lua hides /usr/share/emacs/31.0.50/lisp/org/ob-lua
/home/steb/.config/emacs/elpaca/builds/org/ob-lob hides /usr/share/emacs/31.0.50/lisp/org/ob-lob
/home/steb/.config/emacs/elpaca/builds/org/ob-lisp hides /usr/share/emacs/31.0.50/lisp/org/ob-lisp
/home/steb/.config/emacs/elpaca/builds/org/ob-lilypond hides /usr/share/emacs/31.0.50/lisp/org/ob-lilypond
/home/steb/.config/emacs/elpaca/builds/org/ob-latex hides /usr/share/emacs/31.0.50/lisp/org/ob-latex
/home/steb/.config/emacs/elpaca/builds/org/ob-julia hides /usr/share/emacs/31.0.50/lisp/org/ob-julia
/home/steb/.config/emacs/elpaca/builds/org/ob-js hides /usr/share/emacs/31.0.50/lisp/org/ob-js
/home/steb/.config/emacs/elpaca/builds/org/ob-java hides /usr/share/emacs/31.0.50/lisp/org/ob-java
/home/steb/.config/emacs/elpaca/builds/org/ob-haskell hides /usr/share/emacs/31.0.50/lisp/org/ob-haskell
/home/steb/.config/emacs/elpaca/builds/org/ob-groovy hides /usr/share/emacs/31.0.50/lisp/org/ob-groovy
/home/steb/.config/emacs/elpaca/builds/org/ob-gnuplot hides /usr/share/emacs/31.0.50/lisp/org/ob-gnuplot
/home/steb/.config/emacs/elpaca/builds/org/ob-fortran hides /usr/share/emacs/31.0.50/lisp/org/ob-fortran
/home/steb/.config/emacs/elpaca/builds/org/ob-forth hides /usr/share/emacs/31.0.50/lisp/org/ob-forth
/home/steb/.config/emacs/elpaca/builds/org/ob-exp hides /usr/share/emacs/31.0.50/lisp/org/ob-exp
/home/steb/.config/emacs/elpaca/builds/org/ob-eval hides /usr/share/emacs/31.0.50/lisp/org/ob-eval
/home/steb/.config/emacs/elpaca/builds/org/ob-eshell hides /usr/share/emacs/31.0.50/lisp/org/ob-eshell
/home/steb/.config/emacs/elpaca/builds/org/ob-emacs-lisp hides /usr/share/emacs/31.0.50/lisp/org/ob-emacs-lisp
/home/steb/.config/emacs/elpaca/builds/org/ob-dot hides /usr/share/emacs/31.0.50/lisp/org/ob-dot
/home/steb/.config/emacs/elpaca/builds/org/ob-ditaa hides /usr/share/emacs/31.0.50/lisp/org/ob-ditaa
/home/steb/.config/emacs/elpaca/builds/org/ob-css hides /usr/share/emacs/31.0.50/lisp/org/ob-css
/home/steb/.config/emacs/elpaca/builds/org/ob-core hides /usr/share/emacs/31.0.50/lisp/org/ob-core
/home/steb/.config/emacs/elpaca/builds/org/ob-comint hides /usr/share/emacs/31.0.50/lisp/org/ob-comint
/home/steb/.config/emacs/elpaca/builds/org/ob-clojure hides /usr/share/emacs/31.0.50/lisp/org/ob-clojure
/home/steb/.config/emacs/elpaca/builds/org/ob-calc hides /usr/share/emacs/31.0.50/lisp/org/ob-calc
/home/steb/.config/emacs/elpaca/builds/org/ob-awk hides /usr/share/emacs/31.0.50/lisp/org/ob-awk
/home/steb/.config/emacs/elpaca/builds/org/ob-R hides /usr/share/emacs/31.0.50/lisp/org/ob-R
/home/steb/.config/emacs/elpaca/builds/org/ob-C hides /usr/share/emacs/31.0.50/lisp/org/ob-C

Features:
(shadow sort mail-extr hippie-exp misearch multi-isearch
emacsql-sqlite-builtin eshell-syntax-highlighting em-elecslash em-ls
em-glob em-extpipe em-dirs em-basic em-alias emacsbug lisp-mnt help-fns
radix-tree mule-util vertico-sort tramp-cmds rainbow-mode
evil-collection-flymake flymake rainbow-delimiters
evil-collection-vc-git vc-git vc-dispatcher vertico-repeat
evil-collection-consult consult magit-bookmark org-bookmark-heading
notmuch-bookmarks evil-collection-bookmark bookmark windmove tramp-cache
time-stamp filechooser pinentry evil-collection-atomic-chrome
atomic-chrome websocket bindat iwd i3bar ednc dbus xml exwm-xsettings
xcb-xsettings exwm-background exwm-systemtray xcb-systemtray xcb-xembed
exwm-randr xcb-randr exwm exwm-input xcb-keysyms xcb-xkb exwm-manage
exwm-floating xcb-cursor xcb-render exwm-layout exwm-workspace exwm-core
xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types xcb-debug posframe
face-remap visual-fill-column ligature cape org-appear stripspace
oc-basic bibtex ol-man ol-info ol-docview evil-collection-doc-view
doc-view jka-compr evil-collection-image image-mode exif compile-angel
saveplace savehist show-font org-protocol evil-org org-element
org-persist org-id org-refile avl-tree org-modern ob-dot ob-latex
ob-python evil-collection-python python ob-gnuplot ob-calc calc-store
calc-trail calc-ext evil-collection-calc calc calc-loaddefs calc-macs
ob-shell evil-collection-org org-crypt org ob ob-tangle ob-ref ob-lob
ob-table ob-exp org-macro org-src evil-collection-sh-script sh-script
smie executable ob-comint org-element-ast inline org-pcomplete org-list
org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval
org-cycle org-table ol org-fold org-fold-core org-keys oc org-compat
org-version org-macs notmuch-addr evil-collection-eat eat term/xterm
xterm tramp-sh tramp trampver tramp-integration tramp-message
tramp-compat tramp-loaddefs evil-collection-term term ehelp
evil-collection-forge forge-repos forge-tablist forge-topics
forge-commands forge-semi forge-bitbucket buck forge-gogs gogs
forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
gsexp ghub url-http url-gw nsm url-auth let-alist forge-forgejo
forge-notify forge-revnote forge-pullreq forge-issue forge-discussion
forge-topic yaml parse-time iso8601 eieio-custom bug-reference
forge-post evil-collection-markdown-mode markdown-mode edit-indirect
evil-collection-outline noutline outline forge-repo forge forge-core
forge-db closql emacsql-sqlite emacsql emacsql-compiler eieio-base
evil-collection-magit-todos magit-todos pcre2el rxt advice re-builder f
s dash evil-collection-grep grep evil-collection-compile compile
evil-collection-magit magit-submodule magit-blame magit-stash
magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs
magit-status magit evil-collection-package-menu package url-handlers
evil-collection-magit-repos magit-repos magit-apply magit-wip magit-log
which-func evil-collection-imenu imenu magit-diff
evil-collection-smerge-mode smerge-mode diff git-commit
evil-collection-log-edit log-edit pcvs-util add-log magit-core
magit-autorevert magit-margin magit-transient magit-process
evil-collection-with-editor with-editor shell server magit-mode
transient browse-url benchmark magit-git magit-base
evil-collection-magit-section magit-section cursor-sensor llama
dired-async async dired-aux yasnippet evil-collection-ultra-scroll
ultra-scroll pixel-scroll cua-base hl-todo marginalia nerd-icons-corfu
nerd-icons-completion nerd-icons nerd-icons-faces nerd-icons-data
nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon
nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon
nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon
nerd-icons-data-pomicon nerd-icons-data-ipsicon jinx visual-replace
evil-collection-which-key which-key vertico corfu-popupinfo
evil-collection-corfu corfu orderless isearch-mb evil-goggles pulse
color evil-textobj-tree-sitter evil-textobj-tree-sitter-thing-at-point
evil-textobj-tree-sitter-core treesit evil-args evil-surround cus-start
evil-collection-unimpaired evil-collection-tabulated-list
evil-collection-tab-bar evil-collection-simple evil-collection-replace
evil-collection-process-menu evil-collection-notmuch
evil-collection-kmacro evil-collection-indent evil-collection-help
evil-collection-epa evil-collection-elisp-mode evil-collection-eldoc
evil-collection-elpaca evil-collection-dired evil-collection-custom
evil-collection-comint evil-collection-calendar
evil-collection-buff-menu evil-collection annalist ednc-autoloads
i3bar-autoloads discomfort-autoloads debase-autoloads iwd-autoloads
bluetooth-autoloads app-launcher-autoloads atomic-chrome-autoloads
websocket-autoloads pinentry-autoloads playerctl-autoloads
exwm-autoloads xelb-autoloads ol-notmuch-autoloads microdata-autoloads
notmuch-addr-autoloads eshell-syntax-highlighting-autoloads
eat-autoloads git-link-autoloads pr-review-autoloads igist-autoloads
magit-todos-autoloads wgrep-autoloads watch-autoloads tmr-autoloads
syncthing-autoloads pcre2el-autoloads qrencode-autoloads
password-store-menu-autoloads password-store-autoloads
named-pipe-autoloads info-colors-autoloads helpful-autoloads
elisp-refs-autoloads devdocs-autoloads whisper-autoloads gptel-autoloads
copilot-autoloads tzc-autoloads journalctl-autoloads systemctl-autoloads
proced-narrow-autoloads show-font-autoloads dbus-explore-autoloads
disk-usage-autoloads dired-filter-autoloads dired-hacks-utils-autoloads
f-autoloads s-autoloads dash-autoloads diredfl-autoloads
org-bookmark-heading-autoloads notmuch-bookmarks-autoloads
pdf-tools-autoloads tablist-autoloads nov-autoloads esxml-autoloads
calibre-autoloads orgit-forge-autoloads forge-autoloads closql-autoloads
emacsql-autoloads ghub-autoloads treepy-autoloads yaml-autoloads
orgit-autoloads magit-autoloads magit-section-autoloads
with-editor-autoloads evil-org-autoloads org-download-autoloads
async-autoloads org-appear-autoloads org-modern-autoloads org-loaddefs
edit-indirect-autoloads markdown-mode-autoloads web-mode-autoloads
wat-ts-mode-autoloads solidity-mode-autoloads comint-mime-autoloads
mathjax-autoloads flymake-ruff-autoloads evm-mode-autoloads
package-lint-flymake-autoloads package-lint-autoloads eff-autoloads
pkgbuild-mode-autoloads gnuplot-autoloads graphviz-dot-mode-autoloads
csv-mode-autoloads udev-mode-autoloads systemd-autoloads
ssh-config-mode-autoloads nftables-mode-autoloads git-modes-autoloads
rmsbolt-autoloads rust-playground-autoloads consult-eglot-autoloads
dape-autoloads casual-autoloads notmuch-transient-autoloads
transient-autoloads bash-completion-autoloads cape-autoloads
yasnippet-autoloads iwindow-autoloads consult-project-extra-autoloads
ultra-scroll-autoloads ligature-autoloads hl-todo-autoloads
rainbow-mode-autoloads marginalia-autoloads posframe-autoloads
rainbow-delimiters-autoloads visual-fill-column-autoloads
nerd-icons-corfu-autoloads nerd-icons-ibuffer-autoloads
nerd-icons-completion-autoloads nerd-icons-dired-autoloads
nerd-icons-autoloads link-hint-autoloads avy-autoloads
snapshot-timemachine-autoloads stripspace-autoloads vundo-autoloads
jinx-autoloads visual-replace-autoloads vertico-autoloads
corfu-autoloads orderless-autoloads isearch-mb-autoloads
embark-consult-autoloads consult-autoloads embark-autoloads
evil-goggles-autoloads evil-nerd-commenter-autoloads
evil-textobj-tree-sitter-autoloads evil-args-autoloads
evil-surround-autoloads evil-collection-autoloads annalist-autoloads
filechooser-autoloads notmuch notmuch-tree notmuch-jump notmuch-hello
notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message
notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company
notmuch-parser format-spec notmuch-wash diff-mode track-changes coolj
goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs notmuch-tag crm notmuch-lib notmuch-compat hl-line message
sendmail yank-media dired dired-loaddefs rfc822 mml mailabbrev
mail-utils gmm-utils mailheader mm-view mml-smime mml-sec epa epg
rfc6068 epg-config gnus-util time-date smime gnutls puny dig mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr em-prompt text-property-search em-hist em-unix
em-pred esh-mode esh-var eshell esh-cmd generator esh-ext esh-proc
esh-opt esh-io esh-arg pcomplete comint ansi-osc ansi-color esh-module
esh-module-loaddefs esh-util files-x recentf tree-widget editorconfig
editorconfig-core editorconfig-core-handle editorconfig-fnmatch project
disp-table modus-operandi-theme modus-themes derived pcase autorevert
filenotify mb-depth minibuf-eldef elpaca-menu-elpa evil evil-integration
evil-maps evil-commands reveal evil-jumps evil-command-window evil-types
evil-search evil-ex evil-macros evil-repeat evil-states evil-core
comp-run evil-common thingatpt rect evil-vars ring edmacro kmacro
evil-autoloads goto-chg-autoloads general general-autoloads
llama-autoloads compile-angel-autoloads mode-local find-func
no-littering compat no-littering-autoloads elpaca-menu-melpa
elpaca-menu-org elpaca-use-package use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
easy-mmode use-package-core elpaca-use-package-autoloads elpaca-log
elpaca-ui url url-proxy url-privacy url-expand url-methods url-history
url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source
eieio eieio-core cl-macs password-cache json map byte-opt url-vars
mailcap elpaca elpaca-process elpaca-autoloads notmuch-version comp
cl-seq comp-cstr cl-extra help-mode comp-common warnings subr-x rx gv
bytecomp byte-compile xdg cus-edit pp cus-load icons wid-edit
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting font-render-setting cairo xinput2 x multi-tty
move-toolbar make-network-process tty-child-frames native-compile mps
emacs)

Memory information:
((conses 24 0 0) (symbols 56 0 0) (strings 40 0 0) (string-bytes 1 0) (vectors 24 0)
 (vector-slots 8 0 0) (floats 24 0 0) (intervals 64 0 0) (buffers 1000 0))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 27 Apr 2025 14:50:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 10:50:23 2025
Received: from localhost ([127.0.0.1]:43324 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u93Ko-0005nT-Lf
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 10:50:23 -0400
Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]:55037)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <steven@HIDDEN>)
 id 1u93Kk-0005mv-Bf
 for 77928 <at> debbugs.gnu.org; Sun, 27 Apr 2025 10:50:19 -0400
Received: from phl-compute-01.internal (phl-compute-01.phl.internal
 [10.202.2.41])
 by mailfout.stl.internal (Postfix) with ESMTP id 6879A11401FC;
 Sun, 27 Apr 2025 10:50:12 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-01.internal (MEProxy); Sun, 27 Apr 2025 10:50:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:reply-to
 :subject:subject:to:to; s=fm2; t=1745765412; x=1745851812; bh=tN
 YxfieSSb3egTeK4igtJo3pceKgkZkgc7XZP5gXo+Y=; b=VquvOZgEZPIlI12C2u
 qUlM+MMKFMjxGLD40vHtGYT/0kOy+ZDEPS+nlrH9W5JBg8VAkO3nEuFuP/OXWqGv
 LWINm9DoWDF694sieZ+vQB20/sl8SJp1D1jJquEVn6NQa0Qps9m9RrMMOe5zuXVb
 Rled/eY5i98rpcd1VfeOTQIUVrGDnh5ylc/O0jyh4ectrflWZo2fRvJdaaJPyLCn
 g7j+BnH8cVbcX9aY3/5DNR9FrRGzww+I1TzR942CDMcgJyOh0LSe/LIUQu4zi2Y7
 liMUYwk8oDOpqsSdXFMMezV4DA56Sle49n0gNb8QzIKlxYeMmU8Qcgce2/kHtbyS
 Vc9w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1745765412; x=1745851812; bh=tNYxfieSSb3egTeK4igtJo3pceKgkZkgc7X
 ZP5gXo+Y=; b=rrI6eNoyLKWXxgcSntPd1eJJl7LdFGzKtEgx0PgiyExKRdzF5tv
 6sgb5wYrdnbiwnh9DumGJzT68gSsAo5k+6Ih67EtrqrSsWlvu2Im/BTRagFMHZrB
 94ZejwUL1GRoHRs/R0W23ySFhu6bpOGyBTMyZ23JcIMSokUyyEV9dsYoI5PWh5Ib
 PyGpMqEi7RIGFnLT4b0H9OlSbO6K2Uq/x1trzoL8fOP/mITrWocVCaiDy47hYK2R
 MyEiJzeq1OS7YJ0deM1z/yTxyUhvIbQtUJuE5L/ieeAW8ShFV5IuYR07IbWOqK8U
 Plaeea4Ua4iXVVsUwoKzQ8cTrfl2JLIlDwA==
X-ME-Sender: <xms:I0QOaONUR-TbvnI9O52xsdmPwnIhwfo96j2oaFD_GyQnBK_yWNo45g>
 <xme:I0QOaM8y3atOFAc9seS0Q-gEJUqBHYqXMEgHeZ7MvldLi9uj3UJh65XqE40ftIFwT
 SCBEzo5Oh1oacdxN7I>
X-ME-Received: <xmr:I0QOaFT0CDmpLEr6Ozekl02WNqJNVzdo6oPdKTw-9FE0oBL95hRGZHAe7ew>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvheekfeehucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhephffvvefujgffkfggtgesthdtredttddttden
 ucfhrhhomhepufhtvghvvghnucetlhhlvghnuceoshhtvghvvghnsehsthgvsggrlhhivg
 hnrdgtohhmqeenucggtffrrghtthgvrhhnpedtheffheehtdfgtdeuheffffffheettdek
 tefhtdfhfedvgfevheevffetvedvheenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomhdpnhgs
 pghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjeejledvke
 esuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehjohhhnhifsehgnhhurdho
 rhhgpdhrtghpthhtohepshhhihgvlhgushesmhhsrhhlrdgtohhm
X-ME-Proxy: <xmx:I0QOaOvrpq6lDsGi8eqMaoZ-Jn2E8xr7Uc6VqjdHs6ZJxZ_zHy8kiQ>
 <xmx:I0QOaGdZ79e-zTf4RhqrgPwm_dsvMYPCiWBTCTJ4EWlDw4S9WZMV_g>
 <xmx:I0QOaC03FjkDTCUEdKkOhRsQMW11R6PcgrDVUsstTsG8HjFlNHziVA>
 <xmx:I0QOaK99IZoS-U1thMu93KTKYwMcD2kpVk1yipItqazkuhs0e3gx-w>
 <xmx:JEQOaMBPhxYaXBF8zTizq0A6BB7DUsPUhpwxp7BCojq-KnAdDEKCg0sY>
Feedback-ID: ie8a146a7:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 27 Apr 2025 10:50:11 -0400 (EDT)
From: Steven Allen <steven@HIDDEN>
To: 77928 <at> debbugs.gnu.org
Subject: [PATCH] use-package :custom-face is meant to behave like
 custom-set-face
In-Reply-To: <8634durqjp.fsf@HIDDEN>
Date: Sun, 27 Apr 2025 07:50:07 -0700
Message-ID: <87plgx3bhc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77928
Cc: johnw@HIDDEN, Michael Shields <shields@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


From my testing, this makes it impossible to override themed faces with
:custom-face. This can be reproduced by applying a theme then attempting
to override a themed face with :custom-face.

Additionally, this patch makes the feature much less useful for tweaking
faces. Previously, it was possible to achieve both behaviors (override or
merge), now it's only possible to override.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928-done <at> debbugs.gnu.org:


Received: (at 77928-done) by debbugs.gnu.org; 27 Apr 2025 07:51:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 03:51:10 2025
Received: from localhost ([127.0.0.1]:38671 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u8wn6-0005ok-3D
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 03:51:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55728)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u8wmw-0005mT-JC
 for 77928-done <at> debbugs.gnu.org; Sun, 27 Apr 2025 03:51:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1u8wmq-0003IR-Ig; Sun, 27 Apr 2025 03:50:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Pfyx77tDVd0qrYVsMMk9nLIP95PUKmhGRCV9SLUPM14=; b=I+El+i23fjXv
 b2B1E+X1SMuBaKtooQG4564tlg1krZbSHHmja6yKsZjtnBrDKONOecFxlwJ05WP98pTFOaMiJuOsS
 Vw2YEWWMh5ctMNFAVcbct+42ISTBy/r1NEvWUOhzFaEyoO1UJBVZalIV7lFTN7LEjIqZeczdEQWGl
 cbaGnE5SwcooLF4UVhujIT9BlGaBVMaMTEEnWWWk2obvLWNnuu17KBWqUOvC6ugD/kqHutRbghFN3
 5nD2D9g7JmaxMu8qJ0r9BkNcZ82MSsyhlo0aFYSxgMIGf5JYnPk2ieRwmpVDTmc4P3mHLiKaK8ey4
 GLmlRKsRtdyH1VYqkCYlfA==;
Date: Sun, 27 Apr 2025 10:50:50 +0300
Message-Id: <8634durqjp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Shields <shields@HIDDEN>
In-Reply-To: <CAMPZLERpam+jQW+n9np+1BRVZsD2gUKL8ReMuMztuzKOJVsN4A@HIDDEN>
 (message from Michael Shields on Sat, 26 Apr 2025 13:35:42 -0700)
Subject: Re: bug#77928: [PATCH] use-package :custom-face is meant to behave
 like custom-set-face
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <86tt6bt78v.fsf@HIDDEN>
 <CAMPZLERpam+jQW+n9np+1BRVZsD2gUKL8ReMuMztuzKOJVsN4A@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928-done
Cc: 77928-done <at> debbugs.gnu.org, johnw@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Shields <shields@HIDDEN>
> Date: Sat, 26 Apr 2025 13:35:42 -0700
> Cc: John Wiegley <johnw@HIDDEN>, 77928 <at> debbugs.gnu.org
> 
> Attached is a combined patch with an updated commit message.
> 
> I cannot reproduce those test failures. I see 167/167 tests pass when I run `make -C test
> check-lisp-use-package'. I'm testing commit be4819b, plus the attached patch, on macOS 15.4.1.

Thanks, installed on the master branch, and closing the bug.




Notification sent to Michael Shields <shields@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Eli Zaretskii <eliz@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 26 Apr 2025 20:36:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 26 16:36:02 2025
Received: from localhost ([127.0.0.1]:35476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u8mFm-0007Ma-6f
	for submit <at> debbugs.gnu.org; Sat, 26 Apr 2025 16:36:02 -0400
Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:44314)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shields@HIDDEN>) id 1u8mFj-0007M2-Ft
 for 77928 <at> debbugs.gnu.org; Sat, 26 Apr 2025 16:36:00 -0400
Received: by mail-yb1-xb30.google.com with SMTP id
 3f1490d57ef6-e53a91756e5so3120435276.1
 for <77928 <at> debbugs.gnu.org>; Sat, 26 Apr 2025 13:35:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=msrl.com; s=google; t=1745699754; x=1746304554; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=qEIaLe6Id305tKyGs2mwe68OxEerAPvRYupty5K++Rs=;
 b=LrTXlF3dxIR41jdV/UB7a7/ESi9UxrV5oadfUD2NSwa+9pKd+e/HjU98mwVChOW1mK
 ukwd3n+DWuXT1VaY1FJfQfliu0GWAa/+FnQHOguSQIlg0HS/Rs7NudAdC9079cFxKPwX
 IHgniayTOGfZwHuccmb4d0ieoFcuE+qOWkMcc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745699754; x=1746304554;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=qEIaLe6Id305tKyGs2mwe68OxEerAPvRYupty5K++Rs=;
 b=wFwRh5GPczHDo+aAL5Xl16oq0PXbpema4xfTRtQWnMSb8IxxX/Mmn8pTmVonIQPVFu
 LtY2r7JozELU0PrdhY54v88pTpNhVbaOGmisxtf0d5jet8EAtllCiOqvLFRYkI5sQoPa
 ODjn1Bsu7q0Ua/n3L9NrhCBweXFTGFSBwFjIt7ea7Zw1DzWfxbpcXaWANnVJGXj9vmMX
 6ssJB2bkQhmARy+jgn5G1ua4ZkgtjCgeCfgfnN2fuga6CGY+Uxtt3imxjksy8RLZe1Q0
 3C5oEQ6RKPfpy5IO/3uzhZ0ACgUIxG760Hg1oYVpO5NrMpcSUYhJ3C+oAYGV573lI8Fi
 GHOg==
X-Forwarded-Encrypted: i=1;
 AJvYcCV8VFqaPGcQz0o0GW1go6QueyMc74v0wa8nKaAzHiMbNx+/St9C5IcJn16daXgKOGwqLXPOJQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwoMx8HR5jWz8aTUPgwg740juANA2wVPZTrFiTjkJsyKDFeliJA
 2+fxc6pApt92Ei+dRxJVTNXjYmBAZ+3RX4CbtdldM9D+toY52HbomI7D0/FxBaM6ewelPCEx+MY
 K0ljatn0oef+zqsXbRc7x6JlJN6lTt6qMhbGC
X-Gm-Gg: ASbGncsdKBxhh3iKLJ40iDhURR34yHOnNxy2dKYxC1Vf2l/RHUzCJHlyzZEzCb1jZWz
 PO7bqqXWR2nA50WW1WLWrfCWctV8Vih3DCe1g/cw5o03Wqbh2YU8fbE1y56RqyVek/SbwrfnXY7
 purZaRSLVS5aR2AwRN0tg13ClzW6yRr/89L0vHaeErveEM1r7V9c5+H0Bu
X-Google-Smtp-Source: AGHT+IHlpxd6g99x26gtiEax/MFwo41dT3kTUoV4E8InlXBsgaEIRhUVSUey7YmypjBu+s7QP1jT6YJ34aO6wmsvpv4=
X-Received: by 2002:a05:6902:4401:b0:e72:a1b8:3b0d with SMTP id
 3f1490d57ef6-e7316b73606mr7853488276.37.1745699753617; Sat, 26 Apr 2025
 13:35:53 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <86tt6bt78v.fsf@HIDDEN>
In-Reply-To: <86tt6bt78v.fsf@HIDDEN>
From: Michael Shields <shields@HIDDEN>
Date: Sat, 26 Apr 2025 13:35:42 -0700
X-Gm-Features: ATxdqUGFCM7RaUJKb9JlmaevLTOeEGEkgJgveVJGsXsFeTVx-eKcACis0v1kTDE
Message-ID: <CAMPZLERpam+jQW+n9np+1BRVZsD2gUKL8ReMuMztuzKOJVsN4A@HIDDEN>
Subject: Re: bug#77928: [PATCH] use-package :custom-face is meant to behave
 like custom-set-face
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000b399590633b4654f"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, John Wiegley <johnw@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000b399590633b4654f
Content-Type: multipart/alternative; boundary="000000000000b399560633b4654d"

--000000000000b399560633b4654d
Content-Type: text/plain; charset="UTF-8"

Attached is a combined patch with an updated commit message.

I cannot reproduce those test failures. I see 167/167 tests pass when I run
`make -C test check-lisp-use-package'. I'm testing commit be4819b, plus the
attached patch, on macOS 15.4.1.

--000000000000b399560633b4654d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Attached is a combined patch with an updated commit messag=
e.<div><br></div><div>I cannot reproduce those test failures. I see 167/167=
 tests pass when I run `make -C test check-lisp-use-package&#39;. I&#39;m t=
esting commit be4819b, plus the attached patch, on macOS 15.4.1.</div></div=
>

--000000000000b399560633b4654d--

--000000000000b399590633b4654f
Content-Type: application/octet-stream; 
	name="0001-Fix-use-package-custom-face-to-set-face-defface-spec.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-use-package-custom-face-to-set-face-defface-spec.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_m9yoiygt0>
X-Attachment-Id: f_m9yoiygt0

RnJvbSA2MzZkZmQ1NzFhYzQ1MDUxNTRmZTRjM2U5NjE5N2RjYjBkN2E2NzZhIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIFNoaWVsZHMgPHNoaWVsZHNAbXNybC5jb20+CkRh
dGU6IFNhdCwgMTkgQXByIDIwMjUgMTI6NTg6MjYgLTA3MDAKU3ViamVjdDogW1BBVENIXSBGaXgg
dXNlLXBhY2thZ2UgOmN1c3RvbS1mYWNlIHRvIHNldCBmYWNlLWRlZmZhY2Utc3BlYwogKGJ1ZyM3
NzkyOCkKCkJ5IGRlZmF1bHQsIGBmYWNlLXNldC1zcGVjJyBzZXRzIHRoZSBvdmVycmlkZSBmYWNl
IHNwZWMsIHNvIGZhY2UKYXR0cmlidXRlcyBhcmUgY29tYmluZWQgd2l0aCBkZWZhdWx0cyByYXRo
ZXIgdGhhbiByZXBsYWNpbmcgdGhlbS4KVGhpcyB3YXMgYSBiZWhhdmlvciBjaGFuZ2UgdGhhdCB3
YXMgYW4gYXBwYXJlbnRseSB1bmludGVuZGVkCmNvbnNlcXVlbmNlIG9mIGNvbW1pdCA2YjM0NGE5
LgoKQWxzbyBzZXQgdGhlIGBmYWNlLW1vZGlmaWVkJyBwcm9wZXJ0eSwgd2hpY2ggY2F1c2VzIEN1
c3RvbWl6ZSB0bwpmbGFnIHRoZSBmYWNlIGFzIGNoYW5nZWQgb3V0c2lkZSBDdXN0b21pemUuCgoq
IGRvYy9taXNjL3VzZS1wYWNrYWdlLnRleGkgKEZhY2VzKTogRG9jdW1lbnQgdGhlIGJlaGF2aW9y
LgoqIGxpc3AvdXNlLXBhY2thZ2UvdXNlLXBhY2thZ2UtY29yZS5lbCAodXNlLXBhY2thZ2UtaGFu
ZGxlci86Y3VzdG9tLWZhY2UpOgoodXNlLXBhY2thZ2UpOiBJbXByb3ZlIGRvY3N0cmluZyB0byBy
ZWZsZWN0IGltcGxlbWVudGF0aW9uLgoqIHRlc3QvbGlzcC91c2UtcGFja2FnZS91c2UtcGFja2Fn
ZS10ZXN0cy5lbAoodXNlLXBhY2thZ2UtdGVzdC86Y3VzdG9tLWZhY2UtMSk6ICh1c2UtcGFja2Fn
ZS10ZXN0LzpjdXN0b20tZmFjZS0yKToKKHVzZS1wYWNrYWdlLXRlc3QvOmN1c3RvbS1mYWNlLTMp
OiAodXNlLXBhY2thZ2UtdGVzdC86Y3VzdG9tLWZhY2UtNCk6CkFkZCB0ZXN0cy4KLS0tCiBkb2Mv
bWlzYy91c2UtcGFja2FnZS50ZXhpICAgICAgICAgICAgICAgICAgfCAgNyArKystCiBsaXNwL3Vz
ZS1wYWNrYWdlL3VzZS1wYWNrYWdlLWNvcmUuZWwgICAgICAgfCAgOCArKystLQogdGVzdC9saXNw
L3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLXRlc3RzLmVsIHwgNDAgKysrKysrKysrKysrKysrKysr
LS0tLQogMyBmaWxlcyBjaGFuZ2VkLCA0NiBpbnNlcnRpb25zKCspLCA5IGRlbGV0aW9ucygtKQoK
ZGlmZiAtLWdpdCBhL2RvYy9taXNjL3VzZS1wYWNrYWdlLnRleGkgYi9kb2MvbWlzYy91c2UtcGFj
a2FnZS50ZXhpCmluZGV4IGMxNGU3Yjc3ZDIzLi4zNDFiNmRhODdkOSAxMDA2NDQKLS0tIGEvZG9j
L21pc2MvdXNlLXBhY2thZ2UudGV4aQorKysgYi9kb2MvbWlzYy91c2UtcGFja2FnZS50ZXhpCkBA
IC0xNDQyLDcgKzE0NDIsNyBAQCBGYWNlcwogKHVzZS1wYWNrYWdlIGV4YW1wbGUKICAgOmN1c3Rv
bS1mYWNlCiAgIChleGFtcGxlLTEtZmFjZSAoKHQgKDpmb3JlZ3JvdW5kICJMaWdodFBpbmsiKSkp
KQotICAoZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGlnaHRHcmVlbiIpKSkgZmFj
ZS1kZWZzcGVjLXNwZWMpKQorICAoZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGln
aHRHcmVlbiIpKSkpKQogQGVuZCBncm91cAogCiBAZ3JvdXAKQEAgLTE0NTcsNiArMTQ1NywxMSBA
QCBGYWNlcwogQGVuZCBncm91cAogQGVuZCBsaXNwCiAKK1NpbWlsYXJseSB0byBAY29kZXs6Y3Vz
dG9tfSAoQHB4cmVme1VzZXIgb3B0aW9uc30pLCB0aGlzIGFsbG93cworY29uZmlndXJpbmcgY3Vz
dG9taXphYmxlIGZhY2VzIG91dHNpZGUgb2YgQ3VzdG9taXplIChAcHhyZWZ7U2F2aW5nCitDdXN0
b21pemF0aW9ucywsLCBlbWFjcywgR05VIEVtYWNzIE1hbnVhbH0pLiAgVXNpbmcgYm90aCBzeXN0
ZW1zIHRvCitjb25maWd1cmUgdGhlIHNhbWUgZmFjZSBjYW4gbGVhZCB0byBjb25mdXNpbmcgcmVz
dWx0cy4KKwogQG5vZGUgSGlkaW5nIG1pbm9yIG1vZGVzCiBAc2VjdGlvbiBIaWRpbmcgbWlub3Ig
bW9kZXMgd2l0aCBkaW1pbmlzaCBhbmQgZGVsaWdodAogQGNpbmRleCBoaWRpbmcgbWlub3IgbW9k
ZXMKZGlmZiAtLWdpdCBhL2xpc3AvdXNlLXBhY2thZ2UvdXNlLXBhY2thZ2UtY29yZS5lbCBiL2xp
c3AvdXNlLXBhY2thZ2UvdXNlLXBhY2thZ2UtY29yZS5lbAppbmRleCBjMDQwNTNjMjJhYy4uNGI2
M2Q5ODU2MDQgMTAwNjQ0Ci0tLSBhL2xpc3AvdXNlLXBhY2thZ2UvdXNlLXBhY2thZ2UtY29yZS5l
bAorKysgYi9saXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLWNvcmUuZWwKQEAgLTE1ODQsNyAr
MTU4NCwxMSBAQCB1c2UtcGFja2FnZS1ub3JtYWxpemUvOmN1c3RvbS1mYWNlCiAoZGVmdW4gdXNl
LXBhY2thZ2UtaGFuZGxlci86Y3VzdG9tLWZhY2UgKG5hbWUgX2tleXdvcmQgYXJncyByZXN0IHN0
YXRlKQogICAiR2VuZXJhdGUgdXNlLXBhY2thZ2UgY3VzdG9tLWZhY2Uga2V5d29yZCBjb2RlLiIK
ICAgKHVzZS1wYWNrYWdlLWNvbmNhdAotICAgKG1hcGNhciAjJyhsYW1iZGEgKGRlZikgYChhcHBs
eSAjJ2ZhY2Utc3BlYy1zZXQgKGJhY2txdW90ZSAsZGVmKSkpIGFyZ3MpCisgICAobWFwY2FyICMn
KGxhbWJkYSAoZGVmKQorICAgICAgICAgICAgICAgYChwcm9nbgorICAgICAgICAgICAgICAgICAg
KGFwcGx5ICMnZmFjZS1zcGVjLXNldCAoYXBwZW5kIChiYWNrcXVvdGUgLGRlZikgJyhmYWNlLWRl
ZmZhY2Utc3BlYykpKQorICAgICAgICAgICAgICAgICAgKHB1dCAnLChjYXIgZGVmKSAnZmFjZS1t
b2RpZmllZCB0KSkpCisgICAgICAgICAgIGFyZ3MpCiAgICAodXNlLXBhY2thZ2UtcHJvY2Vzcy1r
ZXl3b3JkcyBuYW1lIHJlc3Qgc3RhdGUpKSkKIAogOzs7OyA6aW5pdApAQCAtMTg0OCw3ICsxODUy
LDcgQEAgdXNlLXBhY2thZ2UKIDpjdXN0b20gICAgICAgICAgQ2FsbCBgQ3VzdG9tLXNldCcgb3Ig
YHNldC1kZWZhdWx0JyB3aXRoIGVhY2ggdmFyaWFibGUKICAgICAgICAgICAgICAgICAgZGVmaW5p
dGlvbiB3aXRob3V0IG1vZGlmeWluZyB0aGUgRW1hY3MgYGN1c3RvbS1maWxlJy4KICAgICAgICAg
ICAgICAgICAgKGNvbXBhcmUgd2l0aCBgY3VzdG9tLXNldC12YXJpYWJsZXMnKS4KLTpjdXN0b20t
ZmFjZSAgICAgQ2FsbCBgY3VzdG9tLXNldC1mYWNlcycgd2l0aCBlYWNoIGZhY2UgZGVmaW5pdGlv
bi4KKzpjdXN0b20tZmFjZSAgICAgQ2FsbCBgZmFjZS1zcGVjLXNldCcgd2l0aCBlYWNoIGZhY2Ug
ZGVmaW5pdGlvbi4KIDplbnN1cmUgICAgICAgICAgTG9hZHMgdGhlIHBhY2thZ2UgdXNpbmcgcGFj
a2FnZS5lbCBpZiBuZWNlc3NhcnkuCiA6cGluICAgICAgICAgICAgIFBpbiB0aGUgcGFja2FnZSB0
byBhbiBhcmNoaXZlLgogOnZjICAgICAgICAgICAgICBJbnN0YWxsIHRoZSBwYWNrYWdlIGRpcmVj
dGx5IGZyb20gYSB2ZXJzaW9uIGNvbnRyb2wgc3lzdGVtCmRpZmYgLS1naXQgYS90ZXN0L2xpc3Av
dXNlLXBhY2thZ2UvdXNlLXBhY2thZ2UtdGVzdHMuZWwgYi90ZXN0L2xpc3AvdXNlLXBhY2thZ2Uv
dXNlLXBhY2thZ2UtdGVzdHMuZWwKaW5kZXggODU1NGIzN2Q1YjguLmIyMjFjNWRlNWMxIDEwMDY0
NAotLS0gYS90ZXN0L2xpc3AvdXNlLXBhY2thZ2UvdXNlLXBhY2thZ2UtdGVzdHMuZWwKKysrIGIv
dGVzdC9saXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLXRlc3RzLmVsCkBAIC0xMTUzLDcgKzEx
NTMsMTIgQEAgdXNlLXBhY2thZ2UtdGVzdC86Y3VzdG9tLWZhY2UtMQogICAobWF0Y2gtZXhwYW5z
aW9uCiAgICAodXNlLXBhY2thZ2UgZm9vIDpjdXN0b20tZmFjZSAoZm9vICgodCAoOmJhY2tncm91
bmQgIiNlNGVkZmMiKSkpKSkKICAgIGAocHJvZ24KLSAgICAgIChhcHBseSAjJ2ZhY2Utc3BlYy1z
ZXQgKGJhY2txdW90ZSAoZm9vICgodCAoOmJhY2tncm91bmQgIiNlNGVkZmMiKSkpKSkpCisgICAg
ICAocHJvZ24KKyAgICAgICAgKGFwcGx5ICMnZmFjZS1zcGVjLXNldAorICAgICAgICAgICAgICAg
KGFwcGVuZCAoYmFja3F1b3RlIChmb28gKCh0ICg6YmFja2dyb3VuZCAiI2U0ZWRmYyIpKSkpKQor
ICAgICAgICAgICAgICAgICAgICAgICAnKGZhY2UtZGVmZmFjZS1zcGVjKSkKKyAgICAgICAgICAg
ICAgICkKKyAgICAgICAgKHB1dCAnZm9vICdmYWNlLW1vZGlmaWVkIHQpKQogICAgICAgKHJlcXVp
cmUgJ2ZvbyBuaWwgbmlsKSkpKQogCiAoZXJ0LWRlZnRlc3QgdXNlLXBhY2thZ2UtdGVzdC86Y3Vz
dG9tLWZhY2UtMiAoKQpAQCAtMTE2MywxOSArMTE2OCw0MiBAQCB1c2UtcGFja2FnZS10ZXN0Lzpj
dXN0b20tZmFjZS0yCiAgICAgIChleGFtcGxlLTEtZmFjZSAoKHQgKDpmb3JlZ3JvdW5kICJMaWdo
dFBpbmsiKSkpKQogICAgICAoZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGlnaHRH
cmVlbiIpKSkpKQogICAgYChwcm9nbgotICAgICAgKGFwcGx5ICMnZmFjZS1zcGVjLXNldAotICAg
ICAgICAgICAgIChiYWNrcXVvdGUgKGV4YW1wbGUtMS1mYWNlICgodCAoOmZvcmVncm91bmQgIkxp
Z2h0UGluayIpKSkpKSkKLSAgICAgIChhcHBseSAjJ2ZhY2Utc3BlYy1zZXQKLSAgICAgICAgICAg
ICAoYmFja3F1b3RlIChleGFtcGxlLTItZmFjZSAoKHQgKDpmb3JlZ3JvdW5kICJMaWdodEdyZWVu
IikpKSkpKQorICAgICAgKHByb2duCisgICAgICAgIChhcHBseSAjJ2ZhY2Utc3BlYy1zZXQKKyAg
ICAgICAgICAgICAgIChhcHBlbmQgKGJhY2txdW90ZSAoZXhhbXBsZS0xLWZhY2UgKCh0ICg6Zm9y
ZWdyb3VuZCAiTGlnaHRQaW5rIikpKSkpCisgICAgICAgICAgICAgICAgICAgICAgICcoZmFjZS1k
ZWZmYWNlLXNwZWMpKSkKKyAgICAgICAgKHB1dCAnZXhhbXBsZS0xLWZhY2UgJ2ZhY2UtbW9kaWZp
ZWQgdCkpCisgICAgICAocHJvZ24KKyAgICAgICAgKGFwcGx5ICMnZmFjZS1zcGVjLXNldAorICAg
ICAgICAgICAgICAgKGFwcGVuZCAoYmFja3F1b3RlIChleGFtcGxlLTItZmFjZSAoKHQgKDpmb3Jl
Z3JvdW5kICJMaWdodEdyZWVuIikpKSkpCisgICAgICAgICAgICAgICAgICAgICAgICcoZmFjZS1k
ZWZmYWNlLXNwZWMpKSkKKyAgICAgICAgKHB1dCAnZXhhbXBsZS0yLWZhY2UgJ2ZhY2UtbW9kaWZp
ZWQgdCkpCiAgICAgICAocmVxdWlyZSAnZXhhbXBsZSBuaWwgbmlsKSkpKQogCiAoZXJ0LWRlZnRl
c3QgdXNlLXBhY2thZ2UtdGVzdC86Y3VzdG9tLWZhY2UtMyAoKQogICAobWF0Y2gtZXhwYW5zaW9u
CiAgICAodXNlLXBhY2thZ2UgZm9vIDpjdXN0b20tZmFjZSAoZm9vICgodCAoOmJhY2tncm91bmQg
IiNlNGVkZmMiKSkpIGZhY2UtZGVmc3BlYy1zcGVjKSkKICAgIGAocHJvZ24KLSAgICAgIChhcHBs
eSAjJ2ZhY2Utc3BlYy1zZXQgKGJhY2txdW90ZSAoZm9vICgodCAoOmJhY2tncm91bmQgIiNlNGVk
ZmMiKSkpIGZhY2UtZGVmc3BlYy1zcGVjKSkpCisgICAgICAocHJvZ24KKyAgICAgICAgKGFwcGx5
ICMnZmFjZS1zcGVjLXNldAorICAgICAgICAgICAgICAgKGFwcGVuZCAoYmFja3F1b3RlIChmb28g
KCh0ICg6YmFja2dyb3VuZCAiI2U0ZWRmYyIpKSkgZmFjZS1kZWZzcGVjLXNwZWMpKQorICAgICAg
ICAgICAgICAgICAgICAgICAnKGZhY2UtZGVmZmFjZS1zcGVjKSkpCisgICAgICAgIChwdXQgJ2Zv
byAnZmFjZS1tb2RpZmllZCB0KSkKICAgICAgIChyZXF1aXJlICdmb28gbmlsIG5pbCkpKSkKIAor
KGVydC1kZWZ0ZXN0IHVzZS1wYWNrYWdlLXRlc3QvOmN1c3RvbS1mYWNlLTQgKCkKKyAgKGRlZmZh
Y2UgdXNlLXBhY2thZ2UtdGVzdC9iYXNlLWZhY2UgJygodCAoOmJhY2tncm91bmQgImdyZWVuIikp
KSAiIikKKyAgKGRlZmZhY2UgdXNlLXBhY2thZ2UtdGVzdC9mYWNlICcoKHQgKDppbmhlcml0IHVz
ZS1wYWNrYWdlLXRlc3QvYmFzZS1mYWNlKSkpICIiKQorICAodXNlLXBhY2thZ2UgZW1hY3MKKyAg
ICA6Y3VzdG9tLWZhY2UKKyAgICAodXNlLXBhY2thZ2UtdGVzdC9mYWNlICgodCAoOmZvcmVncm91
bmQgImJsdWUiKSkpKSkKKyAgKHNob3VsZCAoZXF1YWwgKGZhY2UtZm9yZWdyb3VuZCAndXNlLXBh
Y2thZ2UtdGVzdC9mYWNlIG5pbCB0KQorICAgICAgICAgICAgICAgICAiYmx1ZSIpKQorICAoc2hv
dWxkIChlcXVhbCAoZmFjZS1iYWNrZ3JvdW5kICd1c2UtcGFja2FnZS10ZXN0L2ZhY2UgbmlsIHQp
CisgICAgICAgICAgICAgICAgIG5pbCkpCisgIChzaG91bGQgKGVxdWFsIChnZXQgJ3VzZS1wYWNr
YWdlLXRlc3QvZmFjZSAnZmFjZS1tb2RpZmllZCkKKyAgICAgICAgICAgICAgICAgdCkpKQorCiAo
ZXJ0LWRlZnRlc3QgdXNlLXBhY2thZ2UtdGVzdC86aW5pdC0xICgpCiAgIChtYXRjaC1leHBhbnNp
b24KICAgICh1c2UtcGFja2FnZSBmb28gOmluaXQgKGluaXQpKQotLSAKMi40OS4wCgo=
--000000000000b399590633b4654f--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 26 Apr 2025 12:52:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 26 08:52:54 2025
Received: from localhost ([127.0.0.1]:59270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u8f1Z-00011A-I9
	for submit <at> debbugs.gnu.org; Sat, 26 Apr 2025 08:52:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36560)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u8f1W-00010p-JM
 for 77928 <at> debbugs.gnu.org; Sat, 26 Apr 2025 08:52:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1u8f1Q-0000s0-84; Sat, 26 Apr 2025 08:52:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=C50BKK4Llk9qGXp6nvzHBP0V8EK0Ncohjmj3wAJxobY=; b=DNZZJQEGyfqO
 jvolO+Mra6kkHr9wOyibPoYX9xANLH6+CUrcbzyXg8Lj40InbzvchzZveUpa21Rf6W+my1zYhBL/R
 QhgsPcJv/5GHx7eZAdXB/tJIHZFTUIIRg70V6Q13dxBZu4zM8KzPJhimh/Zd4tYj2UWJxAg8nRxVG
 aS/N8EGQ4M0btClvDLnViVTrwwjOdt3wVKr/yVJkJh8yN967k6xISJbSAnV23QuWboDJA3nW/1+7B
 8n9yCbs6Quj73wKuoKsQVLvyZRVzhw/+qdBV8Fm3baXvGzHiJplUmcnG+r6ns9x8xcq2ajWDx0avl
 dywS6O94fZ8Ek/ijnOIh1w==;
Date: Sat, 26 Apr 2025 15:52:32 +0300
Message-Id: <86tt6bt78v.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Shields <shields@HIDDEN>, John Wiegley <johnw@HIDDEN>
In-Reply-To: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 (message from Michael Shields on Sat, 19 Apr 2025 13:41:01 -0700)
Subject: Re: bug#77928: [PATCH] use-package :custom-face is meant to behave
 like custom-set-face
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Shields <shields@HIDDEN>
> Date: Sat, 19 Apr 2025 13:41:01 -0700
> 
> The attached patch fixes a bug where migrating a face spec from custom.el to use-package :custom-face
> results in a surprising behavior change: the new spec is overlaid on the default value instead of replacing it.
> This seems to have been an unintended consequence of
> https://github.com/jwiegley/use-package/issues/934.

Thanks.

I wanted to install this, but it causes failures in the tests: the 3
that you amended and the new 4th one, see the details below.  Could
you please fix that?

Also, please include the followup change for the documentation in the
next patch submittal, and also please observe our conventions for log
messages.  In particular, too long lines there are rejected by our
git-commit-hooks.  Please also mention the bug number in the commit
log message.

Here are the errors from the tests:

  Test use-package-test/:custom-face-1 backtrace:
    signal(ert-test-failed (((should (pcase (expand-minimally (use-packa
    ert-fail(((should (pcase (expand-minimally (use-package foo :custom-
    (if (unwind-protect (setq value-665 (let* ((val (let (... ...) (macr
    (let (form-description-666) (if (unwind-protect (setq value-665 (let
    (let ((value-665 (gensym "ert-form-evaluation-aborted-"))) (let (for
    #f(lambda () [t] (let ((value-665 (gensym "ert-form-evaluation-abort
    #f(compiled-function () #<bytecode -0x17069ad950ffacee>)()
    handler-bind-1(#f(compiled-function () #<bytecode -0x17069ad950fface
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name use-package-test/:custom-face-1 :docu
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
    ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
    ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
    eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
    command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
    command-line()
    normal-top-level()
  Test use-package-test/:custom-face-1 condition:
      (ert-test-failed
       ((should (pcase (expand-minimally ...) (... t))) :form
	(let* ((val ...)) (if (equal val ...) (let nil t))) :value nil))
     FAILED   71/167  use-package-test/:custom-face-1 (0.000224 sec) at lisp/use-package/use-package-tests.el:1152
  Test use-package-test/:custom-face-2 backtrace:
    signal(ert-test-failed (((should (pcase (expand-minimally (use-packa
    ert-fail(((should (pcase (expand-minimally (use-package example :cus
    (if (unwind-protect (setq value-667 (let* ((val (let (... ...) (macr
    (let (form-description-668) (if (unwind-protect (setq value-667 (let
    (let ((value-667 (gensym "ert-form-evaluation-aborted-"))) (let (for
    #f(lambda () [t] (let ((value-667 (gensym "ert-form-evaluation-abort
    #f(compiled-function () #<bytecode -0x17069ad950ffacee>)()
    handler-bind-1(#f(compiled-function () #<bytecode -0x17069ad950fface
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name use-package-test/:custom-face-2 :docu
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
    ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
    ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
    eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
    command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
    command-line()
    normal-top-level()
  Test use-package-test/:custom-face-2 condition:
      (ert-test-failed
       ((should (pcase (expand-minimally ...) (... t))) :form
	(let* ((val ...)) (if (equal val ...) (let nil t))) :value nil))
     FAILED   72/167  use-package-test/:custom-face-2 (0.000323 sec) at lisp/use-package/use-package-tests.el:1164
  Test use-package-test/:custom-face-3 backtrace:
    signal(ert-test-failed (((should (pcase (expand-minimally (use-packa
    ert-fail(((should (pcase (expand-minimally (use-package foo :custom-
    (if (unwind-protect (setq value-669 (let* ((val (let (... ...) (macr
    (let (form-description-670) (if (unwind-protect (setq value-669 (let
    (let ((value-669 (gensym "ert-form-evaluation-aborted-"))) (let (for
    #f(lambda () [t] (let ((value-669 (gensym "ert-form-evaluation-abort
    #f(compiled-function () #<bytecode -0x17069ad950ffacee>)()
    handler-bind-1(#f(compiled-function () #<bytecode -0x17069ad950fface
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name use-package-test/:custom-face-3 :docu
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
    ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
    ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
    eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
    command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
    command-line()
    normal-top-level()
  Test use-package-test/:custom-face-3 condition:
      (ert-test-failed
       ((should (pcase (expand-minimally ...) (... t))) :form
	(let* ((val ...)) (if (equal val ...) (let nil t))) :value nil))
     FAILED   73/167  use-package-test/:custom-face-3 (0.000269 sec) at lisp/use-package/use-package-tests.el:1183
  Test use-package-test/:custom-face-4 backtrace:
    signal(ert-test-failed (((should (equal (face-background 'use-packag
    ert-fail(((should (equal (face-background 'use-package-test/face nil
    (if (unwind-protect (setq value-678 (apply fn-676 args-677)) (setq f
    (let (form-description-680) (if (unwind-protect (setq value-678 (app
    (let ((value-678 'ert-form-evaluation-aborted-679)) (let (form-descr
    (let* ((fn-676 #'equal) (args-677 (condition-case err (list (face-ba
    #f(lambda () [t] (custom-declare-face 'use-package-test/base-face '(
    #f(compiled-function () #<bytecode -0x17069ad950ffacee>)()
    handler-bind-1(#f(compiled-function () #<bytecode -0x17069ad950fface
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name use-package-test/:custom-face-4 :docu
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
    ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
    ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
    eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
    command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
    command-line()
    normal-top-level()
  Test use-package-test/:custom-face-4 condition:
      (ert-test-failed
       ((should (equal (face-background ... nil t) nil)) :form
	(equal "green" nil) :value nil :explanation
	(different-types "green" nil)))
     FAILED   74/167  use-package-test/:custom-face-4 (0.000288 sec) at lisp/use-package/use-package-tests.el:1194





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Apr 2025 02:21:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 24 22:21:54 2025
Received: from localhost ([127.0.0.1]:43767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u88hO-00019m-61
	for submit <at> debbugs.gnu.org; Thu, 24 Apr 2025 22:21:54 -0400
Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]:55700)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shields@HIDDEN>) id 1u88hK-00019T-S1
 for 77928 <at> debbugs.gnu.org; Thu, 24 Apr 2025 22:21:52 -0400
Received: by mail-yw1-x112b.google.com with SMTP id
 00721157ae682-6feab7c5f96so18436497b3.3
 for <77928 <at> debbugs.gnu.org>; Thu, 24 Apr 2025 19:21:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=msrl.com; s=google; t=1745547705; x=1746152505; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=D6LbqZ+ts4A7TALnxSgAqGLOvZ028zZ9mmREHWKRgzU=;
 b=MMYDHJ8yhxTaFOwL6uI3IMPBznPCP8jA27tc+oK6jhzbONPTgCKtdRNtDJcYfoHczf
 /TD0KVSr+8FIjQssJqfqDmcrwlc0xizJ4F6Zty7QCnKWRdRwN5GkL86HkOqus9+z0v5V
 MGz1xseYZjtCeH8k23pYi99K2buwQEwvPdNnY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745547705; x=1746152505;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=D6LbqZ+ts4A7TALnxSgAqGLOvZ028zZ9mmREHWKRgzU=;
 b=am++SXBfJcg7AMcta2/CAyhHpbAP/+oCYNp8LSPXhGI0XtvH++8xpWxS415VZ66weI
 Gc/cTxNa1Zs2nLMHcL+hW0z0dMfg2chC36tiyXsz6TBo82vj7bbXgdaqiibjjpHKNoq1
 VSyX/+M/kZKz4Ht73cGlcL99v+p43tpHDwWhSS1sp1Xdz3r+kbKLEPlgNHqI3DoKfIjp
 o6z/KPpRNN7HydkVSEfWUDRxVht5xJwrXh3O6cbIcKVQCwmCwmPSlMi7t+QI6faHPqlj
 TOCtV3KCLnGmIF+VBDL5cnKozLYdQBg2lSLyQM7fwcjZtwmCY5TogHrz1TEXDMUgZtcc
 YtQw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWBJptkF/sLQepLm1I9pknbzyxmI+Q1MVEo4ACZvxxBlv+XBAmgFuhKnw3TdRqNHKQMEGfa+A==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw2O/6vIK3n07JMIStQkII7q1cxV78CVo7wIZn/MdwOz2zLFguz
 j9eCZV6OttWiwAAr1hvHh5iPjmWEmsNmkYZu/jSFMEPO7J4NPZ6d51w3BD+vZbb/VCtDjTZUsok
 JTFB1PmgFAK4i7DWrW7gGo/8JIbGtExK6/sIYk3WoFnfq0whadYcC
X-Gm-Gg: ASbGnctenTrqAKNuY15R0wT7wM9zr8BMPY/9jy6Vs0LOyMFDG8wi8rLcMcVg8929Njo
 NqALaqDHlXFMfAfvgM+NlbJQkmepYh7sGo3UXNq6bWr7cauO6UblObuNiyxIOOQRsxabVEGwjTq
 dH0EH2c1d+t3JvoTmd4pXFt+pY4x1fBoci5fq6V6t4d72yItSKFITAWIeo
X-Google-Smtp-Source: AGHT+IE9QJD8r1t8os1iYvBRkhQAyQ+rJCVBoJyHwfCfl1U+EzIQmYKFcWhPINx3KOjzNLHR5EXkMQOlXEjnXJX5SVg=
X-Received: by 2002:a05:690c:67c3:b0:6ef:69b2:eac with SMTP id
 00721157ae682-708540dc239mr7082977b3.4.1745547705055; Thu, 24 Apr 2025
 19:21:45 -0700 (PDT)
MIME-Version: 1.0
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <86ldrv747s.fsf@HIDDEN> <m2r01h9h0t.fsf@HIDDEN>
In-Reply-To: <m2r01h9h0t.fsf@HIDDEN>
From: Michael Shields <shields@HIDDEN>
Date: Thu, 24 Apr 2025 19:21:33 -0700
X-Gm-Features: ATxdqUHoN_15VsdLzrxI8MGecQaDEAz9zqKN_7K8xWjc7Rk-R1BFw2S_zTrXMYI
Message-ID: <CAMPZLESm8OCPXXLd=itz-ZScTAFPQgGpp_9UyErx6QRYRK31DA@HIDDEN>
Subject: Re: bug#77928: [PATCH] use-package :custom-face is meant to behave
 like custom-set-face
To: John Wiegley <johnw@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000e6a094063390fe4d"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77928
Cc: Eli Zaretskii <eliz@HIDDEN>, 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000e6a094063390fe4d
Content-Type: multipart/alternative; boundary="000000000000e6a092063390fe4b"

--000000000000e6a092063390fe4b
Content-Type: text/plain; charset="UTF-8"

Ok, documentation updated.

It looks like the only reason a SPEC-TYPE argument is accepted was that
someone else was caught out by the unintended change to partial inheritance:
https://github.com/jwiegley/use-package/issues/1008

--000000000000e6a092063390fe4b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Ok, documentation updated.<div><br></div><div>It looks lik=
e the only reason a SPEC-TYPE argument=C2=A0is accepted was that someone el=
se was caught out by the unintended change to partial inheritance:</div><di=
v><a href=3D"https://github.com/jwiegley/use-package/issues/1008">https://g=
ithub.com/jwiegley/use-package/issues/1008</a></div></div>

--000000000000e6a092063390fe4b--

--000000000000e6a094063390fe4d
Content-Type: application/octet-stream; 
	name="0002-Update-documentation.patch"
Content-Disposition: attachment; filename="0002-Update-documentation.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_m9w5y0mw0>
X-Attachment-Id: f_m9w5y0mw0

RnJvbSBhNzJiMjNlM2EyYjRmNjcyZDVkZWY3N2U3ZWZhN2IzYWFmMmM5ZmY4IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIFNoaWVsZHMgPHNoaWVsZHNAbXNybC5jb20+CkRh
dGU6IFRodSwgMjQgQXByIDIwMjUgMTk6MTE6NTkgLTA3MDAKU3ViamVjdDogW1BBVENIIDIvMl0g
VXBkYXRlIGRvY3VtZW50YXRpb24KCi0tLQogZG9jL21pc2MvdXNlLXBhY2thZ2UudGV4aSB8IDIg
Ky0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAt
LWdpdCBhL2RvYy9taXNjL3VzZS1wYWNrYWdlLnRleGkgYi9kb2MvbWlzYy91c2UtcGFja2FnZS50
ZXhpCmluZGV4IGNkYWU4ZDZlNjYyLi4zNDFiNmRhODdkOSAxMDA2NDQKLS0tIGEvZG9jL21pc2Mv
dXNlLXBhY2thZ2UudGV4aQorKysgYi9kb2MvbWlzYy91c2UtcGFja2FnZS50ZXhpCkBAIC0xNDQy
LDcgKzE0NDIsNyBAQCBGYWNlcwogKHVzZS1wYWNrYWdlIGV4YW1wbGUKICAgOmN1c3RvbS1mYWNl
CiAgIChleGFtcGxlLTEtZmFjZSAoKHQgKDpmb3JlZ3JvdW5kICJMaWdodFBpbmsiKSkpKQotICAo
ZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGlnaHRHcmVlbiIpKSkgZmFjZS1kZWZz
cGVjLXNwZWMpKQorICAoZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGlnaHRHcmVl
biIpKSkpKQogQGVuZCBncm91cAogCiBAZ3JvdXAKLS0gCjIuNDkuMAoK
--000000000000e6a094063390fe4d--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 25 Apr 2025 01:17:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 24 21:17:17 2025
Received: from localhost ([127.0.0.1]:43303 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u87gr-0001WP-4p
	for submit <at> debbugs.gnu.org; Thu, 24 Apr 2025 21:17:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44564)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <johnw@HIDDEN>) id 1u87go-0001WC-NZ
 for 77928 <at> debbugs.gnu.org; Thu, 24 Apr 2025 21:17:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johnw@HIDDEN>)
 id 1u87gj-0002wK-48; Thu, 24 Apr 2025 21:17:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Kq1bc5qBTHBa5Qg1QFSiazbkUFTqeVtaURgRAhVnQOs=; b=jrDg8PYBYGF4OxFG0eg5
 Dc5VRrwzaJY7g8piZSesRLfuK/pK1XExcrhZ0riBH5SoB1Dl3f2Ysw3cOk+V6nm4VJsb1QratJo04
 hFFfged+KCpA0p3qtB8WKkGB/MMvfddZ84bRkZMMtFHgcg618YIwbLWvdLuE8ScRXqnPa2WsNERTH
 NHt7+lATmD2cY9+eUFic3fBci4ADGEJAMb046q9tTf5+tZoOJSoFnQEvXyMKncrTaH0p0v75yygxD
 n0BfFQIEqqTZxlCmvJ1W7ydC3qPbUleaP82uGmKsqlR/djwcWbt9B2/9GuhSW2rKRoxpphNBrqBu3
 lhMUS49BTjhc3Q==;
X-ME-Sender: <xms:k-IKaFJX8TexZl-vnhlC1m75fXdXDqsCwIx6zDDF4xdgzkdWsx1ZKg>
 <xme:k-IKaBL2w4l8L483e0yMlAqK3_GVEe2sQorTFUlp8KXOj5de7tALdv6e7fdaUSCht
 bhtgUNg-76UBSri-Q>
X-ME-Received: <xmr:k-IKaNtJfCNNWq6CXCK5pcQy3Tf5XzKHkJcs29hRMu6zMMRfZWt5Whw8DjFs>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvhedtleelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgfgsehtqhertddt
 reejnecuhfhrohhmpeflohhhnhcuhghivghglhgvhicuoehjohhhnhifsehgnhhurdhorh
 hgqeenucggtffrrghtthgvrhhnpedtgefhheejveffteekkeeuhefggedvhfetgfekudev
 tdfhudffgfefuedvffekieenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhnvgifrg
 hrthhishgrnhhsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm
 rghilhhfrhhomhepjhhohhhnfidomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthi
 dqieekjeektdelgeegqddujeejheefkeduiedqjhhohhhnfieppehgnhhurdhorhhgsehn
 vgifrghrthhishgrnhhsrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmth
 hpohhuthdprhgtphhtthhopeejjeelvdekseguvggssghughhsrdhgnhhurdhorhhgpdhr
 tghpthhtohepshhhihgvlhgushesmhhsrhhlrdgtohhmpdhrtghpthhtohepvghlihiise
 hgnhhurdhorhhg
X-ME-Proxy: <xmx:k-IKaGagDQssW71UgnS3rZHEF5nC7PmAsRx3ra1H1Lu7O_n15UgEQw>
 <xmx:k-IKaMazNIFWfHQLf9_999P8V6q_8ieJGxxxk1tSvlLryoNtuhTmUw>
 <xmx:k-IKaKALY0xGbUZTBuxQlPyT32Ve80WtDUVZXVaiXnZ1meSByVgutQ>
 <xmx:k-IKaKZEu2ympi41NHEmcKYCrS24wgwAbms-0_govY250-AlgjCZaw>
 <xmx:k-IKaIorItFCQgYPsIIRP22ipgtk1Pfgl3iLfHHgRkJ6plaoyvwcwoyv>
Feedback-ID: ib64945b7:Fastmail
From: John Wiegley <johnw@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77928: [PATCH] use-package :custom-face is meant to behave
 like custom-set-face
In-Reply-To: <86ldrv747s.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 20 Apr
 2025 09:10:47 +0300")
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 <86ldrv747s.fsf@HIDDEN>
Date: Thu, 24 Apr 2025 18:17:06 -0700
Message-ID: <m2r01h9h0t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org, Michael Shields <shields@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:

>> The attached patch fixes a bug where migrating a face spec from custom.el
>> to use-package :custom-face results in a surprising behavior change: the
>> new spec is overlaid on the default value instead of replacing it. This
>> seems to have been an unintended consequence of
>> https://github.com/jwiegley/use-package/issues/934.

> John, any comments?

Well, this patch would invalidate the current documentation:

     (use-package example
       :custom-face
       (example-1-face ((t (:foreground "LightPink"))))
       (example-2-face ((t (:foreground "LightGreen"))) face-defspec-spec))

It will remove the ability to specify a SPEC-TYPE argument in the declarati=
on,
and instead would force it to always be `face-defface-spec', no? At the mom=
ent
the default uses `face-override-spec', when no such argument is provided.

If face-defface-spec is the desired default behaivor =E2=80=94 while droppi=
ng the
current ability to customize that behavior in the declaration =E2=80=94 I h=
ave no
objection, but the Texinfo example will need to be updated as well.

--=20
John Wiegley                  GPG fingerprint =3D 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at 77928 <at> debbugs.gnu.org:


Received: (at 77928) by debbugs.gnu.org; 20 Apr 2025 06:11:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 20 02:11:01 2025
Received: from localhost ([127.0.0.1]:43678 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u6NtM-0000kI-Qy
	for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:11:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46074)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u6NtJ-0000k2-SN
 for 77928 <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:10:58 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1u6NtD-0006zM-PY; Sun, 20 Apr 2025 02:10:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=LacbFMTzflWo6KLbw6ZuVVlIkrh5Nj+7fQWKM0T42DQ=; b=q7lHjAz0rQVf
 1MNmp+g6nWLZi+Ny1SWe3tRQwfeNCRdmZDlyZCLag3TenLWprUgmXNWVQdDKYnElKeEfIS1cn2kc7
 MGoNwawZ6Wd4sW6nGq9Xl+6Y6jytrMhMCWK3htSc7R2s1tiubqlXlzSb3QvCr5WEpbZrKLFWgpwbG
 3Dh2DAyUtzflWWfGvWOF1weTxZFvILjK557FoxVpYO3n4VlN0jyPvEGUL5z1gsuDASPYLyIhrk9ZX
 74fPiDpUfVIRCgf3D8afJq5N5hvkyqSvxb9VP8GCqTV5qh3kobTvMLEZaT8CWyIpn/Hmk0IknbmEs
 PnpYNEKRJicraPVzPxprhQ==;
Date: Sun, 20 Apr 2025 09:10:47 +0300
Message-Id: <86ldrv747s.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Shields <shields@HIDDEN>, John Wiegley <johnw@HIDDEN>
In-Reply-To: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
 (message from Michael Shields on Sat, 19 Apr 2025 13:41:01 -0700)
Subject: Re: bug#77928: [PATCH] use-package :custom-face is meant to behave
 like custom-set-face
References: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77928
Cc: 77928 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Shields <shields@HIDDEN>
> Date: Sat, 19 Apr 2025 13:41:01 -0700
> 
> The attached patch fixes a bug where migrating a face spec from custom.el to use-package :custom-face
> results in a surprising behavior change: the new spec is overlaid on the default value instead of replacing it.
> This seems to have been an unintended consequence of
> https://github.com/jwiegley/use-package/issues/934.

John, any comments?

> From 748e620fe2d286a853f4030bba16c99470387a1b Mon Sep 17 00:00:00 2001
> From: Michael Shields <shields@HIDDEN>
> Date: Sat, 19 Apr 2025 12:58:26 -0700
> Subject: [PATCH] Fix use-package :custom-face to set face-defface-spec
> 
> By default, `face-set-spec' sets the override face spec, so the supplied
> face attributes are combined with the default, rather than replacing
> them.  This was a behavior change that was an apparently unintended
> consequence of commit 6b344a9.
> 
> Also set the `face-modified' property, which causes Customize to flag
> the face as changed outside Customize.
> 
> * doc/misc/use-package.texi (Faces):
> * lisp/use-package/use-package-core.el (use-package-handler/:custom-face):
> (use-package):
> * test/lisp/use-package/use-package-tests.el (use-package-test/:custom-face-1):
> (use-package-test/:custom-face-2):
> (use-package-test/:custom-face-3):
> (use-package-test/:custom-face-4):
> ---
>  doc/misc/use-package.texi                  |  5 +++
>  lisp/use-package/use-package-core.el       |  8 +++--
>  test/lisp/use-package/use-package-tests.el | 40 ++++++++++++++++++----
>  3 files changed, 45 insertions(+), 8 deletions(-)
> 
> diff --git a/doc/misc/use-package.texi b/doc/misc/use-package.texi
> index c14e7b77d23..cdae8d6e662 100644
> --- a/doc/misc/use-package.texi
> +++ b/doc/misc/use-package.texi
> @@ -1457,6 +1457,11 @@ Faces
>  @end group
>  @end lisp
>  
> +Similarly to @code{:custom} (@pxref{User options}), this allows
> +configuring customizable faces outside of Customize (@pxref{Saving
> +Customizations,,, emacs, GNU Emacs Manual}).  Using both systems to
> +configure the same face can lead to confusing results.
> +
>  @node Hiding minor modes
>  @section Hiding minor modes with diminish and delight
>  @cindex hiding minor modes
> diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el
> index c04053c22ac..4b63d985604 100644
> --- a/lisp/use-package/use-package-core.el
> +++ b/lisp/use-package/use-package-core.el
> @@ -1584,7 +1584,11 @@ use-package-normalize/:custom-face
>  (defun use-package-handler/:custom-face (name _keyword args rest state)
>    "Generate use-package custom-face keyword code."
>    (use-package-concat
> -   (mapcar #'(lambda (def) `(apply #'face-spec-set (backquote ,def))) args)
> +   (mapcar #'(lambda (def)
> +               `(progn
> +                  (apply #'face-spec-set (append (backquote ,def) '(face-defface-spec)))
> +                  (put ',(car def) 'face-modified t)))
> +           args)
>     (use-package-process-keywords name rest state)))
>  
>  ;;;; :init
> @@ -1848,7 +1852,7 @@ use-package
>  :custom          Call `Custom-set' or `set-default' with each variable
>                   definition without modifying the Emacs `custom-file'.
>                   (compare with `custom-set-variables').
> -:custom-face     Call `custom-set-faces' with each face definition.
> +:custom-face     Call `face-spec-set' with each face definition.
>  :ensure          Loads the package using package.el if necessary.
>  :pin             Pin the package to an archive.
>  :vc              Install the package directly from a version control system
> diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el
> index 8554b37d5b8..b221c5de5c1 100644
> --- a/test/lisp/use-package/use-package-tests.el
> +++ b/test/lisp/use-package/use-package-tests.el
> @@ -1153,7 +1153,12 @@ use-package-test/:custom-face-1
>    (match-expansion
>     (use-package foo :custom-face (foo ((t (:background "#e4edfc")))))
>     `(progn
> -      (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))))))
> +      (progn
> +        (apply #'face-spec-set
> +               (append (backquote (foo ((t (:background "#e4edfc")))))
> +                       '(face-defface-spec))
> +               )
> +        (put 'foo 'face-modified t))
>        (require 'foo nil nil))))
>  
>  (ert-deftest use-package-test/:custom-face-2 ()
> @@ -1163,19 +1168,42 @@ use-package-test/:custom-face-2
>       (example-1-face ((t (:foreground "LightPink"))))
>       (example-2-face ((t (:foreground "LightGreen")))))
>     `(progn
> -      (apply #'face-spec-set
> -             (backquote (example-1-face ((t (:foreground "LightPink"))))))
> -      (apply #'face-spec-set
> -             (backquote (example-2-face ((t (:foreground "LightGreen"))))))
> +      (progn
> +        (apply #'face-spec-set
> +               (append (backquote (example-1-face ((t (:foreground "LightPink")))))
> +                       '(face-defface-spec)))
> +        (put 'example-1-face 'face-modified t))
> +      (progn
> +        (apply #'face-spec-set
> +               (append (backquote (example-2-face ((t (:foreground "LightGreen")))))
> +                       '(face-defface-spec)))
> +        (put 'example-2-face 'face-modified t))
>        (require 'example nil nil))))
>  
>  (ert-deftest use-package-test/:custom-face-3 ()
>    (match-expansion
>     (use-package foo :custom-face (foo ((t (:background "#e4edfc"))) face-defspec-spec))
>     `(progn
> -      (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))) face-defspec-spec)))
> +      (progn
> +        (apply #'face-spec-set
> +               (append (backquote (foo ((t (:background "#e4edfc"))) face-defspec-spec))
> +                       '(face-defface-spec)))
> +        (put 'foo 'face-modified t))
>        (require 'foo nil nil))))
>  
> +(ert-deftest use-package-test/:custom-face-4 ()
> +  (defface use-package-test/base-face '((t (:background "green"))) "")
> +  (defface use-package-test/face '((t (:inherit use-package-test/base-face))) "")
> +  (use-package emacs
> +    :custom-face
> +    (use-package-test/face ((t (:foreground "blue")))))
> +  (should (equal (face-foreground 'use-package-test/face nil t)
> +                 "blue"))
> +  (should (equal (face-background 'use-package-test/face nil t)
> +                 nil))
> +  (should (equal (get 'use-package-test/face 'face-modified)
> +                 t)))
> +
>  (ert-deftest use-package-test/:init-1 ()
>    (match-expansion
>     (use-package foo :init (init))
> -- 
> 2.49.0
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Apr 2025 20:41:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 19 16:41:28 2025
Received: from localhost ([127.0.0.1]:38479 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u6F0A-0005GV-34
	for submit <at> debbugs.gnu.org; Sat, 19 Apr 2025 16:41:27 -0400
Received: from lists.gnu.org ([2001:470:142::17]:53080)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <shields@HIDDEN>) id 1u6F06-0005FG-Oo
 for submit <at> debbugs.gnu.org; Sat, 19 Apr 2025 16:41:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <shields@HIDDEN>) id 1u6F00-0008Sr-FX
 for bug-gnu-emacs@HIDDEN; Sat, 19 Apr 2025 16:41:16 -0400
Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <shields@HIDDEN>) id 1u6Ezy-0003sF-Ms
 for bug-gnu-emacs@HIDDEN; Sat, 19 Apr 2025 16:41:16 -0400
Received: by mail-yb1-xb32.google.com with SMTP id
 3f1490d57ef6-e589c258663so2352301276.1
 for <bug-gnu-emacs@HIDDEN>; Sat, 19 Apr 2025 13:41:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=msrl.com; s=google; t=1745095272; x=1745700072; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=CZ8T0EIOa2QrXylL6G7C7KEFgk6IMWnam6Tnf8dHgi4=;
 b=NqoEJw3IIVMgvyMeQEIfHhl+SJanfuDDDXX9wdWfkS2fZ8eboGxhNoUgjgm5nCtDsp
 INlGBxDBZmrD2VuOY7IOv5O+i3ol6Ai2CIExSYu4OxM9dkHPvCs9Q/QDgpqc010W8PiC
 4bDnkbjbS5bsEboBcbNHRTPLRWI6Yhn5ISCSg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745095272; x=1745700072;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=CZ8T0EIOa2QrXylL6G7C7KEFgk6IMWnam6Tnf8dHgi4=;
 b=xDQz1daKG16Ce4usxJeTKGuxK22p2DbMXYnNTNiF+0VCEN23KpPox4xHMpYhgVz6pS
 aamtC13oddX7HSmaajop4q4B4esCFcWcRA/SlN/J/NtMJ2TPx5hnsNJTEe9AUWmZGC4P
 fp1qMCjoUS7qSjqcJ6V8Bz9d4aYBokQkFXqOaNU+lR+gj7Uug3NamKGttH4HNPWqbtZp
 BSB0sTEDedg+kTCvOtsyAls7Eu8H/LtJPgH3v14jTQF9Sb0lA8Y7GPk2akVD6VaVNyM4
 ncmqlwgkfezCOUPLv39uuAqAyb8aRBgd7Z2hn5ivFJoemAGAt1e6GaKrspTN9NGRl+Xn
 oeRQ==
X-Gm-Message-State: AOJu0YwZUCDjoJyargAylJ1co1cymOi8lxjSUAJjDWZa5lw+YRgi3hMd
 8+Plr3ybwaL9DKvNm5AuViu3ZuIXDaTS23PZvroMxzaHJVJZNtSRNqFftv5c4KDZ5j9Sfk1pnpv
 /IFuUeK+hQAFa7DWTvWNgNSvolzlDxHMzC0SF1Ce/9QOgtLZXkdM2
X-Gm-Gg: ASbGnctoNyrI1k0X2m6p1DOqx1Z3nBw+/wZgfh6I1GpNPLIgsaXC0tD89+xMEjnEJwG
 GBJQurXpSvDQStCTFDEhntOFzy8iPhCq2EsbAE73cAWbss431VTA5O5D0nAm+SsPwHXpfgNxdVx
 MmBaHOg+dvORFVwkSEQ5sQI5j7/ka0m1QMSarTXeOvv/mX10+PLBtUGyoe
X-Google-Smtp-Source: AGHT+IGXoq3zP+nkr610GawSgLthEAAPjL4lHfKOnRxVxxdiY2rgrt1O9XelkfXg50LEHMS3AAydTOwX1s41hHErQz0=
X-Received: by 2002:a05:6902:e8b:b0:e72:81e5:1ea with SMTP id
 3f1490d57ef6-e7297ee525bmr9571914276.41.1745095272214; Sat, 19 Apr 2025
 13:41:12 -0700 (PDT)
MIME-Version: 1.0
From: Michael Shields <shields@HIDDEN>
Date: Sat, 19 Apr 2025 13:41:01 -0700
X-Gm-Features: ATxdqUGMEs_Hqzp4eHTx-Tp2yp9csKGPaw871S9iJoDaN9KWRLga0nljtDHJN9g
Message-ID: <CAMPZLETnGmnJ3tFZQizxM9o8ywe4ZJ_v1o2Lr=kL-sqtwaVLQA@HIDDEN>
Subject: [PATCH] use-package :custom-face is meant to behave like
 custom-set-face
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/mixed; boundary="000000000000cd024b063327a735"
Received-SPF: pass client-ip=2607:f8b0:4864:20::b32;
 envelope-from=shields@HIDDEN; helo=mail-yb1-xb32.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--000000000000cd024b063327a735
Content-Type: multipart/alternative; boundary="000000000000cd024a063327a733"

--000000000000cd024a063327a733
Content-Type: text/plain; charset="UTF-8"

The attached patch fixes a bug where migrating a face spec from custom.el
to use-package :custom-face results in a surprising behavior change: the
new spec is overlaid on the default value instead of replacing it. This
seems to have been an unintended consequence of
https://github.com/jwiegley/use-package/issues/934.

--000000000000cd024a063327a733
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">The attached patch fixes a bug where migrating a face spec=
 from custom.el to use-package :custom-face results in a surprising=C2=A0be=
havior change: the new spec is overlaid on the default value instead of rep=
lacing it. This seems to have been an unintended consequence of=C2=A0<a hre=
f=3D"https://github.com/jwiegley/use-package/issues/934">https://github.com=
/jwiegley/use-package/issues/934</a>.</div>

--000000000000cd024a063327a733--

--000000000000cd024b063327a735
Content-Type: application/octet-stream; 
	name="0001-Fix-use-package-custom-face-to-set-face-defface-spec.patch"
Content-Disposition: attachment; 
	filename="0001-Fix-use-package-custom-face-to-set-face-defface-spec.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_m9ooamej0>
X-Attachment-Id: f_m9ooamej0

RnJvbSA3NDhlNjIwZmUyZDI4NmE4NTNmNDAzMGJiYTE2Yzk5NDcwMzg3YTFiIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIFNoaWVsZHMgPHNoaWVsZHNAbXNybC5jb20+CkRh
dGU6IFNhdCwgMTkgQXByIDIwMjUgMTI6NTg6MjYgLTA3MDAKU3ViamVjdDogW1BBVENIXSBGaXgg
dXNlLXBhY2thZ2UgOmN1c3RvbS1mYWNlIHRvIHNldCBmYWNlLWRlZmZhY2Utc3BlYwoKQnkgZGVm
YXVsdCwgYGZhY2Utc2V0LXNwZWMnIHNldHMgdGhlIG92ZXJyaWRlIGZhY2Ugc3BlYywgc28gdGhl
IHN1cHBsaWVkCmZhY2UgYXR0cmlidXRlcyBhcmUgY29tYmluZWQgd2l0aCB0aGUgZGVmYXVsdCwg
cmF0aGVyIHRoYW4gcmVwbGFjaW5nCnRoZW0uICBUaGlzIHdhcyBhIGJlaGF2aW9yIGNoYW5nZSB0
aGF0IHdhcyBhbiBhcHBhcmVudGx5IHVuaW50ZW5kZWQKY29uc2VxdWVuY2Ugb2YgY29tbWl0IDZi
MzQ0YTkuCgpBbHNvIHNldCB0aGUgYGZhY2UtbW9kaWZpZWQnIHByb3BlcnR5LCB3aGljaCBjYXVz
ZXMgQ3VzdG9taXplIHRvIGZsYWcKdGhlIGZhY2UgYXMgY2hhbmdlZCBvdXRzaWRlIEN1c3RvbWl6
ZS4KCiogZG9jL21pc2MvdXNlLXBhY2thZ2UudGV4aSAoRmFjZXMpOgoqIGxpc3AvdXNlLXBhY2th
Z2UvdXNlLXBhY2thZ2UtY29yZS5lbCAodXNlLXBhY2thZ2UtaGFuZGxlci86Y3VzdG9tLWZhY2Up
OgoodXNlLXBhY2thZ2UpOgoqIHRlc3QvbGlzcC91c2UtcGFja2FnZS91c2UtcGFja2FnZS10ZXN0
cy5lbCAodXNlLXBhY2thZ2UtdGVzdC86Y3VzdG9tLWZhY2UtMSk6Cih1c2UtcGFja2FnZS10ZXN0
LzpjdXN0b20tZmFjZS0yKToKKHVzZS1wYWNrYWdlLXRlc3QvOmN1c3RvbS1mYWNlLTMpOgoodXNl
LXBhY2thZ2UtdGVzdC86Y3VzdG9tLWZhY2UtNCk6Ci0tLQogZG9jL21pc2MvdXNlLXBhY2thZ2Uu
dGV4aSAgICAgICAgICAgICAgICAgIHwgIDUgKysrCiBsaXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNr
YWdlLWNvcmUuZWwgICAgICAgfCAgOCArKystLQogdGVzdC9saXNwL3VzZS1wYWNrYWdlL3VzZS1w
YWNrYWdlLXRlc3RzLmVsIHwgNDAgKysrKysrKysrKysrKysrKysrLS0tLQogMyBmaWxlcyBjaGFu
Z2VkLCA0NSBpbnNlcnRpb25zKCspLCA4IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RvYy9t
aXNjL3VzZS1wYWNrYWdlLnRleGkgYi9kb2MvbWlzYy91c2UtcGFja2FnZS50ZXhpCmluZGV4IGMx
NGU3Yjc3ZDIzLi5jZGFlOGQ2ZTY2MiAxMDA2NDQKLS0tIGEvZG9jL21pc2MvdXNlLXBhY2thZ2Uu
dGV4aQorKysgYi9kb2MvbWlzYy91c2UtcGFja2FnZS50ZXhpCkBAIC0xNDU3LDYgKzE0NTcsMTEg
QEAgRmFjZXMKIEBlbmQgZ3JvdXAKIEBlbmQgbGlzcAogCitTaW1pbGFybHkgdG8gQGNvZGV7OmN1
c3RvbX0gKEBweHJlZntVc2VyIG9wdGlvbnN9KSwgdGhpcyBhbGxvd3MKK2NvbmZpZ3VyaW5nIGN1
c3RvbWl6YWJsZSBmYWNlcyBvdXRzaWRlIG9mIEN1c3RvbWl6ZSAoQHB4cmVme1NhdmluZworQ3Vz
dG9taXphdGlvbnMsLCwgZW1hY3MsIEdOVSBFbWFjcyBNYW51YWx9KS4gIFVzaW5nIGJvdGggc3lz
dGVtcyB0bworY29uZmlndXJlIHRoZSBzYW1lIGZhY2UgY2FuIGxlYWQgdG8gY29uZnVzaW5nIHJl
c3VsdHMuCisKIEBub2RlIEhpZGluZyBtaW5vciBtb2RlcwogQHNlY3Rpb24gSGlkaW5nIG1pbm9y
IG1vZGVzIHdpdGggZGltaW5pc2ggYW5kIGRlbGlnaHQKIEBjaW5kZXggaGlkaW5nIG1pbm9yIG1v
ZGVzCmRpZmYgLS1naXQgYS9saXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLWNvcmUuZWwgYi9s
aXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLWNvcmUuZWwKaW5kZXggYzA0MDUzYzIyYWMuLjRi
NjNkOTg1NjA0IDEwMDY0NAotLS0gYS9saXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLWNvcmUu
ZWwKKysrIGIvbGlzcC91c2UtcGFja2FnZS91c2UtcGFja2FnZS1jb3JlLmVsCkBAIC0xNTg0LDcg
KzE1ODQsMTEgQEAgdXNlLXBhY2thZ2Utbm9ybWFsaXplLzpjdXN0b20tZmFjZQogKGRlZnVuIHVz
ZS1wYWNrYWdlLWhhbmRsZXIvOmN1c3RvbS1mYWNlIChuYW1lIF9rZXl3b3JkIGFyZ3MgcmVzdCBz
dGF0ZSkKICAgIkdlbmVyYXRlIHVzZS1wYWNrYWdlIGN1c3RvbS1mYWNlIGtleXdvcmQgY29kZS4i
CiAgICh1c2UtcGFja2FnZS1jb25jYXQKLSAgIChtYXBjYXIgIycobGFtYmRhIChkZWYpIGAoYXBw
bHkgIydmYWNlLXNwZWMtc2V0IChiYWNrcXVvdGUgLGRlZikpKSBhcmdzKQorICAgKG1hcGNhciAj
JyhsYW1iZGEgKGRlZikKKyAgICAgICAgICAgICAgIGAocHJvZ24KKyAgICAgICAgICAgICAgICAg
IChhcHBseSAjJ2ZhY2Utc3BlYy1zZXQgKGFwcGVuZCAoYmFja3F1b3RlICxkZWYpICcoZmFjZS1k
ZWZmYWNlLXNwZWMpKSkKKyAgICAgICAgICAgICAgICAgIChwdXQgJywoY2FyIGRlZikgJ2ZhY2Ut
bW9kaWZpZWQgdCkpKQorICAgICAgICAgICBhcmdzKQogICAgKHVzZS1wYWNrYWdlLXByb2Nlc3Mt
a2V5d29yZHMgbmFtZSByZXN0IHN0YXRlKSkpCiAKIDs7OzsgOmluaXQKQEAgLTE4NDgsNyArMTg1
Miw3IEBAIHVzZS1wYWNrYWdlCiA6Y3VzdG9tICAgICAgICAgIENhbGwgYEN1c3RvbS1zZXQnIG9y
IGBzZXQtZGVmYXVsdCcgd2l0aCBlYWNoIHZhcmlhYmxlCiAgICAgICAgICAgICAgICAgIGRlZmlu
aXRpb24gd2l0aG91dCBtb2RpZnlpbmcgdGhlIEVtYWNzIGBjdXN0b20tZmlsZScuCiAgICAgICAg
ICAgICAgICAgIChjb21wYXJlIHdpdGggYGN1c3RvbS1zZXQtdmFyaWFibGVzJykuCi06Y3VzdG9t
LWZhY2UgICAgIENhbGwgYGN1c3RvbS1zZXQtZmFjZXMnIHdpdGggZWFjaCBmYWNlIGRlZmluaXRp
b24uCis6Y3VzdG9tLWZhY2UgICAgIENhbGwgYGZhY2Utc3BlYy1zZXQnIHdpdGggZWFjaCBmYWNl
IGRlZmluaXRpb24uCiA6ZW5zdXJlICAgICAgICAgIExvYWRzIHRoZSBwYWNrYWdlIHVzaW5nIHBh
Y2thZ2UuZWwgaWYgbmVjZXNzYXJ5LgogOnBpbiAgICAgICAgICAgICBQaW4gdGhlIHBhY2thZ2Ug
dG8gYW4gYXJjaGl2ZS4KIDp2YyAgICAgICAgICAgICAgSW5zdGFsbCB0aGUgcGFja2FnZSBkaXJl
Y3RseSBmcm9tIGEgdmVyc2lvbiBjb250cm9sIHN5c3RlbQpkaWZmIC0tZ2l0IGEvdGVzdC9saXNw
L3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLXRlc3RzLmVsIGIvdGVzdC9saXNwL3VzZS1wYWNrYWdl
L3VzZS1wYWNrYWdlLXRlc3RzLmVsCmluZGV4IDg1NTRiMzdkNWI4Li5iMjIxYzVkZTVjMSAxMDA2
NDQKLS0tIGEvdGVzdC9saXNwL3VzZS1wYWNrYWdlL3VzZS1wYWNrYWdlLXRlc3RzLmVsCisrKyBi
L3Rlc3QvbGlzcC91c2UtcGFja2FnZS91c2UtcGFja2FnZS10ZXN0cy5lbApAQCAtMTE1Myw3ICsx
MTUzLDEyIEBAIHVzZS1wYWNrYWdlLXRlc3QvOmN1c3RvbS1mYWNlLTEKICAgKG1hdGNoLWV4cGFu
c2lvbgogICAgKHVzZS1wYWNrYWdlIGZvbyA6Y3VzdG9tLWZhY2UgKGZvbyAoKHQgKDpiYWNrZ3Jv
dW5kICIjZTRlZGZjIikpKSkpCiAgICBgKHByb2duCi0gICAgICAoYXBwbHkgIydmYWNlLXNwZWMt
c2V0IChiYWNrcXVvdGUgKGZvbyAoKHQgKDpiYWNrZ3JvdW5kICIjZTRlZGZjIikpKSkpKQorICAg
ICAgKHByb2duCisgICAgICAgIChhcHBseSAjJ2ZhY2Utc3BlYy1zZXQKKyAgICAgICAgICAgICAg
IChhcHBlbmQgKGJhY2txdW90ZSAoZm9vICgodCAoOmJhY2tncm91bmQgIiNlNGVkZmMiKSkpKSkK
KyAgICAgICAgICAgICAgICAgICAgICAgJyhmYWNlLWRlZmZhY2Utc3BlYykpCisgICAgICAgICAg
ICAgICApCisgICAgICAgIChwdXQgJ2ZvbyAnZmFjZS1tb2RpZmllZCB0KSkKICAgICAgIChyZXF1
aXJlICdmb28gbmlsIG5pbCkpKSkKIAogKGVydC1kZWZ0ZXN0IHVzZS1wYWNrYWdlLXRlc3QvOmN1
c3RvbS1mYWNlLTIgKCkKQEAgLTExNjMsMTkgKzExNjgsNDIgQEAgdXNlLXBhY2thZ2UtdGVzdC86
Y3VzdG9tLWZhY2UtMgogICAgICAoZXhhbXBsZS0xLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGln
aHRQaW5rIikpKSkKICAgICAgKGV4YW1wbGUtMi1mYWNlICgodCAoOmZvcmVncm91bmQgIkxpZ2h0
R3JlZW4iKSkpKSkKICAgIGAocHJvZ24KLSAgICAgIChhcHBseSAjJ2ZhY2Utc3BlYy1zZXQKLSAg
ICAgICAgICAgICAoYmFja3F1b3RlIChleGFtcGxlLTEtZmFjZSAoKHQgKDpmb3JlZ3JvdW5kICJM
aWdodFBpbmsiKSkpKSkpCi0gICAgICAoYXBwbHkgIydmYWNlLXNwZWMtc2V0Ci0gICAgICAgICAg
ICAgKGJhY2txdW90ZSAoZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9yZWdyb3VuZCAiTGlnaHRHcmVl
biIpKSkpKSkKKyAgICAgIChwcm9nbgorICAgICAgICAoYXBwbHkgIydmYWNlLXNwZWMtc2V0Cisg
ICAgICAgICAgICAgICAoYXBwZW5kIChiYWNrcXVvdGUgKGV4YW1wbGUtMS1mYWNlICgodCAoOmZv
cmVncm91bmQgIkxpZ2h0UGluayIpKSkpKQorICAgICAgICAgICAgICAgICAgICAgICAnKGZhY2Ut
ZGVmZmFjZS1zcGVjKSkpCisgICAgICAgIChwdXQgJ2V4YW1wbGUtMS1mYWNlICdmYWNlLW1vZGlm
aWVkIHQpKQorICAgICAgKHByb2duCisgICAgICAgIChhcHBseSAjJ2ZhY2Utc3BlYy1zZXQKKyAg
ICAgICAgICAgICAgIChhcHBlbmQgKGJhY2txdW90ZSAoZXhhbXBsZS0yLWZhY2UgKCh0ICg6Zm9y
ZWdyb3VuZCAiTGlnaHRHcmVlbiIpKSkpKQorICAgICAgICAgICAgICAgICAgICAgICAnKGZhY2Ut
ZGVmZmFjZS1zcGVjKSkpCisgICAgICAgIChwdXQgJ2V4YW1wbGUtMi1mYWNlICdmYWNlLW1vZGlm
aWVkIHQpKQogICAgICAgKHJlcXVpcmUgJ2V4YW1wbGUgbmlsIG5pbCkpKSkKIAogKGVydC1kZWZ0
ZXN0IHVzZS1wYWNrYWdlLXRlc3QvOmN1c3RvbS1mYWNlLTMgKCkKICAgKG1hdGNoLWV4cGFuc2lv
bgogICAgKHVzZS1wYWNrYWdlIGZvbyA6Y3VzdG9tLWZhY2UgKGZvbyAoKHQgKDpiYWNrZ3JvdW5k
ICIjZTRlZGZjIikpKSBmYWNlLWRlZnNwZWMtc3BlYykpCiAgICBgKHByb2duCi0gICAgICAoYXBw
bHkgIydmYWNlLXNwZWMtc2V0IChiYWNrcXVvdGUgKGZvbyAoKHQgKDpiYWNrZ3JvdW5kICIjZTRl
ZGZjIikpKSBmYWNlLWRlZnNwZWMtc3BlYykpKQorICAgICAgKHByb2duCisgICAgICAgIChhcHBs
eSAjJ2ZhY2Utc3BlYy1zZXQKKyAgICAgICAgICAgICAgIChhcHBlbmQgKGJhY2txdW90ZSAoZm9v
ICgodCAoOmJhY2tncm91bmQgIiNlNGVkZmMiKSkpIGZhY2UtZGVmc3BlYy1zcGVjKSkKKyAgICAg
ICAgICAgICAgICAgICAgICAgJyhmYWNlLWRlZmZhY2Utc3BlYykpKQorICAgICAgICAocHV0ICdm
b28gJ2ZhY2UtbW9kaWZpZWQgdCkpCiAgICAgICAocmVxdWlyZSAnZm9vIG5pbCBuaWwpKSkpCiAK
KyhlcnQtZGVmdGVzdCB1c2UtcGFja2FnZS10ZXN0LzpjdXN0b20tZmFjZS00ICgpCisgIChkZWZm
YWNlIHVzZS1wYWNrYWdlLXRlc3QvYmFzZS1mYWNlICcoKHQgKDpiYWNrZ3JvdW5kICJncmVlbiIp
KSkgIiIpCisgIChkZWZmYWNlIHVzZS1wYWNrYWdlLXRlc3QvZmFjZSAnKCh0ICg6aW5oZXJpdCB1
c2UtcGFja2FnZS10ZXN0L2Jhc2UtZmFjZSkpKSAiIikKKyAgKHVzZS1wYWNrYWdlIGVtYWNzCisg
ICAgOmN1c3RvbS1mYWNlCisgICAgKHVzZS1wYWNrYWdlLXRlc3QvZmFjZSAoKHQgKDpmb3JlZ3Jv
dW5kICJibHVlIikpKSkpCisgIChzaG91bGQgKGVxdWFsIChmYWNlLWZvcmVncm91bmQgJ3VzZS1w
YWNrYWdlLXRlc3QvZmFjZSBuaWwgdCkKKyAgICAgICAgICAgICAgICAgImJsdWUiKSkKKyAgKHNo
b3VsZCAoZXF1YWwgKGZhY2UtYmFja2dyb3VuZCAndXNlLXBhY2thZ2UtdGVzdC9mYWNlIG5pbCB0
KQorICAgICAgICAgICAgICAgICBuaWwpKQorICAoc2hvdWxkIChlcXVhbCAoZ2V0ICd1c2UtcGFj
a2FnZS10ZXN0L2ZhY2UgJ2ZhY2UtbW9kaWZpZWQpCisgICAgICAgICAgICAgICAgIHQpKSkKKwog
KGVydC1kZWZ0ZXN0IHVzZS1wYWNrYWdlLXRlc3QvOmluaXQtMSAoKQogICAobWF0Y2gtZXhwYW5z
aW9uCiAgICAodXNlLXBhY2thZ2UgZm9vIDppbml0IChpbml0KSkKLS0gCjIuNDkuMAoK
--000000000000cd024b063327a735--




Acknowledgement sent to Michael Shields <shields@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#77928; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 20 Aug 2026 04:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.