Received: (at 80927) by debbugs.gnu.org; 17 May 2026 11:14:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 17 07:14:28 2026 Received: from localhost ([127.0.0.1]:42015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOZRz-0002HG-6d for submit <at> debbugs.gnu.org; Sun, 17 May 2026 07:14:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35632) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wOZRv-0002Fy-0x for 80927 <at> debbugs.gnu.org; Sun, 17 May 2026 07:14:25 -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 1wOZRo-0000mX-Da; Sun, 17 May 2026 07:14:16 -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=Ct9GXVdfClTlOsf08K5N6Ut6RihmSx7qbE2iVuo+Zb8=; b=jjVCKJSeMEyE gnmalYUQe6wG9SM1JpKXdMvNPYri9rsqNoAWg+AwuW/GD/cIykXwRTIXZa8j0SE5/FeCmN2sQ7JjX xPyi0e2FRfSJLjFVOB4PQcKTHXK9FGc6AozIyPSDxcqPRq3ft+h6HpZMqV6WgYFsXffRm7hIzO06D AtsUbqsYdG0wzEzR8VdK5jQTMiJe5c66PzxnJYLUbDLPyNGcMGREjQsdf2fLo0zPY++pXmIIIRhJ+ tLMKjwIKrpQuMFm9pn8a9HSsTahGijn7MU+NEozjB0fv8yK5RmfcdKOXQaE7T1kpAbRHR2s4HQ8uJ wob8pRyE8v48D+IQGdt81Q==; Date: Sun, 17 May 2026 14:14:13 +0300 Message-Id: <868q9i47ay.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Pip Cet <pipcet@HIDDEN> In-Reply-To: <87wlx29ujv.fsf@HIDDEN> (message from Pip Cet on Sun, 17 May 2026 10:52:24 +0000) Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu References: <87o6j2klt6.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN> <86h5os2zur.fsf@HIDDEN> <87fr3zbfsx.fsf@HIDDEN> <86bjen2qcr.fsf@HIDDEN> <87tssf9k3w.fsf@HIDDEN> <8633zz2hm6.fsf@HIDDEN> <87wlx29ujv.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80927 Cc: oscarfv@HIDDEN, 80927 <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: Sun, 17 May 2026 10:52:24 +0000 > From: Pip Cet <pipcet@HIDDEN> > Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org > > "Eli Zaretskii" <eliz@HIDDEN> writes: > > >> Date: Sun, 10 May 2026 18:48:30 +0000 > >> From: Pip Cet <pipcet@HIDDEN> > >> Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org > >> > >> "Eli Zaretskii" <eliz@HIDDEN> writes: > >> > >> >> + if (SYMBOLP (XCAR (val)) > >> >> + && NILP (Fmemq (SYMBOL_NAME (XCAR (val)), tail))) > >> >> list = Fcons (SYMBOL_NAME (XCAR (val)), list); > >> >> } > >> > > >> > We should use Fmember, not Fmemq, right? > >> > >> Both will do, Fmemq should be faster. I don't think it still makes much > >> sense for font family names to be interned symbols, so it's possible we > >> might want to change to Fmember at some point. > > > > You are looking for strings, so I think 'eg' is unreliable? > > This is a rather special case: we're comparing the names of interned > symbols. They are eq iff they're equal. I know, but why would some J.R. Hacker need to dig so deep to realize that the code he/she looks at is not a bug? > However, I'm not sure we really want to keep interning large number > of symbols to represent font names, so we should change it when we > turn the whole thing into a hash table. That ship has sailed long ago, and I see no good reason to turn it back. There's nothing wrong with interning fonts. > >> Yes, that's the current behavior (actually, it's currently worse, since > >> we're looking through a list with duplicates). This needs fixing, but > >> not in Emacs 31, I thought. > > > > But the above change makes the performance worse, since we will be > > comparing strings, not symbols. Right? > > Comparing strings with eq is just as fast as comparing symbols; it's > slower with equal, but we only need to use that if we change other > things. See above: I think we should use Fequal..
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 17 May 2026 11:07:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 17 07:07:16 2026
Received: from localhost ([127.0.0.1]:41992 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wOZL1-0001Dn-U4
for submit <at> debbugs.gnu.org; Sun, 17 May 2026 07:07:16 -0400
Received: from mail.eclipso.de ([217.69.254.104]:45468)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>)
id 1wOZKy-0001Bu-PV
for 80927 <at> debbugs.gnu.org; Sun, 17 May 2026 07:07:14 -0400
X-ESMTP-Authenticated-User: 000D6BEA
From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail;
t=1779016025; bh=RlYf+yZdF6BySJjTDXfbOjKxVgnqrnjgNUi6Nmf9q+A=;
h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
b=ouO7FV/0vPwipkcwITYjjj3toFdCjA+SzWwzRbyvXiQP+g8CuldK7Ccmad94TgxTJ
AL3ioa4L0x8fZEClDn+/QQBQCceUR9hlpCgN9jSmzcO+rK9+ium1HXHSjDkkBwkSrx
SU58/fy9zKVi+H+VsBTMa24/PT0DlPaVlrN+TkpiCoHJYE875XjcG9Elig0IT5ORTm
VVthlVYa8vuJtb1Ef27gsatG5hzjHW/Xwf0vpfbNKFsJY7vXJ3eqfflbMDzDEJmz5c
25LOc4zhqu7ZT2uYTX6P1GJGGXR6SijhM5D/kIRi7dWXVYv8cRcfBsMPVAI0L+10lr
hsi2a0iDBd+8Q==
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
In-Reply-To: <87wlx29ujv.fsf@HIDDEN>
References: <87o6j2klt6.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN>
<86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN>
<86h5os2zur.fsf@HIDDEN> <87fr3zbfsx.fsf@HIDDEN>
<86bjen2qcr.fsf@HIDDEN> <87tssf9k3w.fsf@HIDDEN>
<8633zz2hm6.fsf@HIDDEN> <87wlx29ujv.fsf@HIDDEN>
Date: Sun, 17 May 2026 13:07:04 +0200
Message-ID: <871pfafg6f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80927
Cc: Eli Zaretskii <eliz@HIDDEN>, 80927 <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 (-)
Pip Cet <pipcet@HIDDEN> writes:
> Oscar, have you seen any other infloops on the igc3 branch, or is it
> just this X error?
Just this. I don't usually use menus, this was a one-off experiment.
The only remaining issue I have with igc3 is a very occasional
occurrence of Emacs discarding all undo info, despite me having this:
(defun delete-markers-from-buffer-undo-list ()
"Workaround for Emacs bug#79200."
(when (sequencep buffer-undo-list)
(setq buffer-undo-list
(cl-delete-if
(lambda (el) (and (consp el) (markerp (car el))))
buffer-undo-list
:end 500))))
(defvar delete-markers-from-buffer-undo-list-timer
(run-with-idle-timer 3.0 t 'delete-markers-from-buffer-undo-list))
Before this workaround the problem was much more frequent.
Otherwise, igc is working great here, with sessions spanning weeks of
fairly intensive use.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 17 May 2026 10:52:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 17 06:52:36 2026 Received: from localhost ([127.0.0.1]:41960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOZ6p-0007XK-Aj for submit <at> debbugs.gnu.org; Sun, 17 May 2026 06:52:36 -0400 Received: from mail-106121.protonmail.ch ([79.135.106.121]:32443) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>) id 1wOZ6n-0007Wl-1U for 80927 <at> debbugs.gnu.org; Sun, 17 May 2026 06:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1779015146; x=1779274346; bh=m7l6YZFGXhpOV1sz3/Y1L8MrrzuxfMsZlB4LiBiAur4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ZKA7kdhCzV1BtTUbtBKEJ5hZTthhE/aMM+x+wR8ppM37EkI/nBMsNt/AfixnC4+sy iNaGH1dmYFtxXwZFTB/jGcEv8Z/+OtRo55I5CLg5N47whFIR2SWtngYHfFAvdP6iV7 WjW/WC95kwtyjCfxg+2la0JU3ZP6eH+Dl4UF81H4Ek4cYu9G4y5QljNWkFUBGc2Otc TW40X8hTAICaa8ARWUI+jFYHjVuDM2xEurnOxtWp+A9FYh1ZQEBxcSogDzVmGnm3AV bkqOw+jTnglJZ1j1dRtmMaKCUlgv4JZqlmeTzTIJ9k2KzsTkLRFhFWIQWfMGMR0xtE kDvwfLNbzTfZg== Date: Sun, 17 May 2026 10:52:24 +0000 To: Eli Zaretskii <eliz@HIDDEN> From: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu Message-ID: <87wlx29ujv.fsf@HIDDEN> In-Reply-To: <8633zz2hm6.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN> <86h5os2zur.fsf@HIDDEN> <87fr3zbfsx.fsf@HIDDEN> <86bjen2qcr.fsf@HIDDEN> <87tssf9k3w.fsf@HIDDEN> <8633zz2hm6.fsf@HIDDEN> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: c3fedb002cbbf2a42141bd51177399c25aa0b05d 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: 80927 Cc: oscarfv@HIDDEN, 80927 <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 (-) "Eli Zaretskii" <eliz@HIDDEN> writes: >> Date: Sun, 10 May 2026 18:48:30 +0000 >> From: Pip Cet <pipcet@HIDDEN> >> Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org >> >> "Eli Zaretskii" <eliz@HIDDEN> writes: >> >> >> +=09 if (SYMBOLP (XCAR (val)) >> >> +=09 && NILP (Fmemq (SYMBOL_NAME (XCAR (val)), tail))) >> >> =09 list =3D Fcons (SYMBOL_NAME (XCAR (val)), list); >> >> } >> > >> > We should use Fmember, not Fmemq, right? >> >> Both will do, Fmemq should be faster. I don't think it still makes much >> sense for font family names to be interned symbols, so it's possible we >> might want to change to Fmember at some point. > > You are looking for strings, so I think 'eg' is unreliable? This is a rather special case: we're comparing the names of interned symbols. They are eq iff they're equal. However, I'm not sure we really want to keep interning large number of symbols to represent font names, so we should change it when we turn the whole thing into a hash table. >> > In any case, I'm bothered by performance impact. The list being >> > consed here could be very long (many hundreds of families), so >> > searching the list for each candidate will produce a quadratic >> > behavior, no? >> >> Yes, that's the current behavior (actually, it's currently worse, since >> we're looking through a list with duplicates). This needs fixing, but >> not in Emacs 31, I thought. > > But the above change makes the performance worse, since we will be > comparing strings, not symbols. Right? Comparing strings with eq is just as fast as comparing symbols; it's slower with equal, but we only need to use that if we change other things. >> >=C2=A0What about the idea of storing the families in a >> > temporary hash table (which will guarantee each one is stored only >> > once), and then producing the list to return at the end by calling >> > maphash? wouldn't that be much faster? >> >> That's what we should do in Emacs 32, I think. Maybe we actually need to >> cache that hash table since merely filling the list might take a while? > > Caching will cause problems, because fonts can be installed and > uninstalled while Emacs is running. True. Maybe there is some way to learn about such events when dbus is in use (I'm not sure what the current dbus situation is; on my system, dbus--init isn't called after the pdump is loaded, even though it kind of looks like dbus.el wanted to ensure it would be. Odd.) However, the rest of my proposed patch wasn't okay: rather than selecting a font family and then a specific weight in it, it would let you select a font family only, because x-popup-menu doesn't support menus nested to arbitrary depths. I'm not sure how to build a useful font menu and respect that limitation. I guess the easiest way would be one popup menu to select the font followed by another popup menu to select the weight? Oscar, have you seen any other infloops on the igc3 branch, or is it just this X error? Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 10 May 2026 19:24:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 10 15:24:12 2026 Received: from localhost ([127.0.0.1]:39762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wM9l5-0004jA-W8 for submit <at> debbugs.gnu.org; Sun, 10 May 2026 15:24:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38744) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wM9l3-0004is-Kf for 80927 <at> debbugs.gnu.org; Sun, 10 May 2026 15:24: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 1wM9kx-0005RA-CT; Sun, 10 May 2026 15:24:03 -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=IBVGv2nYYJMdE1Jwr/o+bXNZqhisKqVopIbg4y5T3JM=; b=CYeyR/7Snzc+s4xNHli1 6+j9b8GuSfCpPMpnPj60NHNjq4PsI6blvrxSjC4zW7PP3PAnX8aAEYQrxUI8pG9tpsEwvHDMXZv5x QRov1E6T11Y8c1ijI70W9062HKmm+B8zbofJTNRBf9FLOrb6sQYFEK8MUQVwcNH799aoLb8R/PChH Fs7QA6jjtdkjoV9uURiEZWdop+H1hH1jZeFwvGDu9poS9rdAdgpSZh7nlVba/A7EKTl+H5BYS5JOu 4lr1gQVoW0r78wMAlXMKpgoNrx0dr5R9NMITXY+KEwK7hB0J1statMYXHgM/AHN/HZRt6sZVlYRUp IrFO4uL6vU3Dpw==; Date: Sun, 10 May 2026 22:24:01 +0300 Message-Id: <8633zz2hm6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Pip Cet <pipcet@HIDDEN> In-Reply-To: <87tssf9k3w.fsf@HIDDEN> (message from Pip Cet on Sun, 10 May 2026 18:48:30 +0000) Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu References: <87o6j2klt6.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN> <86h5os2zur.fsf@HIDDEN> <87fr3zbfsx.fsf@HIDDEN> <86bjen2qcr.fsf@HIDDEN> <87tssf9k3w.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: 80927 Cc: oscarfv@HIDDEN, 80927 <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: Sun, 10 May 2026 18:48:30 +0000 > From: Pip Cet <pipcet@HIDDEN> > Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org > > "Eli Zaretskii" <eliz@HIDDEN> writes: > > >> + if (SYMBOLP (XCAR (val)) > >> + && NILP (Fmemq (SYMBOL_NAME (XCAR (val)), tail))) > >> list = Fcons (SYMBOL_NAME (XCAR (val)), list); > >> } > > > > We should use Fmember, not Fmemq, right? > > Both will do, Fmemq should be faster. I don't think it still makes much > sense for font family names to be interned symbols, so it's possible we > might want to change to Fmember at some point. You are looking for strings, so I think 'eg' is unreliable? > > In any case, I'm bothered by performance impact. The list being > > consed here could be very long (many hundreds of families), so > > searching the list for each candidate will produce a quadratic > > behavior, no? > > Yes, that's the current behavior (actually, it's currently worse, since > we're looking through a list with duplicates). This needs fixing, but > not in Emacs 31, I thought. But the above change makes the performance worse, since we will be comparing strings, not symbols. Right? > > What about the idea of storing the families in a > > temporary hash table (which will guarantee each one is stored only > > once), and then producing the list to return at the end by calling > > maphash? wouldn't that be much faster? > > That's what we should do in Emacs 32, I think. Maybe we actually need to > cache that hash table since merely filling the list might take a while? Caching will cause problems, because fonts can be installed and uninstalled while Emacs is running. > >> This fixes a bug that made the X font driver return duplicates: > > > > Don't androidfont.c and haikufont.c have the same problem? > > macfont.m too, I think. However, I don't know the technical details of > those (largely unused, by now) drivers; should I change them anyway? We can ask the relevant people to eyeball the changes. > >> Of course, there is no guarantee there won't be so many fonts that we > >> still trigger this bug, but to guarantee that, we'd probably need to > >> introduce more levels in the menu structure, and replace "when" by > >> "while" in the last patch. > > > > You mean that the number off font families will be too large even when > > divided by 30? How many families will that take? Maybe we should > > then truncate the list and show a message to that effect in the > > echo-area? > > I hope the number of fonts required for that (30,000?) is going to > remain unrealistic for a while. It seems the explosion of Noto fonts is > the main problem right now, at least. So maybe just a FIXME comment about that is enough.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 10 May 2026 18:48:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 10 14:48:47 2026
Received: from localhost ([127.0.0.1]:39533 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wM9Co-0008Mu-Na
for submit <at> debbugs.gnu.org; Sun, 10 May 2026 14:48:47 -0400
Received: from mail-106120.protonmail.ch ([79.135.106.120]:57485)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
id 1wM9Cm-0008Lh-Am
for 80927 <at> debbugs.gnu.org; Sun, 10 May 2026 14:48:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail3; t=1778438916; x=1778698116;
bh=Fzx81iB2fBolXjb0RujJS0KnW/EzKzQCViwPO80aaPo=;
h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
Message-ID:BIMI-Selector;
b=AwpqYgo9GLSp9bC5e/Sp4afjkGEWZ1XY97oorrvGh1WPikfNVc+wsk8R4gJsKQK1e
fBPKQuoPJUh5Vom/ZMEwtfBBOiobEjVnsHEDwCLOnpQVK615OEjF06b8LWrCIRwDrg
JhT6aAXz/P8p5UXKwBWrLaZt33jaDnFCycSwh0m3R7ygC9nkAlxW40/W9YMwY8uRaC
EVCvW+USr4hsDOhoXbcvKPpmbHrjGNaE0cvBskgAd23WOHB7P13nxkIQcAYYYuc+HY
U84Zf4bd9XVuWqCNAHTgOtzgAbtpJB7FbXOW8zvDjn4cRAv6/d03Q2ZgA5fq4idIcv
zaq1nJr+gYPyQ==
Date: Sun, 10 May 2026 18:48:30 +0000
To: Eli Zaretskii <eliz@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
Message-ID: <87tssf9k3w.fsf@HIDDEN>
In-Reply-To: <86bjen2qcr.fsf@HIDDEN>
References: <87o6j2klt6.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN>
<874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN>
<86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN>
<86h5os2zur.fsf@HIDDEN> <87fr3zbfsx.fsf@HIDDEN>
<86bjen2qcr.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: 18bea97c4f928b51bcbf6d69032ea07603e23111
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: 80927
Cc: oscarfv@HIDDEN, 80927 <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 (-)
"Eli Zaretskii" <eliz@HIDDEN> writes:
>> Date: Sun, 10 May 2026 12:38:33 +0000
>> From: Pip Cet <pipcet@HIDDEN>
>> Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org
>>
>> --- a/src/font.c
>> +++ b/src/font.c
>> @@ -4456,8 +4456,8 @@ DEFUN ("font-family-list", Ffont_family_list, Sfon=
t_family_list, 0, 1, 0,
>> =09Lisp_Object tail =3D list;
>>
>> =09for (; CONSP (val); val =3D XCDR (val))
>> -=09 if (NILP (Fmemq (XCAR (val), tail))
>> -=09 && SYMBOLP (XCAR (val)))
>> +=09 if (SYMBOLP (XCAR (val))
>> +=09 && NILP (Fmemq (SYMBOL_NAME (XCAR (val)), tail)))
>> =09 list =3D Fcons (SYMBOL_NAME (XCAR (val)), list);
>> }
>
> We should use Fmember, not Fmemq, right?
Both will do, Fmemq should be faster. I don't think it still makes much
sense for font family names to be interned symbols, so it's possible we
might want to change to Fmember at some point.
> In any case, I'm bothered by performance impact. The list being
> consed here could be very long (many hundreds of families), so
> searching the list for each candidate will produce a quadratic
> behavior, no?
Yes, that's the current behavior (actually, it's currently worse, since
we're looking through a list with duplicates). This needs fixing, but
not in Emacs 31, I thought.
>=C2=A0What about the idea of storing the families in a
> temporary hash table (which will guarantee each one is stored only
> once), and then producing the list to return at the end by calling
> maphash? wouldn't that be much faster?
That's what we should do in Emacs 32, I think. Maybe we actually need to
cache that hash table since merely filling the list might take a while?
>> This fixes a bug that made the X font driver return duplicates:
>
> Don't androidfont.c and haikufont.c have the same problem?
macfont.m too, I think. However, I don't know the technical details of
those (largely unused, by now) drivers; should I change them anyway?
>> +(defcustom mouse-font-menu-maxlen 30
>> + "Number of fonts in one pane (submenu) of the font selection menu."
> ^^^^^
> "Fonts" or "font families"?
I'm not sure; the documentation seems to use both, and that you're
selecting what's technically a font family rather than a single font
might not be very interesting to the user. How about saying "number of
entries"?
>> + :type 'integer)
>
> Please add the :version tag. And IMO the doc string should mention
> that the value is only in effect if the font selection menu shows
> enough fonts.
OK, thanks.
>> Of course, there is no guarantee there won't be so many fonts that we
>> still trigger this bug, but to guarantee that, we'd probably need to
>> introduce more levels in the menu structure, and replace "when" by
>> "while" in the last patch.
>
> You mean that the number off font families will be too large even when
> divided by 30? How many families will that take? Maybe we should
> then truncate the list and show a message to that effect in the
> echo-area?
I hope the number of fonts required for that (30,000?) is going to
remain unrealistic for a while. It seems the explosion of Noto fonts is
the main problem right now, at least.
Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 10 May 2026 16:15:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 10 12:15:32 2026
Received: from localhost ([127.0.0.1]:38551 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wM6oV-0004JX-5O
for submit <at> debbugs.gnu.org; Sun, 10 May 2026 12:15:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51244)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wM6oS-0004HH-OI
for 80927 <at> debbugs.gnu.org; Sun, 10 May 2026 12:15:29 -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 1wM6oM-0003Ms-AE; Sun, 10 May 2026 12:15:22 -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=20DqvEWYQVRByEcZcotTHbVJUDv+FqRmfH2SPXr1vxg=; b=o8EAJXU7kMMu
w3ovFnooNTxDQtewx4NMWV8ML0Tkx1VL7KyldNt8Sxm17u6SGjKDdn3SrHnAoK6hpmiGnVjdcTmF7
KH2jyvhYJahBHO3KfL26yAH4sml/2O4sYmwiJJLjZhL+c7KsK47alsZFoZRgE7Ie1TfCEgEKqWttO
BvfZXUNq60l+Mu2wYGokByOUDZK58fBs4WMKu/VqSe4vjpLOafMCmVDWZy4GLQ5eC9HH5/ZAkpXUD
UXuL2T8HgXUDO3WbDTkqRWYpzPgZmU8pv7C3NdxBzUVBBQ5/P5Hb6dcF4DB4VQhzAPuxfyc7M5dm/
OLJ45NoguCJNB26zCG5Y1Q==;
Date: Sun, 10 May 2026 19:15:16 +0300
Message-Id: <86bjen2qcr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
In-Reply-To: <87fr3zbfsx.fsf@HIDDEN> (message from Pip Cet on Sun, 10
May 2026 12:38:33 +0000)
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN>
<87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN>
<874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN>
<86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN>
<86h5os2zur.fsf@HIDDEN> <87fr3zbfsx.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80927
Cc: oscarfv@HIDDEN, 80927 <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: Sun, 10 May 2026 12:38:33 +0000
> From: Pip Cet <pipcet@HIDDEN>
> Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org
>
> --- a/src/font.c
> +++ b/src/font.c
> @@ -4456,8 +4456,8 @@ DEFUN ("font-family-list", Ffont_family_list, Sfont_family_list, 0, 1, 0,
> Lisp_Object tail = list;
>
> for (; CONSP (val); val = XCDR (val))
> - if (NILP (Fmemq (XCAR (val), tail))
> - && SYMBOLP (XCAR (val)))
> + if (SYMBOLP (XCAR (val))
> + && NILP (Fmemq (SYMBOL_NAME (XCAR (val)), tail)))
> list = Fcons (SYMBOL_NAME (XCAR (val)), list);
> }
We should use Fmember, not Fmemq, right?
In any case, I'm bothered by performance impact. The list being
consed here could be very long (many hundreds of families), so
searching the list for each candidate will produce a quadratic
behavior, no? What about the idea of storing the families in a
temporary hash table (which will guarantee each one is stored only
once), and then producing the list to return at the end by calling
maphash? wouldn't that be much faster?
> This fixes a bug that made the X font driver return duplicates:
Don't androidfont.c and haikufont.c have the same problem?
> +(defcustom mouse-font-menu-maxlen 30
> + "Number of fonts in one pane (submenu) of the font selection menu."
^^^^^
"Fonts" or "font families"?
> + :type 'integer)
Please add the :version tag. And IMO the doc string should mention
that the value is only in effect if the font selection menu shows
enough fonts.
> Of course, there is no guarantee there won't be so many fonts that we
> still trigger this bug, but to guarantee that, we'd probably need to
> introduce more levels in the menu structure, and replace "when" by
> "while" in the last patch.
You mean that the number off font families will be too large even when
divided by 30? How many families will that take? Maybe we should
then truncate the list and show a message to that effect in the
echo-area?
Thanks.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 10 May 2026 12:38:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 10 08:38:48 2026
Received: from localhost ([127.0.0.1]:36706 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wM3Ql-00085I-Ei
for submit <at> debbugs.gnu.org; Sun, 10 May 2026 08:38:48 -0400
Received: from mail-4322.protonmail.ch ([185.70.43.22]:23597)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
id 1wM3Qh-00083w-HP
for 80927 <at> debbugs.gnu.org; Sun, 10 May 2026 08:38:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail3; t=1778416716; x=1778675916;
bh=nMMJj5+/3MhCloQ3BENsayGCgDB/JSrY/K7jhxQQuYc=;
h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
Message-ID:BIMI-Selector;
b=O5O87Cy8jRn+5LrTsVm/ncEcPNZD5GhGVehc9zIgwOjmIpSmSiS4pPM48M2Jcl6Pq
iR8tyaMphY1E1UgJGP4b3mEcsQLUlN/yaJdNtyuT6n7Gg7GoApwlFjkJg+pBCc8+B4
5/b1OzzMApm3gIq50hWc+enuTFcl6cm9lrXfAXF44PZ0uIpbxRf5rPLjDmtm2PgBjR
vQJ4ieVGyO+0A7185vD/btDrBsHqgCbm80BajQBo/iL85HyirvyZPTJpXgCqS/nIio
Zo8gsbSJ4PPRIzlKv3z3Pe9f/8vZUD4CfqZbadiR/kr+Z0e9djRT29z4kpjOJbVKfL
VpZ5qkEXxDcwg==
Date: Sun, 10 May 2026 12:38:33 +0000
To: Eli Zaretskii <eliz@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
Message-ID: <87fr3zbfsx.fsf@HIDDEN>
In-Reply-To: <86h5os2zur.fsf@HIDDEN>
References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN>
<87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN>
<874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN>
<86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN>
<86h5os2zur.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: d2f83fcdfcac7f6c09bab379439c592443aebfa9
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: 80927
Cc: oscarfv@HIDDEN, 80927 <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 (-)
"Eli Zaretskii" <eliz@HIDDEN> writes:
>> Date: Thu, 30 Apr 2026 15:43:03 +0000
>> From: Pip Cet <pipcet@HIDDEN>
>> Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org
>>
>> Ideally, we'd just add the SYMBOL_NAME and keep the rest of the
>> code. Sorry, should have marked that patch as WIP, too. (Thanks for
>> reviewing it!)
>
> OK, will wait for the final version.
This keeps the old code largely intact, which means it assumes that a
single font driver doesn't return duplicates:
From dd834de387beacfe773873288ff65b046f918d24 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Wed, 29 Apr 2026 19:06:02 +0000
Subject: [PATCH 1/5] Avoid duplicates in Ffont_family_list (bug#80927)
* src/font.c (Ffont_family_list): Check TAIL for the symbol's name,
not the symbol itself.
---
src/font.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/font.c b/src/font.c
index fed90084219..d0af37e2065 100644
--- a/src/font.c
+++ b/src/font.c
@@ -4456,8 +4456,8 @@ DEFUN ("font-family-list", Ffont_family_list, Sfont_f=
amily_list, 0, 1, 0,
=09Lisp_Object tail =3D list;
=20
=09for (; CONSP (val); val =3D XCDR (val))
-=09 if (NILP (Fmemq (XCAR (val), tail))
-=09 && SYMBOLP (XCAR (val)))
+=09 if (SYMBOLP (XCAR (val))
+=09 && NILP (Fmemq (SYMBOL_NAME (XCAR (val)), tail)))
=09 list =3D Fcons (SYMBOL_NAME (XCAR (val)), list);
}
return list;
--=20
2.54.0
This fixes a bug that made the X font driver return duplicates:
From 4c67434bb0fcf1288fa2c5926bbdcff3394b004e Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Sun, 10 May 2026 10:34:10 +0000
Subject: [PATCH 2/5] Avoid duplicates in xfont_list_family (bug#80927)
* src/xfont.c (xfont_list_family): Use 'memq_no_quit', not
'assq_no_quit'.
---
src/xfont.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xfont.c b/src/xfont.c
index f237badcf27..c4fb33d1428 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -637,7 +637,7 @@ xfont_list_family (struct frame *f)
=20
decoded_len =3D xfont_decode_coding_xlfd (p0, last_len, buf);
family =3D font_intern_prop (p0, decoded_len, 1);
- if (NILP (assq_no_quit (family, list)))
+ if (NILP (memq_no_quit (family, list)))
=09list =3D Fcons (family, list);
}
=20
--=20
2.54.0
This adds missing code to make the ftfont driver remove duplicates:
From f5464b94376cd75e2de62141dc349f1f512e3f25 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Sun, 10 May 2026 10:34:58 +0000
Subject: [PATCH 3/5] Avoid duplicates in ftfont_list_family (bug#80927)
* src/ftfont.c (ftfont_list_family): Remove duplicates from list.
---
src/ftfont.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/ftfont.c b/src/ftfont.c
index 6de7110e5bb..5383c3f6f0b 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1190,7 +1190,11 @@ ftfont_list_family (struct frame *f)
FcChar8 *str;
=20
if (FcPatternGetString (pat, FC_FAMILY, 0, &str) =3D=3D FcResultMatc=
h)
-=09list =3D Fcons (intern ((char *) str), list);
+=09{
+=09 Lisp_Object symbol =3D intern ((char *) str);
+=09 if (NILP (memq_no_quit (symbol, list)))
+=09 list =3D Fcons (symbol, list);
+=09}
}
=20
finish:
--=20
2.54.0
This sorts font names in the mouse font menu:
From 403387d6a88d0b9618df2ac85055f9f243bdff32 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Sun, 10 May 2026 11:55:13 +0000
Subject: [PATCH 4/5] Sort font families in the mouse font menu (bug#80927)
* lisp/mouse.el (mouse-generate-font-menu): Sort FAMILIES.
---
lisp/mouse.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 20c819ee0a8..e9933fcfef1 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -3102,7 +3102,8 @@ mouse-generate-font-name-for-menu
=20
(defun mouse-generate-font-menu ()
"Return a list of menu panes for each font family."
- (let ((families (font-family-list))
+ (let ((families (sort (font-family-list)
+ :lessp #'string-collate-lessp))
(panes (list "Font families")))
(dolist (family families)
(when family
--=20
2.54.0
This final patch splits the mouse font menu into groups of 30 fonts. The
submenu headings contain the name of the first entry, so you have a
chance to find a font by name or skip all the Noto fonts.
From fcd08acd7cc56f29fda5366ce90e698624173ce9 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Sun, 10 May 2026 11:55:41 +0000
Subject: [PATCH 5/5] Split mouse font menu if there are many fonts (bug#809=
27)
* lisp/mouse.el (mouse-font-menu-maxlen): New defcustom.
(mouse-generate-font-menu): Split font menu according to it.
---
lisp/mouse.el | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index e9933fcfef1..066b3b5284a 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2811,6 +2811,10 @@ mouse-buffer-menu-maxlen
`mouse-buffer-menu-maxlen' and make a pane (or submenu) for each one."
:type 'integer)
=20
+(defcustom mouse-font-menu-maxlen 30
+ "Number of fonts in one pane (submenu) of the font selection menu."
+ :type 'integer)
+
(defcustom mouse-buffer-menu-mode-mult 4
"Group the buffers by the major mode groups on \\[mouse-buffer-menu]?
This number which determines (in a hairy way) whether \\[mouse-buffer-menu=
]
@@ -3104,7 +3108,7 @@ mouse-generate-font-menu
"Return a list of menu panes for each font family."
(let ((families (sort (font-family-list)
:lessp #'string-collate-lessp))
- (panes (list "Font families")))
+ (panes nil))
(dolist (family families)
(when family
(let* ((fonts (list-fonts (font-spec :family family)))
@@ -3118,7 +3122,19 @@ mouse-generate-font-menu
(mouse-generate-font-name-for-m=
enu font))
(font-xlfd-name font)))))))
(setq panes (nconc panes (list pane))))))
- panes))
+ (when (> (length panes) mouse-font-menu-maxlen)
+ (let* ((newpanes nil))
+ (while panes
+ (let* ((sublist (take mouse-font-menu-maxlen panes))
+ (first (car sublist))
+ (name (car first)))
+ (push (cons (format "Font families (%s...)"
+ name)
+ sublist)
+ newpanes))
+ (setq panes (nthcdr mouse-font-menu-maxlen panes)))
+ (setq panes (nreverse newpanes))))
+ (cons "Font families" panes)))
=20
(defun mouse-select-font ()
"Prompt for a font name, using `x-popup-menu', and return it."
--=20
2.54.0
Of course, there is no guarantee there won't be so many fonts that we
still trigger this bug, but to guarantee that, we'd probably need to
introduce more levels in the menu structure, and replace "when" by
"while" in the last patch.
I think we should also look into simply truncating menus rather than
sending erroneous X requests for them when they become too large. There
was a bug involving Wayland frame titles wider than 32K pixels, so that
limit is probably going to be with us for a while.
Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 4 May 2026 11:50:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 04 07:50:36 2026 Received: from localhost ([127.0.0.1]:39170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wJroq-0004Q0-Dr for submit <at> debbugs.gnu.org; Mon, 04 May 2026 07:50:36 -0400 Received: from mail.eclipso.de ([217.69.254.104]:45970) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>) id 1wJron-0004PD-KT for 80927 <at> debbugs.gnu.org; Mon, 04 May 2026 07:50:34 -0400 X-ESMTP-Authenticated-User: 000D6BEA From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail; t=1777895426; bh=G6q6l1Q5BSyuoDv9jOr+p4KT9Q2kQhUnvJVtKPYOgpI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=EjSk/+XzJXnemiD3U7taaA1HkFxBF2itmFhdAx3HPG2yryzg+sURGrKbXNXRWG6j6 0cK+9zFvrVpbcpKcdA6cTZfvu7GR1vFkH2xV98095qgfc3dQScDYy7jQrLJATB0ZRN 82bL8GDdWo+15U3FW1hssq53G/i/952TbchGgpUturaswzrbevU3EsviVmy+aAZP5/ yIOPv2TtEVfQHV3DELCn5USoCVMNgKU3peznE6rcrAUR+ocJhviWDfpgCBPvOAWOiW oh0cNJ2BDhITGwqAYvFFeIbqdufL94/bH9Ppgs7FwohoJDEscDJdsJgJq0bxAG7b1l wivYGtvKKX1Ow== To: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu In-Reply-To: <871pfw4fyq.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <87wlxpjzyr.fsf@HIDDEN> <871pfw4fyq.fsf@HIDDEN> Date: Mon, 04 May 2026 13:50:25 +0200 Message-ID: <87fr47jsvy.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 80927 Cc: 80927 <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 (-) Pip Cet <pipcet@HIDDEN> writes: >> But something weird happens: hovering with the mouse over the "Font >> families" menu updates the submenu with the fonts, as expected, but >> after a few seconds of doing this the menu no longer highlights the item >> under the cursor and the submenu does not update. Then if I move the >> cursor to the submenu, at first it works as expected highlighting the >> entry under the cursor until it stops doing so. Then if the cursor moves >> to the "Font families" menu this works again for a while, etc. >> >> I don't know if this is related to your change or something else. >> >> [nevermind: I reproduced the problem with other menus. The larger the >> menu, the sooner it happens.] > > IIRC, X popups/menus interact nontrivially with GC. Is this on the igc3 > branch or on master or both? The thing about freezing menus is on master, didn't try igc3. > Can you try triggering a background timer > to call garbage-collect or igc-collect while the menu is open to see > whether that coincides with the appearance of the problem? I set garbage-collect-messages to t and no message was emitted before, during or after the problem with menus was reproduced (with emacs -Q). >> ago I removed most of those Noto fonts but they came back on some >> update. Adding the rest of the fonts, which includes several dozens I >> installed, are just enough to exceed the threshold that causes this >> issue. > > So that sounds like we're on the right track there. Please note that as mentioned on a previous message, unpatched igc3 infloops instead of exiting as unpatched master does. Mentioning it again just in case you missed it because I'm sure you are interested on any difference among igc3 and master. Didn't try the patch on igc3 yet. Maybe later.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 30 Apr 2026 16:10:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 12:10:51 2026 Received: from localhost ([127.0.0.1]:56332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wITyV-0005Hu-Dn for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 12:10:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39880) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wITyR-0005H6-0n for 80927 <at> debbugs.gnu.org; Thu, 30 Apr 2026 12:10:50 -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 1wITyK-0001E8-Hc; Thu, 30 Apr 2026 12:10:40 -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=UzuiiSGvXXkwYtP5Id8We7gWjcTtZYd+/VNn5PO1JIs=; b=key6mKGN6KOM 15jMG/aRCV6F6Fupk2OUfqZFJLd/QjrBZtR5YiLKmMyqY8DZwUXuwKvtsgY8QhzOfTvo4RHKqKVpy 4h/er31aiDNvM+zVFFgcs1EjIMTHb3OS9f601GpJjB0TlgvJWZFi8YBjDKm+Wi+0SNmKARsb0pqGs 0/jDbMJQfKvlsvRa+NgLwhUGcsDWnPC7dXQiz648b+693YDsbAtv9ScmJ3wl4bl3mnDW0+AMtoDdG 5eNwrxSMSuWhLUAK09w2lyJ50u213lhmix3QfYMdzaGn2/PA85LZcgGO0bNHM2t9EiRNQUhYJgZb3 mGXJ/p2Pzcg980p9Dlqm0g==; Date: Thu, 30 Apr 2026 19:10:36 +0300 Message-Id: <86h5os2zur.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Pip Cet <pipcet@HIDDEN> In-Reply-To: <87v7d8314k.fsf@HIDDEN> (message from Pip Cet on Thu, 30 Apr 2026 15:43:03 +0000) Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <86fr4d3tku.fsf@HIDDEN> <87v7d8314k.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80927 Cc: oscarfv@HIDDEN, 80927 <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: Thu, 30 Apr 2026 15:43:03 +0000 > From: Pip Cet <pipcet@HIDDEN> > Cc: oscarfv@HIDDEN, 80927 <at> debbugs.gnu.org > > Ideally, we'd just add the SYMBOL_NAME and keep the rest of the > code. Sorry, should have marked that patch as WIP, too. (Thanks for > reviewing it!) OK, will wait for the final version. > >> I think the menu entries should be sorted alphabetically, but maybe > >> that's just me. > > > > Not sure about that. Sorting by foundry and then by family sounds a > > better way. Also, fonts like NNxMM, where both NN and MM are numbers > > might require sorting in numerical order? > > If we don't list the foundry, sorting by it seems confusing. I thought we did show foundry. If we don't, then yes, just sort by family.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 30 Apr 2026 15:43:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 11:43:19 2026 Received: from localhost ([127.0.0.1]:56247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wITXq-0001QE-B7 for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 11:43:19 -0400 Received: from mail-244122.protonmail.ch ([109.224.244.122]:42747) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>) id 1wITXm-0001P1-PB for 80927 <at> debbugs.gnu.org; Thu, 30 Apr 2026 11:43:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1777563786; x=1777822986; bh=3Nbk6Mieg0Q9908vg0NKqUlsYUC+T5sb6biNu3tCCp8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Kt1PQ60VNG/TcDy66GjYJqX5A4rG9v4lAHn9amzrx+YHH32I3669Hqb57TkfG4ueZ +7WOSCKM5jvukj3tx0/v6cVGr8xSMFnKElXEAGhYpKh1yAwV1VJ2sQRvV8CVVOIlPt x0m7ulS5z8dOgR6SimBpWqehjH2PB9j0/fOgVMUipQlsgZdJNj8CvPdh652HlJj+uX 7Wvs24z+EZGNBYtuFaNa2zqHIv9biY4sTiHZnLY6NOSg5OEjc8RtgeG5Hzx3YgnAgl thyAwrgKE+Dh7VOwEFIW++Rlrv6oZFmv0RjO+yPRsrnuJ+D0ThjTELIHUHKortWz/6 ktPFc4L6Fs3rw== Date: Thu, 30 Apr 2026 15:43:03 +0000 To: Eli Zaretskii <eliz@HIDDEN> From: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu Message-ID: <87v7d8314k.fsf@HIDDEN> In-Reply-To: <86fr4d3tku.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <86fr4d3tku.fsf@HIDDEN> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: a514d3855a12a45c3bdd258f8de1518375a3b283 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: 80927 Cc: oscarfv@HIDDEN, 80927 <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 (-) "Eli Zaretskii" <eliz@HIDDEN> writes: >> =09Lisp_Object val =3D driver_list->driver->list_family (f); >> -=09Lisp_Object tail =3D list; >> >> =09for (; CONSP (val); val =3D XCDR (val)) >> -=09 if (NILP (Fmemq (XCAR (val), tail)) >> +=09 if (NILP (Fmember (SYMBOL_NAME (XCAR (val)), list)) >> =09 && SYMBOLP (XCAR (val))) > > You are saying that some font families appear multiple times, as > symbols, in the list returned by the font driver's list_family method? I hope the important part of the change is to replace XCAR (val) by SYMBOL_NAME (XCAR (val)). If the tail->list change makes a difference, that's a bug in an individual font driver. If the Fmemq -> Fmember change makes a difference, the method must be returning uninterned symbols, which would also a bug. > If so, I expect the above change to slow down font-family-list quite a > bit. Could we perhaps avoid that by keeping the memq comparison, but > augmenting that by not adding duplicates, using something similar to > delete-dups (just on C level)? Ideally, we'd just add the SYMBOL_NAME and keep the rest of the code. Sorry, should have marked that patch as WIP, too. (Thanks for reviewing it!) >> However, I still don't think the menu is very useful: we should do the >> same thing we do for buffer lists and split the menu. The second patch, >> which still needs a lot of work, does that. > > Yes, I think we should definitely do that. But IMO the cutoff value > for how many fonts to show on a single submenu should perhaps be > dynamically computed taking the frame height into consideration. Agreed. >> I think the menu entries should be sorted alphabetically, but maybe >> that's just me. > > Not sure about that. Sorting by foundry and then by family sounds a > better way. Also, fonts like NNxMM, where both NN and MM are numbers > might require sorting in numerical order? If we don't list the foundry, sorting by it seems confusing. Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 30 Apr 2026 15:37:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 11:37:36 2026 Received: from localhost ([127.0.0.1]:56212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wITSK-0000gY-8O for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 11:37:36 -0400 Received: from mail-106120.protonmail.ch ([79.135.106.120]:35319) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>) id 1wITSF-0000et-4r for 80927 <at> debbugs.gnu.org; Thu, 30 Apr 2026 11:37:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1777563444; x=1777822644; bh=JthTXgTHRMiqdiRbNgP1lyZut1G3rJsFqHT7z66la4w=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=bsOHrJsqBVlVbnodzJlf3IOrQ0yBKyA8zq2P9B82UKWuZTe9kS6ah7V3lkBJJB2lp 8iXozOCN53BGxukJkk+Kyd/Cmtg8QtXAyioOf+tA7z53ctUdh5VRdI47UO1DyJoI+O mA0yuvzRWhlJa7j+K78q3sHATQxxhh6qIZ4wFRknXgB4fXSZdvA3KKG2OqM5Qosmjw QQB4qcVQ5RWCYGhrujN+A+yDfHbAS6RZTWs/G4dprqUo4B7S8OFd2jX2Adfu22G5vS sF7Qbx6HuY+UfsTScHlVoRZZew0tTLkCWcevUfwCTsP1S3gDrKWwE4T4WgcnbtKwNw sRRiN5/4xRgqQ== Date: Thu, 30 Apr 2026 15:37:17 +0000 To: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> From: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu Message-ID: <871pfw4fyq.fsf@HIDDEN> In-Reply-To: <87wlxpjzyr.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <87wlxpjzyr.fsf@HIDDEN> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: be76df75b76528f0480dfe3883f7ea4d4f83d15d 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: 80927 Cc: 80927 <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 (-) =C3=93scar Fuentes <oscarfv@HIDDEN> writes: > Pip Cet <pipcet@HIDDEN> writes: > >> Okay, that menu is too large for the X server to deal with it. I >> investigated a little, and came up with these two patches: >> >> The first one appears to be a simple oversight which resulted, at least >> here, in duplicate font families being reported. On my system, the menu >> height was over 29000 pixels, which is very close to the limit. >> Correctly filtering the duplicates helps reduce that number somewhat. >> >> However, I still don't think the menu is very useful: we should do the >> same thing we do for buffer lists and split the menu. The second patch, >> which still needs a lot of work, does that. >> >> I think the menu entries should be sorted alphabetically, but maybe >> that's just me. > > Thanks Pip. After applying both patches the exit is gone. Okay, that's a good data point. > But something weird happens: hovering with the mouse over the "Font > families" menu updates the submenu with the fonts, as expected, but > after a few seconds of doing this the menu no longer highlights the item > under the cursor and the submenu does not update. Then if I move the > cursor to the submenu, at first it works as expected highlighting the > entry under the cursor until it stops doing so. Then if the cursor moves > to the "Font families" menu this works again for a while, etc. > > I don't know if this is related to your change or something else. > > [nevermind: I reproduced the problem with other menus. The larger the > menu, the sooner it happens.] IIRC, X popups/menus interact nontrivially with GC. Is this on the igc3 branch or on master or both? Can you try triggering a background timer to call garbage-collect or igc-collect while the menu is open to see whether that coincides with the appearance of the problem? > Another data point: > > $ fc-list | wc > 2701 21060 367477 > $ fc-list | grep \/noto\/Noto | wc > 2460 20011 346016 > > The Noto* fonts were automatically installed, possibly as part of KDE or > LibreOffice, so maybe having so many fonts is not too rare. IIRC time I think most Linux machines (both GNU/Linux and Android) install the Noto fonts (some of which aren't available in the preferred form for editing, so they're not Free Software or Open Source), so we should probably deal with that situation. > ago I removed most of those Noto fonts but they came back on some > update. Adding the rest of the fonts, which includes several dozens I > installed, are just enough to exceed the threshold that causes this > issue. So that sounds like we're on the right track there. Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 30 Apr 2026 05:43:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 01:43:09 2026 Received: from localhost ([127.0.0.1]:51110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wIKB3-0007hl-90 for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 01:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58510) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wIKB0-0007h4-Ul for 80927 <at> debbugs.gnu.org; Thu, 30 Apr 2026 01:43: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 <eliz@HIDDEN>) id 1wIKAs-0001NH-Ul; Thu, 30 Apr 2026 01:43:00 -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=wOSwBFUJDqjOAZ6Nlcc5qVdqC+Uj0Eu/scNa1xm4+Ck=; b=cAObhsysx/c/dW4FcLZV eIf8Fn2mpyGaR5D8my/+K4vaLMg0IZxEAhysTfiXVu7xd44oolTMLbEiygPGz8EwQjt5qwrsFXUzZ 9JfXaXo6TEjWpWg3z2TvbYHr7e3K/bFifzuZ9Ta9LyGzDudWQwjRNpzzo4Fbzkl4Zjb76a8NKBq5n GnjE47ThP7k5u/mSbEvmVRlcKcn3JQ5cnOpeiOloszH2+lvOUdN9SeDYOe0iGemJihDqZDu5jlT/3 /zN288zeYG7hhUg9vEMkResvTXrALrdZkxh5ijdpRGapfKh5wANBcJGf4nv02/605irSLHWPIi2pq H8Rq/cJh2K14Rw==; Date: Thu, 30 Apr 2026 08:42:55 +0300 Message-Id: <86bjf13sww.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?Q?=C3=93scar?= Fuentes <oscarfv@HIDDEN> In-Reply-To: <87wlxpjzyr.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> <87wlxpjzyr.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: 80927 Cc: pipcet@HIDDEN, 80927 <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 (---) > Cc: 80927 <at> debbugs.gnu.org > Date: Wed, 29 Apr 2026 22:03:56 +0200 > From: Óscar Fuentes via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > But something weird happens: hovering with the mouse over the "Font > families" menu updates the submenu with the fonts, as expected, but > after a few seconds of doing this the menu no longer highlights the item > under the cursor and the submenu does not update. Then if I move the > cursor to the submenu, at first it works as expected highlighting the > entry under the cursor until it stops doing so. Then if the cursor moves > to the "Font families" menu this works again for a while, etc. > > I don't know if this is related to your change or something else. > > [nevermind: I reproduced the problem with other menus. The larger the > menu, the sooner it happens.] This sounds like some bug in Lucid menus, not in Emacs.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 30 Apr 2026 05:32:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 01:32:34 2026 Received: from localhost ([127.0.0.1]:50987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wIK0n-0006NV-3K for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 01:32:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59612) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wIK0l-0006Mq-95 for 80927 <at> debbugs.gnu.org; Thu, 30 Apr 2026 01:32:31 -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 1wIK0f-0008K1-R2; Thu, 30 Apr 2026 01:32:25 -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=xxUYnW3QHEFaxU3JT2E+W5p0avSfpFQKm7jXy/UKHKg=; b=FfUTvkO9P4gu iX5QFd22Q274ccXpsf4Jh+QzeP8loZDcIY14Xhi91wAgEyMksF6I8G6olbnqJqja3lfb+3H+v4OK1 sLHZC5FYECNx75V1hp5mSp82b8a5mQx2jTWDKvCpy5giROveJD1Gm2MgjvzmcM8aA8FCRS+XY9QPP JadzzUJRtUkuEWFcmo/kJ8Ya65Wu0xUZlfm5lx39ekRUmnOeVZ3uTfilz6TwCsE1ZwsZptKW3yzCE v0/b62N21ZUaX3Vo8UgAS8+XnohAe+phBdNMkpkNxri+k9PzvFGZhVq0gIYX6/FRoeWHcl8O0iNy4 dd6tcSVmV2K6ISwPLuuCmw==; Date: Thu, 30 Apr 2026 08:31:46 +0300 Message-Id: <86ecjx3tfh.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Pip Cet <pipcet@HIDDEN> In-Reply-To: <877bpp4lpk.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80927 Cc: oscarfv@HIDDEN, 80927 <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 (---) > Cc: 80927 <at> debbugs.gnu.org > Date: Wed, 29 Apr 2026 19:20:53 +0000 > From: Pip Cet via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > * src/font.c (Ffont_family_list): Use Fmember on list of strings, not > Fmemq. Check entire list. This doesn't describe the change accurately: Fmember is used on a different list that Fmemq, so "not Fmemq" is somewhat misleading. Also, please remember our convention of leaving 2 spaces between sentences.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 30 Apr 2026 05:28:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 30 01:28:45 2026
Received: from localhost ([127.0.0.1]:50946 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wIJx6-0005y0-Sn
for submit <at> debbugs.gnu.org; Thu, 30 Apr 2026 01:28:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48580)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wIJx5-0005xX-4I
for 80927 <at> debbugs.gnu.org; Thu, 30 Apr 2026 01:28:43 -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 1wIJwy-0007ix-NS; Thu, 30 Apr 2026 01:28:36 -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=2JKbEkpIWmlfsglfgve67b/tSyj9X+8EFOgvSK/ZbzI=; b=idHLsHS3aL/PIIYr9WFT
yy53CRoTww4Ye9VpXq7541VURQgBSp4yyVI6GyUUX9AdF2B43cYl9Hlsht5ixD1P6PNYQXyXhWQCf
Y6MxtM0fYwN2jMpVIkPfW6QmYjW4V2hdYdqG83oWmMYORn7ayYpCbaIP44HgNM6XAMs58XgiwH26/
5hO5W+LwmOSnG1EV+49XFjd/P9/SJ3oEaIxLezuDNjFZpXXC0hfbdTlKKdsj5O2x6K3Y29qeYbNkY
WkKs8aZXlBRTnU/R9bY/IBkeX2XZ5TwRpNrFrBtjsgWqW30us+1eP6kAUo/02f2wSCASlusxPhyLM
le6YIzWnSftuNQ==;
Date: Thu, 30 Apr 2026 08:28:33 +0300
Message-Id: <86fr4d3tku.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pip Cet <pipcet@HIDDEN>
In-Reply-To: <877bpp4lpk.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN>
<87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN>
<874iktlory.fsf@HIDDEN> <877bpp4lpk.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: 80927
Cc: oscarfv@HIDDEN, 80927 <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 (---)
> Cc: 80927 <at> debbugs.gnu.org
> Date: Wed, 29 Apr 2026 19:20:53 +0000
> From: Pip Cet via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>
> Óscar Fuentes <oscarfv@HIDDEN> writes:
>
> > (gdb) p *ws
> > $1 = {w = 0x555556087930, window = 20971880, pixmap = 20971881, x = 0, y = 0, width = 268, height = 40838, label_width = 241, max_rest_width = 25, button_width = 0,
> > xft_draw = 0x0}
> > (gdb)
>
> Okay, that menu is too large for the X server to deal with it.
Agreed.
(Btw, our .gdbinit puts a breakpoint on x_error_quitter, which was
supposed to break in this case. I'm guessing Óscar doesn't run GDB in
a way that it reads src/.gdbinit? If so, this is a mistake, one
should almost always let GDB load that file when debugging Emacs.)
> Lisp_Object val = driver_list->driver->list_family (f);
> - Lisp_Object tail = list;
>
> for (; CONSP (val); val = XCDR (val))
> - if (NILP (Fmemq (XCAR (val), tail))
> + if (NILP (Fmember (SYMBOL_NAME (XCAR (val)), list))
> && SYMBOLP (XCAR (val)))
You are saying that some font families appear multiple times, as
symbols, in the list returned by the font driver's list_family method?
If so, I expect the above change to slow down font-family-list quite a
bit. Could we perhaps avoid that by keeping the memq comparison, but
augmenting that by not adding duplicates, using something similar to
delete-dups (just on C level)?
> However, I still don't think the menu is very useful: we should do the
> same thing we do for buffer lists and split the menu. The second patch,
> which still needs a lot of work, does that.
Yes, I think we should definitely do that. But IMO the cutoff value
for how many fonts to show on a single submenu should perhaps be
dynamically computed taking the frame height into consideration.
> I think the menu entries should be sorted alphabetically, but maybe
> that's just me.
Not sure about that. Sorting by foundry and then by family sounds a
better way. Also, fonts like NNxMM, where both NN and MM are numbers
might require sorting in numerical order?
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 20:04:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 16:04:11 2026 Received: from localhost ([127.0.0.1]:47004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wIB8l-0008LN-EH for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 16:04:11 -0400 Received: from mail.eclipso.de ([217.69.254.104]:39404) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>) id 1wIB8e-0008Jk-Rv for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 16:04:09 -0400 X-ESMTP-Authenticated-User: 000D6BEA From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail; t=1777493037; bh=qz/mHKOOK4mbJHRyz9MUXSYjOuo3eL5RjyT2LS7EH3I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ptQEFkpSbbMaz1jWzQR7eP/3ch5CIeZ4N7upasGCKzbMZIhcV75hyRBUkGHCXD2oX 8tnyNkjMfoCggJcq+/+jJmCIetNDPFgmWIq7RtHok6ARQOzD2lh7PpEr7wuRcrKIBc z/ZUdlaJs2CveK3di1gVceYHFsFlgyBmPvMUivxsePxW2ox/2GdR9JdyrON4EPUv1d 2Gehrw4LfMFw4cJV3ecF+zoUaTbVWdQfHKKHEsjoxFq36Uxm2mXCerturMPzOaTkVL cPy5mjIDmLfnigYgLerZfVezeu7Ak1aHUfBTOjS3nNhA4hxlpradUk+QoKt1EWj/li sAcvWHbLkyH6Q== To: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu In-Reply-To: <877bpp4lpk.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN> <874iktlory.fsf@HIDDEN> <877bpp4lpk.fsf@HIDDEN> Date: Wed, 29 Apr 2026 22:03:56 +0200 Message-ID: <87wlxpjzyr.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 80927 Cc: 80927 <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 (-) Pip Cet <pipcet@HIDDEN> writes: > Okay, that menu is too large for the X server to deal with it. I > investigated a little, and came up with these two patches: > > The first one appears to be a simple oversight which resulted, at least > here, in duplicate font families being reported. On my system, the menu > height was over 29000 pixels, which is very close to the limit. > Correctly filtering the duplicates helps reduce that number somewhat. > > However, I still don't think the menu is very useful: we should do the > same thing we do for buffer lists and split the menu. The second patch, > which still needs a lot of work, does that. > > I think the menu entries should be sorted alphabetically, but maybe > that's just me. Thanks Pip. After applying both patches the exit is gone. But something weird happens: hovering with the mouse over the "Font families" menu updates the submenu with the fonts, as expected, but after a few seconds of doing this the menu no longer highlights the item under the cursor and the submenu does not update. Then if I move the cursor to the submenu, at first it works as expected highlighting the entry under the cursor until it stops doing so. Then if the cursor moves to the "Font families" menu this works again for a while, etc. I don't know if this is related to your change or something else. [nevermind: I reproduced the problem with other menus. The larger the menu, the sooner it happens.] Another data point: $ fc-list | wc 2701 21060 367477 $ fc-list | grep \/noto\/Noto | wc 2460 20011 346016 The Noto* fonts were automatically installed, possibly as part of KDE or LibreOffice, so maybe having so many fonts is not too rare. IIRC time ago I removed most of those Noto fonts but they came back on some update. Adding the rest of the fonts, which includes several dozens I installed, are just enough to exceed the threshold that causes this issue.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 19:21:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 15:21:05 2026
Received: from localhost ([127.0.0.1]:46880 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wIAT2-0003nQ-Pd
for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 15:21:05 -0400
Received: from mail-43102.protonmail.ch ([185.70.43.102]:11599)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <pipcet@HIDDEN>)
id 1wIASz-0003ls-PN
for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 15:21:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail3; t=1777490454; x=1777749654;
bh=HeLZMNdJxpWg76nhu6L0hsEkR8+BLJiKzvxPDS3JUR4=;
h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
Message-ID:BIMI-Selector;
b=YyDjVDJgQco5yu1HWbDt94nQACUaNgLs5KXuFeJ7Gs6A89iuFhddHrd3G4lLGcepC
6ST8xfWISGsbiFkiliU33yZ11oruAm0IFsPiDvPb0yDBWwJ2qHX4ctq1ojUuPHXGW0
yzP5hBxkk5DzNC0PZZnwy4oT/KShk4o7qmmUgAhJPld45pbUiW/RbIwhkF5Hjg27KZ
dY6COqMwA6epORblogLpwS71zZ15s9UvQNFC/vtX7fRTEwTpicdutKpmMu3yUEIWnY
XZmX637We2bDYb1Db1dNgZw/BnUXpp2PFnQoMrLKoy1W9kB9iMuadnapEvBbTBvafN
lrC5q/cxC/9JA==
Date: Wed, 29 Apr 2026 19:20:53 +0000
To: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
Message-ID: <877bpp4lpk.fsf@HIDDEN>
In-Reply-To: <874iktlory.fsf@HIDDEN>
References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN>
<87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN>
<874iktlory.fsf@HIDDEN>
Feedback-ID: 112775352:user:proton
X-Pm-Message-ID: c9969255aaf13e1fc627cd4a8564c7ba188e944f
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: 80927
Cc: 80927 <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 (-)
=C3=93scar Fuentes <oscarfv@HIDDEN> writes:
> Pip Cet <pipcet@HIDDEN> writes:
>
>> =C3=93scar Fuentes <oscarfv@HIDDEN> writes:
>>
>>> Pip Cet <pipcet@HIDDEN> writes:
>>> #12 0x0000555555839dee in create_pixmap_for_menu
>>> (ws=3D0x555558572fd0, mw=3Dmw@entry=3D0x555555d54230)
>>> at ../../emacs/lwlib/xlwmenu.c:1558
>>
>> Can you "print *ws" in this stack frame? It looks like your menu might
>> simply have been too large to fit a pixmap, maybe because there are so
>> many fonts.
>>
>> Setting
>>
>> ws->height =3D 40000
>>
>> in that function results in the same X error, I think.
>>
>> Pip
>
>
> (gdb) p *ws
> $1 =3D {w =3D 0x555556087930, window =3D 20971880, pixmap =3D 20971881, x=
=3D 0, y =3D 0, width =3D 268, height =3D 40838, label_width =3D 241, max_=
rest_width =3D 25, button_width =3D 0,
> xft_draw =3D 0x0}
> (gdb)
Okay, that menu is too large for the X server to deal with it. I
investigated a little, and came up with these two patches:
The first one appears to be a simple oversight which resulted, at least
here, in duplicate font families being reported. On my system, the menu
height was over 29000 pixels, which is very close to the limit.
Correctly filtering the duplicates helps reduce that number somewhat.
However, I still don't think the menu is very useful: we should do the
same thing we do for buffer lists and split the menu. The second patch,
which still needs a lot of work, does that.
I think the menu entries should be sorted alphabetically, but maybe
that's just me.
From e58225f72e2aa4037f02f5512e0feefe1b4f03f0 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Wed, 29 Apr 2026 19:06:02 +0000
Subject: [PATCH 1/2] Avoid duplicates in Ffont_family_list
* src/font.c (Ffont_family_list): Use Fmember on list of strings, not
Fmemq. Check entire list.
---
src/font.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/font.c b/src/font.c
index fed90084219..020ff1526ea 100644
--- a/src/font.c
+++ b/src/font.c
@@ -4453,10 +4453,9 @@ DEFUN ("font-family-list", Ffont_family_list, Sfont_=
family_list, 0, 1, 0,
if (driver_list->driver->list_family)
{
=09Lisp_Object val =3D driver_list->driver->list_family (f);
-=09Lisp_Object tail =3D list;
=20
=09for (; CONSP (val); val =3D XCDR (val))
-=09 if (NILP (Fmemq (XCAR (val), tail))
+=09 if (NILP (Fmember (SYMBOL_NAME (XCAR (val)), list))
=09 && SYMBOLP (XCAR (val)))
=09 list =3D Fcons (SYMBOL_NAME (XCAR (val)), list);
}
--=20
2.53.0
From 850a2e7c6333135aa97d016e5f664b85e4e77b23 Mon Sep 17 00:00:00 2001
From: Pip Cet <pipcet@HIDDEN>
Date: Wed, 29 Apr 2026 19:07:18 +0000
Subject: [PATCH 2/2] WIP! Split font menu just like we do for buffers
* lisp/mouse.el (mouse-font-menu-split): New function.
(mouse-generate-font-menu): Use it.
---
lisp/mouse.el | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 24fe57cdc50..6506fa9d005 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -3095,6 +3095,28 @@ mouse-generate-font-name-for-menu
" ")))
(string-trim-right name)))
=20
+
+(defun mouse-font-menu-split (title alist)
+ ;; If we have lots of buffers, divide them into groups of 20
+ ;; and make a pane (or submenu) for each one.
+ (if (> (length alist) (/ (* mouse-buffer-menu-maxlen 3) 2))
+ (let ((alist alist) sublists next
+=09 (i 1))
+=09(while alist
+=09 ;; Pull off the next mouse-buffer-menu-maxlen buffers
+=09 ;; and make them the next element of sublist.
+=09 (setq next (nthcdr mouse-buffer-menu-maxlen alist))
+=09 (if next
+=09 (setcdr (nthcdr (1- mouse-buffer-menu-maxlen) alist)
+=09=09 nil))
+=09 (setq sublists (cons (cons (format "Fonts %d" i) alist)
+=09=09=09 sublists))
+=09 (setq i (1+ i))
+=09 (setq alist next))
+=09(nreverse sublists))
+ ;; Few buffers--put them all in one pane.
+ (list (cons title alist))))
+
(defun mouse-generate-font-menu ()
"Return a list of menu panes for each font family."
(let ((families (font-family-list))
@@ -3112,7 +3134,8 @@ mouse-generate-font-menu
(mouse-generate-font-name-for-m=
enu font))
(font-xlfd-name font)))))))
(setq panes (nconc panes (list pane))))))
- panes))
+ (cons "Font families"
+ (mouse-font-menu-split "Font families" panes))))
=20
(defun mouse-select-font ()
"Prompt for a font name, using `x-popup-menu', and return it."
--=20
2.53.0
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 16:22:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 12:22:53 2026
Received: from localhost ([127.0.0.1]:45585 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wI7ga-0005jp-G8
for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 12:22:53 -0400
Received: from mail.eclipso.de ([217.69.254.104]:44194)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>)
id 1wI7gX-0005j2-7n
for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 12:22:50 -0400
X-ESMTP-Authenticated-User: 000D6BEA
From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail;
t=1777479762; bh=m+zlywd74Qyzn3QKw6RjHEXAmZbvtIWp1r8R5uqnK1M=;
h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
b=I5kFRVUeUj4XrM1cdglmueVM55pfF3lc/JK3BjcosK36Pw7nHNBSg5YEA7Q0QWS+t
Eh1cb4BxXX7OZaYK4a/arXKaaIdVqlhoOJ4PvNtwBN7VmOD96Vxqh2HSmf6VC6/rDr
urjtbPx67kuEERBfGAIFOIHZ/BIiyXTCLVizGJ+PCY0RHS9nHuRDEpE1UTkXNerkD9
fF0i5cBrmjUQU9PXmQ2RnZ+diHRuhv3VmNNNmqJ9wk5fwH2kNzpU9oS6JzGtj3HfcT
hAD9DCnHZXwfj40m2WiiphTFsbJ9THscCR/7KqtCeO/U2G2CozKTdRqPrSyz1MqxlC
32XEguPQCSOAw==
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
In-Reply-To: <87cxzh4u6l.fsf@HIDDEN>
References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN>
<87jytplq4b.fsf@HIDDEN> <87cxzh4u6l.fsf@HIDDEN>
Date: Wed, 29 Apr 2026 18:22:41 +0200
Message-ID: <874iktlory.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: -0.7 (/)
X-Debbugs-Envelope-To: 80927
Cc: 80927 <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 (-)
Pip Cet <pipcet@HIDDEN> writes:
> =C3=93scar Fuentes <oscarfv@HIDDEN> writes:
>
>> Pip Cet <pipcet@HIDDEN> writes:
>> #12 0x0000555555839dee in create_pixmap_for_menu
>> (ws=3D0x555558572fd0, mw=3Dmw@entry=3D0x555555d54230)
>> at ../../emacs/lwlib/xlwmenu.c:1558
>
> Can you "print *ws" in this stack frame? It looks like your menu might
> simply have been too large to fit a pixmap, maybe because there are so
> many fonts.
>
> Setting
>
> ws->height =3D 40000
>
> in that function results in the same X error, I think.
>
> Pip
(gdb) p *ws
$1 =3D {w =3D 0x555556087930, window =3D 20971880, pixmap =3D 20971881, x =
=3D 0, y =3D 0, width =3D 268, height =3D 40838, label_width =3D 241, max_r=
est_width =3D 25, button_width =3D 0,=20
xft_draw =3D 0x0}
(gdb)=20
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 16:18:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 12:18:00 2026 Received: from localhost ([127.0.0.1]:45497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI7br-00059L-Ph for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 12:18:00 -0400 Received: from mail-24417.protonmail.ch ([109.224.244.17]:49805) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>) id 1wI7bp-000581-Ih for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 12:17:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1777479470; x=1777738670; bh=6KG0hyKywQcZFwcezi75wfv8evfDOF1w6fg286wRIuI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=KK6fzF6zNuYCdQ6Pxcv4LlITLu3wq8znlDXlRC8sepENLYX10G9V0EZym2k3BHAhi UfSF/FNCh55lmpYGbe6YoADZxLIuhEvvRcCDyu1jRQTXsxBxiu/nBNrzRYFBRO/Ri3 ZQBkwDczVc2hrpDRuswQEZx4dMap9ig7wpjJ2yZY9G+9VwDOrL2rMNmHBmScUuBNvT H5o+bJB2mHmoVhmTXv6WLt80Z4t05AvmBwybftHnMsczFTh0QhGTXQ52LdsLDGy9/D 4gLzRHvZYQ8xyg1/eXriRE8oiiJlWtcO7mTrZQ/VnUJSwSLAa69DkXp594VrFOor+C xs5PTAgcj2hzw== Date: Wed, 29 Apr 2026 16:17:49 +0000 To: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> From: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu Message-ID: <87cxzh4u6l.fsf@HIDDEN> In-Reply-To: <87jytplq4b.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 2743168abdb440db6bcf6e256d3f6ed30e0f6f26 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: 80927 Cc: 80927 <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 (-) =C3=93scar Fuentes <oscarfv@HIDDEN> writes: > Pip Cet <pipcet@HIDDEN> writes: > #12 0x0000555555839dee in create_pixmap_for_menu > (ws=3D0x555558572fd0, mw=3Dmw@entry=3D0x555555d54230) > at ../../emacs/lwlib/xlwmenu.c:1558 Can you "print *ws" in this stack frame? It looks like your menu might simply have been too large to fit a pixmap, maybe because there are so many fonts. Setting ws->height =3D 40000 in that function results in the same X error, I think. Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 16:15:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 12:15:09 2026 Received: from localhost ([127.0.0.1]:45454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI7Z4-0004eW-JS for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 12:15:09 -0400 Received: from mail.eclipso.de ([217.69.254.104]:52748) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>) id 1wI7Yz-0004cK-0P for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 12:15:03 -0400 X-ESMTP-Authenticated-User: 000D6BEA From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail; t=1777479293; bh=GHbuhIe1Oi+yf3wE1/qn8HFDhUiWapji20gWGgxBN3g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=AFPVYn7Qj/if5dXGmap9F0mH6vvAHFgtNccHAqqtIsxlEcK4TvZBFJDecLMYQXcs7 IAfHkxDuvgHZmL2QhM164ITR4GKwg5AGKBWWBjK/lOOX+nO6bbJD06d1+ab1TgMLVM VwalT0awL7aiJ/xrekfZZHeyKP4nglC8itc5y6TAu3RLvSEYzEUAiNd4uX2MNe0HLF O7CaR/MRhWl3zCg+J+dSvu6Bmh64eVfqsoRld4WrPZ9bJxrH97oA3oMu0pYNISZCnq SIkK6lYckkDg/rB9oOA0MLVlk+8TmVTCBAPbiHvBJhUyNswAIofWPwVa8cbchcLuQ6 H6N2v9yHqxdiw== To: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu In-Reply-To: <87pl3h4z2v.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> Date: Wed, 29 Apr 2026 18:14:52 +0200 Message-ID: <878qa5lp4z.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 80927 Cc: 80927 <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 (-) Pip Cet <pipcet@HIDDEN> writes: >> $ gdb --args src/emacs -Q >> ... >> Reading symbols from src/emacs... >> (gdb) r >> Starting program: /home/oscar/dev/emacs/build/src/emacs -Q >> ... >> >> Go to menu Options -> Set default font... -> More fonts -> By family >> >> [Inferior 1 (process 1203642) exited with code 0106] > > Huh. That's weird. Can you set a breakpoint on _exit (with the initial > underscore, so "b _exit" in gdb) and provide a backtrace if it's hit? If > that doesn't work, try "catch syscall exit" and "catch syscall > exit_group" in gdb. Pip, the same recipe on igc3 causes an infinite loop. That's actually how I discovered the problem, then checked master.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 15:56:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 11:56:19 2026 Received: from localhost ([127.0.0.1]:45413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI7Gs-0002aa-D1 for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 11:56:18 -0400 Received: from mail.eclipso.de ([217.69.254.104]:44080) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>) id 1wI7Gp-0002ZL-S3 for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 11:56:16 -0400 X-ESMTP-Authenticated-User: 000D6BEA From: =?utf-8?Q?=C3=93scar?= Fuentes <oscarfv@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail; t=1777478169; bh=FrXPyOMED1H5q6c1B4IWgbby4EYwqemX+RsCT5In5qs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=H9yDpVkvWcRBIk5u44z3zVZFALc9Ip9VJ+ScnNiqkqKaULaf5Amp6K6L8rolx984w /ynhVI+rjL9W32LT6dRg27agxgYo1/CeErUE0pADsmHfsGQXAQ2d25ZxEAJM3pqlc8 CDzkvC7sQpCPfs4KXFEvPgg3r6HxyAnBqlSYu5t/DLrWM4FNgruNIqi3pqmCITdj31 Oh3Q7AuwBSxLXvYBO5eaLnTNmRDbcf7jWHxcXoL14NCryhfERNk+5CAxBrZg6N+0/T R6W7Gr71Gjqj1qcI5NJfYodY2UreL1FOzWtprTY2kjtD7OE8Ge+50W1tEW1MtXpq+x s1Q4JYl83fb6Q== To: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu In-Reply-To: <87jytplq4b.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN> <87jytplq4b.fsf@HIDDEN> Date: Wed, 29 Apr 2026 17:56:08 +0200 Message-ID: <87cxzhlq07.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: -0.7 (/) X-Debbugs-Envelope-To: 80927 Cc: 80927 <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 (-) =C3=93scar Fuentes via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes: > This is KDE Plasma 6.4.3 Wayland, thus Emacs is running under XWayland. Correction: 6.6.3.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 15:53:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 11:53:52 2026
Received: from localhost ([127.0.0.1]:45394 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wI7EV-0002Hg-R6
for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 11:53:52 -0400
Received: from mail.eclipso.de ([217.69.254.104]:41302)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>)
id 1wI7ES-0002HI-I9
for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 11:53:50 -0400
X-ESMTP-Authenticated-User: 000D6BEA
From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail;
t=1777478021; bh=kO65P7O6/eOPZTfyNEN4pFy6mmD+C3ug4o0vdfYlwgs=;
h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
b=FjBXHJ6RnD3rd/ZVnDbbbBEVKnU3mGgzZS9GtjCygZJvi9Y5p02A+1qc9IyAT3com
F+aaO2CU0cz+bExvgOueLLF+kAj0Lvqipo4AHSnpKJA5/q+J9fZcxLV+H0k/iOnz81
q9VmD0HDwKlODPle7/mehd+oHI60HVOsyM3yKFwpWvBZUIFFSrc52mAW0trr4/sDpv
ous6AVGBp3VUqFJ6JoBATN09o9URRGgTrnEIeY+LSXf3ziDuDe9C8jhDvlCveobXeC
hM8/iFI0Df49A9GugSqX7YbRd6Mmc8a7hJTPFwf9QvY4fo7AGstRsqudoKEKwFqJAY
aj3DaaG0n1xkQ==
To: Pip Cet <pipcet@HIDDEN>
Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu
In-Reply-To: <87pl3h4z2v.fsf@HIDDEN>
References: <87o6j2klt6.fsf@HIDDEN> <87pl3h4z2v.fsf@HIDDEN>
Date: Wed, 29 Apr 2026 17:53:40 +0200
Message-ID: <87jytplq4b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80927
Cc: 80927 <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 (-)
Pip Cet <pipcet@HIDDEN> writes:
>> (gdb) r
>> Starting program: /home/oscar/dev/emacs/build/src/emacs -Q
>> ...
>>
>> Go to menu Options -> Set default font... -> More fonts -> By family
>>
>> [Inferior 1 (process 1203642) exited with code 0106]
>
> Huh. That's weird. Can you set a breakpoint on _exit (with the initial
> underscore, so "b _exit" in gdb) and provide a backtrace if it's hit? If
> that doesn't work, try "catch syscall exit" and "catch syscall
> exit_group" in gdb.
>
> Thanks!
>
> Pip
(gdb) b _exit
Breakpoint 1 at 0x4a1a0
(gdb) b __exit
Function "__exit" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) b exit
Breakpoint 2 at 0x485f0
(gdb) r
Starting program: /home/oscar/dev/emacs/build/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef9ff6c0 (LWP 1253493)]
[New Thread 0x7fffef06f6c0 (LWP 1253494)]
[New Thread 0x7fffe7fff6c0 (LWP 1253495)]
[New Thread 0x7fffee6df6c0 (LWP 1253496)]
Thread 1 "emacs" hit Breakpoint 2, __GI_exit (status=70) at ./stdlib/exit.c:147
warning: 147 ./stdlib/exit.c: No such file or directory
(gdb) bt
#0 __GI_exit (status=70) at ./stdlib/exit.c:147
#1 0x00005555555a28af in Fkill_emacs
(arg=arg@entry=0x11a, restart=restart@entry=0x0)
at ../../emacs/src/emacs.c:3085
#2 0x000055555559fa13 in delete_frame
(frame=0x555555c25e35, force=force@entry=0xe670)
at ../../emacs/src/frame.c:2832
#3 0x000055555569c197 in x_connection_closed
(dpy=dpy@entry=0x555555b886d0, error_message=error_message@entry=0x7fffffffd150 "X protocol error: BadAlloc (insufficient resources for operation) on protocol request 53\nSerial no: 9826\nFailing resource ID (if any): 0x1400167\nMinor code: 0\nThis is a bug! Please report this to bug"..., ioerror=ioerror@entry=false)
at ../../emacs/src/xterm.c:26896
#4 0x000055555569c730 in x_error_quitter
(display=display@entry=0x555555b886d0, event=event@entry=0x7fffffffd5f0)
at ../../emacs/src/xterm.c:27107
#5 0x000055555569c90b in x_error_handler
(display=0x555555b886d0, event=0x7fffffffd5f0)
at ../../emacs/src/xterm.c:27072
#6 0x00007ffff7b54040 in _XError () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#7 0x00007ffff7b50b71 in ??? () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#8 0x00007ffff7b50c1d in ??? () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#9 0x00007ffff7b51da8 in _XReply () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#10 0x00007ffff7b342fc in XGetGeometry ()
at /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x000055555583f761 in crxft_draw_create
(dpy=0x555555b886d0, drawable=20971880, visual=0x555555adecf0)
at ../../emacs/lwlib/lwlib-utils.c:225
#12 0x0000555555839dee in create_pixmap_for_menu
(ws=0x555558572fd0, mw=mw@entry=0x555555d54230)
at ../../emacs/lwlib/xlwmenu.c:1558
#13 0x000055555583a9cb in XlwMenuRealize
(w=0x555555d54230, valueMask=<optimized out>, attributes=<optimized out>)
at ../../emacs/lwlib/xlwmenu.c:2218
#14 0x00007ffff7cbf17b in ??? () at /usr/lib/x86_64-linux-gnu/libXt.so.6
#15 0x00007ffff7cbf30d in ??? () at /usr/lib/x86_64-linux-gnu/libXt.so.6
#16 0x00007ffff7cbf5d9 in XtRealizeWidget ()
at /usr/lib/x86_64-linux-gnu/libXt.so.6
#17 0x00007ffff7cc6c86 in _XtPopup () at /usr/lib/x86_64-linux-gnu/libXt.so.6
#18 0x00007ffff7cc6d90 in XtPopup () at /usr/lib/x86_64-linux-gnu/libXt.so.6
#19 0x000055555583d746 in pop_up_menu (mw=0x555555d54230, event=0x7fffffffde10)
at ../../emacs/lwlib/xlwmenu.c:2858
#20 Start
(params=<optimized out>, num_params=<optimized out>, w=0x555555d54230, ev=0x7fffffffde10) at ../../emacs/lwlib/xlwmenu.c:2507
#21 Start
(w=0x555555d54230, ev=0x7fffffffde10, params=<optimized out>, num_params=<optimized out>) at ../../emacs/lwlib/xlwmenu.c:2493
#22 0x00007ffff7cd78c3 in XtCallActionProc ()
at /usr/lib/x86_64-linux-gnu/libXt.so.6
#23 0x0000555555838820 in xlw_popup_menu
(widget=<optimized out>, event=<optimized out>)
at ../../emacs/lwlib/lwlib-Xlw.c:244
#24 0x0000555555837e7b in lw_popup_menu
(widget=widget@entry=0x555555bc5d30, event=event@entry=0x7fffffffde10)
at ../../emacs/lwlib/lwlib.c:975
#25 0x000055555562158f in create_and_show_popup_menu
(for_click=false, f=0x555555c25e30, first_wv=<optimized out>, x=<optimized out>, y=<optimized out>) at ../../emacs/src/xmenu.c:1856
#26 x_menu_show
(f=<optimized out>, x=<optimized out>, y=530, menuflags=0, title=<optimized out>, error_name=<optimized out>) at ../../emacs/src/xmenu.c:2092
#27 0x000055555561e879 in x_popup_menu_1
(position=0x7ffff0e63723, menu=<optimized out>)
at ../../emacs/src/menu.c:1414
#28 0x00007ffff08314ee in F6d6f7573652d73656c6563742d666f6e74_mouse_select_font_0
()
at /home/oscar/dev/emacs/build/src/../native-lisp/31.0.50-71a4c12c/preloaded/mouse-15f283fa-bf2c27b1.eln
#29 0x000055555576bef5 in Ffuncall (nargs=<optimized out>, args=0x7fffffffe0a0)
at ../../emacs/src/eval.c:3192
#30 0x00007ffff08d3815 in F6d656e752d7365742d666f6e74_menu_set_font_0 ()
at /home/oscar/dev/emacs/build/src/../native-lisp/31.0.50-71a4c12c/preloaded/menu-bar-4f46ea94-b56e3ac0.eln
#31 0x000055555576bef5 in Ffuncall (nargs=<optimized out>, args=0x7fffffffe2c8)
at ../../emacs/src/eval.c:3192
#32 0x000055555576407b in Ffuncall_interactively
(nargs=<optimized out>, args=<optimized out>)
at ../../emacs/src/callint.c:253
#33 0x000055555576bef5 in Ffuncall
(nargs=nargs@entry=2, args=args@entry=0x7fffffffe2c0)
at ../../emacs/src/eval.c:3192
#34 0x000055555576c428 in Fapply
(nargs=nargs@entry=3, args=args@entry=0x7fffffffe2c0)
at ../../emacs/src/eval.c:2802
#35 0x0000555555765a19 in Fcall_interactively
(function=0x2aaa9bae7680, record_flag=0x0, keys=0x7ffff18fb05d)
at ../../emacs/src/callint.c:345
#36 0x00007ffff0a25fcd in F636f6d6d616e642d65786563757465_command_execute_0 ()
at /home/oscar/dev/emacs/build/src/../native-lisp/31.0.50-71a4c12c/preloaded/simple-fab5b0cf-a4ed70fb.eln
#37 0x000055555576bef5 in Ffuncall
(nargs=nargs@entry=2, args=args@entry=0x7fffffffe490)
at ../../emacs/src/eval.c:3192
#38 0x00005555556ead07 in command_loop_1 () at ../../emacs/src/keyboard.c:1545
#39 0x0000555555766f74 in internal_condition_case
(bfun=bfun@entry=0x5555556ea910 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x5555556ddae0 <cmd_error>) at ../../emacs/src/eval.c:1693
#40 0x00005555556d58e6 in command_loop_2 (handlers=0x90)
at ../../emacs/src/keyboard.c:1163
#41 0x0000555555766ece in internal_catch
(tag=tag@entry=0x12ae0, func=func@entry=0x5555556d58c0 <command_loop_2>, arg=arg@entry=0x90) at ../../emacs/src/eval.c:1373
#42 0x00005555556d5883 in command_loop () at ../../emacs/src/keyboard.c:1141
#43 0x00005555556dd691 in recursive_edit_1 () at ../../emacs/src/keyboard.c:749
#44 0x00005555556dda0c in Frecursive_edit () at ../../emacs/src/keyboard.c:832
#45 0x00005555555abac3 in main (argc=2, argv=0x7fffffffe918)
at ../../emacs/src/emacs.c:2633
(gdb)
This is KDE Plasma 6.4.3 Wayland, thus Emacs is running under XWayland.
Then reproduced the recipe under X11, with the same backtrace. For that
I had to attach from a remote shell, because if I set the breakpoints
and run the recipe, the whole desktop freezes until I kill Emacs from a
remote shell or Linux console. Locally I'm running gdb from Konsole.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 14:49:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 10:49:20 2026 Received: from localhost ([127.0.0.1]:45109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI6E3-00052T-Do for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 10:49:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39058) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wI6E0-00051Y-MB for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 10:49:17 -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 1wI6Du-00054H-8d; Wed, 29 Apr 2026 10:49:10 -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=lVWkOAt2C/0CmvYcxID8xaLD3HE7u+Rsapl0/aDOqsk=; b=NYFCRY7FK5eNx3ESn9EN vh2Yls6miV53miwS1009uRhfksIYKoWsGU4Z/xogal45SSCEUT+Z9oqCnhx6xcHVe1hw/64DjO045 nk34Q9ky6U+BlTxg9/jAiAoU10k+i2N6IjDQnDegmQUTitb1Mf8BCu47ykXckcKEvMT93uyw/V7YX 2FjGyhLkIUXUTXrIjTKPHlnBbr3C+NIOMmJecRJJz7kOBH2H872etyiv7/R3EJKFL9SSLB3tya7Q/ 8R7c0jgr+GUAXmBk1F2LqApUmYxYu2HpFRO7l46mvKqUObeZyQIKGiVfD8ix5AS/cn69Mbtg8oY/g YIpU+AsGjvWT9A==; Date: Wed, 29 Apr 2026 17:48:36 +0300 Message-Id: <86pl3h4ybf.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?Q?=C3=93scar?= Fuentes <oscarfv@HIDDEN> In-Reply-To: <87o6j2klt6.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu References: <87o6j2klt6.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: 80927 Cc: 80927 <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, 29 Apr 2026 14:12:05 +0200 > From: Óscar Fuentes via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.18.4) of 2026-04-29 built on zen > Repository revision: 7de1d99d3a9f93b7e7c1cf05675f8ed480186368 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12401010 > System Description: Debian GNU/Linux forky/sid > > $ gdb --args src/emacs -Q > ... > Reading symbols from src/emacs... > (gdb) r > Starting program: /home/oscar/dev/emacs/build/src/emacs -Q > ... > > Go to menu Options -> Set default font... -> More fonts -> By family > > [Inferior 1 (process 1203642) exited with code 0106] Please repeat this with a breakpoint at 'exit' (and '_exit' or '__exit', if you can), and if these breakpoints break, show the C backtrace. IOW, we need to see the sequence of calls which leads to exit. Thanks.
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at 80927) by debbugs.gnu.org; 29 Apr 2026 14:32:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 10:32:19 2026 Received: from localhost ([127.0.0.1]:44903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI5xa-00032s-DW for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 10:32:18 -0400 Received: from mail-43103.protonmail.ch ([185.70.43.103]:31805) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <pipcet@HIDDEN>) id 1wI5xV-00031u-0c for 80927 <at> debbugs.gnu.org; Wed, 29 Apr 2026 10:32:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1777473126; x=1777732326; bh=Wp/Ix801mqzqHL5zAeMi4PRR6kpN+9KvKNmk8mFa6aM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=C4r6vPoRC7efYjsgxy8Wqf5a67dY5+5Noxw2plUjr4WfMwU5zHYIwLVhNWwOwi729 RMpQBvudVlTsgF+LNLqTLm4UpTvuRnEDqutU/CdUqq8HcyqB2UMA96x2gFRV1hJsdU 8EQ1ymy6h0TPEL3/KyRxfdP3SZKkMRUKxG9Xw8F2oiS/IjkQfOkNt7/qeXAz2vy5mH lzng2RemXWyd6hW0ty9oiQ2K6yyE688qAD2PXUivNjqtBJxtrL0ZaUwkx6f/N0b22p WXMi+IKCwu4nZ9vrgXB6kXaRcg9mbSjCFfX0lHesA6jyUFj/fkSTgMUYPHNzTudVMg K0xa23SpcPJvQ== Date: Wed, 29 Apr 2026 14:32:03 +0000 To: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> From: Pip Cet <pipcet@HIDDEN> Subject: Re: bug#80927: 31.0.50; Exits when setting default font with menu Message-ID: <87pl3h4z2v.fsf@HIDDEN> In-Reply-To: <87o6j2klt6.fsf@HIDDEN> References: <87o6j2klt6.fsf@HIDDEN> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 572d017044f4310e92002d6fc5493d356b16a735 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: 80927 Cc: 80927 <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 (-) =C3=93scar Fuentes via "Bug reports for GNU Emacs, the Swiss army knife of = text editors" <bug-gnu-emacs@HIDDEN> writes: > In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.18.4) of 2026-04-29 built on zen > Repository revision: 7de1d99d3a9f93b7e7c1cf05675f8ed480186368 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.1240101= 0 > System Description: Debian GNU/Linux forky/sid > > $ gdb --args src/emacs -Q > ... > Reading symbols from src/emacs... > (gdb) r > Starting program: /home/oscar/dev/emacs/build/src/emacs -Q > ... > > Go to menu Options -> Set default font... -> More fonts -> By family > > [Inferior 1 (process 1203642) exited with code 0106] Huh. That's weird. Can you set a breakpoint on _exit (with the initial underscore, so "b _exit" in gdb) and provide a backtrace if it's hit? If that doesn't work, try "catch syscall exit" and "catch syscall exit_group" in gdb. Thanks! Pip
bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.Received: (at submit) by debbugs.gnu.org; 29 Apr 2026 12:12:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 29 08:12:26 2026 Received: from localhost ([127.0.0.1]:42699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wI3mC-0002iI-UK for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 08:12:25 -0400 Received: from lists1p.gnu.org ([2001:470:142::17]:53030) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <oscarfv@HIDDEN>) id 1wI3mA-0002hN-Ql for submit <at> debbugs.gnu.org; Wed, 29 Apr 2026 08:12:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <oscarfv@HIDDEN>) id 1wI3m3-0003EN-ER for bug-gnu-emacs@HIDDEN; Wed, 29 Apr 2026 08:12:16 -0400 Received: from mail.eclipso.de ([217.69.254.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <oscarfv@HIDDEN>) id 1wI3m0-0007fU-Q0 for bug-gnu-emacs@HIDDEN; Wed, 29 Apr 2026 08:12:15 -0400 X-ESMTP-Authenticated-User: 000D6BEA From: =?utf-8?Q?=C3=93scar_Fuentes?= <oscarfv@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eclipso.de; s=mail; t=1777464726; bh=9W4qoq5+GvCTYN7UMo9Dc8H4eHhAvObHZuANUm1/fw4=; h=From:To:Subject:Date:From; b=f5Axv4BrGBHN87H9vkWBJ+MwHDT95HtvCNqPZFgo0cBfrbQl8uS1N2Bpo4vFf79na Nb8LSnQevv+llyey+fwUwlOKbsSglYAC5BPeZxr4OHqxTISK2R/LJR6RVgFwe2nwgX JfczyuQ7DngvAcnOjuligL1jfqbQW2n4zaU1QEjaXnITt6NWq7v5s6p7Yai8iRAH/F OE+ReYMcvMbjnKtnKYCfDWYxRr8rSwjyt+p1JJ0V4yDI1HhnaGi0UxoKrFo9VQd6zL GcZ8OBKu4Z3qBngrR3heilHC8aXW/tUqwAxniZb3YBcAWmayCsd9gBPH03HJbvWLw5 67UqFoy9fPHqg== To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; Exits when setting default font with menu X-Debbugs-Cc: Date: Wed, 29 Apr 2026 14:12:05 +0200 Message-ID: <87o6j2klt6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.69.254.104; envelope-from=oscarfv@HIDDEN; helo=mail.eclipso.de X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) 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.1 (/) In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.4) of 2026-04-29 built on zen Repository revision: 7de1d99d3a9f93b7e7c1cf05675f8ed480186368 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12401010 System Description: Debian GNU/Linux forky/sid $ gdb --args src/emacs -Q ... Reading symbols from src/emacs... (gdb) r Starting program: /home/oscar/dev/emacs/build/src/emacs -Q ... Go to menu Options -> Set default font... -> More fonts -> By family [Inferior 1 (process 1203642) exited with code 0106] In my system, "More fonts" only has "By family". Configured using: 'configure --with-native-compilation --with-tree-sitter --without-toolkit-scroll-bars --with-x-toolkit=lucid --with-modules --without-imagemagick 'CPPFLAGS=-Og -g3'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XAW3D XDBE XIM XINERAMA XINPUT2 XPM XRANDR LUCID ZLIB Important settings: value of $LANG: C locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-nonselected-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr compile comint ansi-osc ansi-color ring comp-run bytecomp byte-compile comp-common rx emacsbug lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils 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 system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 80510 12378) (symbols 48 6881 0) (strings 32 24121 2260) (string-bytes 1 802115) (vectors 16 14972) (vector-slots 8 184266 7640) (floats 8 34 1) (intervals 56 307 0) (buffers 1064 11))
Óscar Fuentes <oscarfv@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#80927; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.