GNU bug report logs - #80873
31.0.50; "C-h f" signals an error for font-setting-change-default-font

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

Package: emacs; Reported by: Eli Zaretskii <eliz@HIDDEN>; dated Tue, 21 Apr 2026 05:43:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 80873) by debbugs.gnu.org; 6 May 2026 11:32:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 06 07:32:32 2026
Received: from localhost ([127.0.0.1]:40555 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wKaUN-0007Lh-GM
	for submit <at> debbugs.gnu.org; Wed, 06 May 2026 07:32:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33326)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wKaUJ-0007DT-Cd
 for 80873 <at> debbugs.gnu.org; Wed, 06 May 2026 07:32: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 1wKaUD-000803-Od; Wed, 06 May 2026 07:32:17 -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=jTegCUWhP7SHn4UI3LPHtiVWIY1POdZU3is14UmQJiQ=; b=kHEdnVDyF4PLy63AD9gp
 0Cl1hxRHjWDC6HdYR7Fu7laZl4Nz0JRFZh9NPsVECzaohyemGuuxDFkIWhPvUuwn8SF+Axy7YzCzL
 lNumPaA2KrHw5PTMBkALwT6TfF+9g4KuuIV734Jeg6H0upxFooeg3/mEDmNzXsYRozPoSEyANineJ
 dc39w9WUJp74gM6yqQnWcLDBVhnvH5gYYPnDqc+Z0XHhdcoX47gg4dzrDnK5I3UhxSGFyZ1EMoOBW
 Rn4e4KSeIW9vOiFJmGX/PCcTrgr6v5DveeBGZzsDh0JYnawsponcZIXX6pT6F1Cv7NpEx/qVV6aVA
 H2PKLXu32+qYUA==;
Date: Wed, 06 May 2026 14:32:13 +0300
Message-Id: <86ecjoai4i.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvbjetha8p.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 05 May 2026 16:49:33 -0400)
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
References: <86bjfcg98e.fsf@HIDDEN> <jwvfr48zkzh.fsf-monnier+emacs@HIDDEN>
 <86mryebbnp.fsf@HIDDEN> <jwvbjetha8p.fsf-monnier+emacs@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80873
Cc: luangruo@HIDDEN, 80873 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: 80873 <at> debbugs.gnu.org,  luangruo@HIDDEN
> Date: Tue, 05 May 2026 16:49:33 -0400
>=20
> >> I can't reproduce it here because in my build `dynamic-setting` is
> >> preloaded, but can you try the patch below?
> > The error is gone with this patch,
>=20
> Thanks, I pushed (a variant of) the patch to `master`: regardless of the
> current bug report, I believe it's The Right Thing=E2=84=A2 to do anyway.

Thanks.

> > but now, after I type "C-h f font-setting-change-default-font RET",
> > featurep says dynamic-setting is loaded.  Is that intended?
>=20
> Not sure if it's intended, but it doesn't strike me as undesirable.
> It presumably depends on `help-enable-*autoload`.

It does.  If help-enable-*autoload are nil, I get "[No match]" when I
press RET.

> `help--symbol-completion-table` has code to try and avoid (auto)loading
> files in similar situations, so maybe it's indeed unintended.
> Can you show a backtrace of the load itself (e.g. with an appropriate
> `after-load-functions` that calls `debug` when loading that specific
> file)?

Below.

Debugger entered: nil
  (if (equal (file-name-nondirectory (file-name-sans-extension fn)) "dynami=
c-setting") (debug))
  my-debug("d:/gnu/git/emacs/trunk/lisp/dynamic-setting.elc")
  run-hook-with-args(my-debug "d:/gnu/git/emacs/trunk/lisp/dynamic-setting.=
elc")
  do-after-load-evaluation("d:/gnu/git/emacs/trunk/lisp/dynamic-setting.elc=
")
  load("dynamic-setting" noerror nomessage)
  help--load-prefixes((("font-setting-change-default-font" "dynamic-setting=
")))
  help--symbol-completion-table("font-setting-change-default-font" #f(compi=
led-function (f) #<bytecode -0x5d27df420b25408>) nil)
  try-completion("font-setting-change-default-font" help--symbol-completion=
-table #f(compiled-function (f) #<bytecode -0x5d27df420b25408>))
  completion-basic-try-completion("font-setting-change-default-font" help--=
symbol-completion-table #f(compiled-function (f) #<bytecode -0x5d27df420b25=
408>) 32)
  #f(compiled-function () #<bytecode -0x7daa36939427c88>)()
  funcall(#f(compiled-function () #<bytecode -0x7daa36939427c88>))
  (let nil (funcall '#f(compiled-function () #<bytecode -0x7daa36939427c88>=
)))
  eval((let nil (funcall '#f(compiled-function () #<bytecode -0x7daa3693942=
7c88>))))
  #f(compiled-function (style) #<bytecode 0x116f399729dbb5d>)(basic)
  #f(compiled-function (elt) #<bytecode -0x2c8047cb193b049>)(basic)
  mapc(#f(compiled-function (elt) #<bytecode -0x2c8047cb193b049>) (basic sh=
orthand substring partial-completion emacs22))
  seq-do(#f(compiled-function (elt) #<bytecode -0x2c8047cb193b049>) (basic =
shorthand substring partial-completion emacs22))
  seq-some(#f(compiled-function (style) #<bytecode 0x116f399729dbb5d>) (bas=
ic shorthand substring partial-completion emacs22))
  completion--nth-completion(1 "font-setting-change-default-font" help--sym=
bol-completion-table #f(compiled-function (f) #<bytecode -0x5d27df420b25408=
>) 32 (metadata (category . symbol-help)))
  completion-try-completion("font-setting-change-default-font" help--symbol=
-completion-table #f(compiled-function (f) #<bytecode -0x5d27df420b25408>) =
32 (metadata (category . symbol-help)))
  completion--do-completion(20 52 nil expect-exact)
  #f(compiled-function () #<bytecode -0xec22ef17d485ff>)()
  completion--complete-and-exit(20 52 exit-minibuffer #f(compiled-function =
() #<bytecode -0xec22ef17d485ff>))
  completion-complete-and-exit(20 52 exit-minibuffer)
  minibuffer-complete-and-exit(nil)
  funcall-interactively(minibuffer-complete-and-exit nil)
  call-interactively(minibuffer-complete-and-exit nil nil)
  command-execute(minibuffer-complete-and-exit)
  read-from-minibuffer("Describe function: " nil (keymap (10 . minibuffer-c=
omplete-and-exit) (13 . minibuffer-complete-and-exit) keymap (menu-bar keym=
ap (minibuf "Minibuf" keymap (tab menu-item "Complete" minibuffer-complete =
:help "Complete as far as possible") (space menu-item "Complete Word" minib=
uffer-complete-word :help "Complete at most one word") (63 menu-item "List =
Completions" minibuffer-completion-help :help "Display all possible complet=
ions") "Minibuf")) (M-down . minibuffer-next-completion) (M-up . minibuffer=
-previous-completion) (27 keymap (13 . minibuffer-choose-completion) (103 k=
eymap (27 keymap (99 . switch-to-completions))) (118 . switch-to-completion=
s)) (prior . switch-to-completions) (63 . minibuffer-completion-help) (13 .=
 minibuffer-completion-exit) (32 . minibuffer-complete-word) (backtab . min=
ibuffer-complete) (9 . minibuffer-complete) keymap (menu-bar keymap (minibu=
f "Minibuf" keymap (previous menu-item "Previous History Item" previous-his=
tory-element :help "Put previous minibuffer history element in the minibuff=
er") (next menu-item "Next History Item" next-history-element :help "Put ne=
xt minibuffer history element in the minibuffer") (isearch-backward menu-it=
em "Isearch History Backward" isearch-backward :help "Incrementally search =
minibuffer history backward") (isearch-forward menu-item "Isearch History F=
orward" isearch-forward :help "Incrementally search minibuffer history forw=
ard") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "=
Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursiv=
e-edit :help "Abort input and exit minibuffer") "Minibuf")) (24 keymap (dow=
n . minibuffer-complete-defaults) (up . minibuffer-complete-history)) (13 .=
 exit-minibuffer) (10 . exit-minibuffer) (7 . abort-minibuffers) (C-tab . f=
ile-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previo=
us-history-element) (up . previous-line-or-history-element) (prior . previo=
us-history-element) (XF86Forward . next-history-element) (down . next-line-=
or-history-element) (next . next-history-element) (27 keymap (60 . minibuff=
er-beginning-of-buffer) (114 . previous-matching-history-element) (115 . ne=
xt-matching-history-element) (112 . previous-history-element) (110 . next-h=
istory-element))) nil nil nil nil)
  completing-read-default("Describe function: " help--symbol-completion-tab=
le #f(compiled-function (f) #<bytecode -0x5d27df420b25408>) t nil nil nil n=
il)
  completing-read("Describe function: " help--symbol-completion-table #f(co=
mpiled-function (f) #<bytecode -0x5d27df420b25408>) t nil nil nil)
  help-fns--describe-function-or-command-prompt()
  call-interactively(describe-function nil nil)
  command-execute(describe-function)




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

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


Received: (at 80873) by debbugs.gnu.org; 5 May 2026 20:49:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 05 16:49:46 2026
Received: from localhost ([127.0.0.1]:60396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wKMi8-0006TB-8W
	for submit <at> debbugs.gnu.org; Tue, 05 May 2026 16:49:45 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:4373)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1wKMi5-0006Ri-GX
 for 80873 <at> debbugs.gnu.org; Tue, 05 May 2026 16:49:42 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3FD0810013E;
 Tue,  5 May 2026 16:49:35 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1778014174;
 bh=qmaptIcfQaEuScgwP24jYAPr7HtARsbFD4aU8jgLPno=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=CUBZ0izPVGwFRamHrQcJgBmWf2Q3bmhy4QuR4HlMEJtDKV5Twdndb4ziFTq9ezk8q
 WH23olpmaG/biYonJIEIR12hD6qW/urgCQoGNEgVk4r5G6sNruqERgRH9GhpNBayGY
 NgGg6nXYKAmWdfw1KdQpgxSp1CN0uLtaDTm8ncXgR37nljTQTvUchW70RaW4qEkl8O
 U71S2XdRX2Z/GPzBL1mvd3DqbcEjh1xxkIRbYEsDW4Doqv4YYE2QL7CXvUZuBE61gm
 MgV/VQ7dNlbsbZ2xztHRrlvqMx+lcOT2DbSSqREZQqpUL5dX4eiriw3Av6Q7XqGDHF
 D+T8cYXlZvPVw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 27B9C10002E;
 Tue,  5 May 2026 16:49:34 -0400 (EDT)
Received: from alfajor (modemcable233.8-179-173.mc.videotron.ca
 [173.179.8.233])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F2EBE1205D2;
 Tue,  5 May 2026 16:49:33 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
In-Reply-To: <86mryebbnp.fsf@HIDDEN>
Message-ID: <jwvbjetha8p.fsf-monnier+emacs@HIDDEN>
References: <86bjfcg98e.fsf@HIDDEN> <jwvfr48zkzh.fsf-monnier+emacs@HIDDEN>
 <86mryebbnp.fsf@HIDDEN>
Date: Tue, 05 May 2026 16:49:33 -0400
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-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.170 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80873
Cc: luangruo@HIDDEN, 80873 <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 (---)

>> I can't reproduce it here because in my build `dynamic-setting` is
>> preloaded, but can you try the patch below?
> The error is gone with this patch,

Thanks, I pushed (a variant of) the patch to `master`: regardless of the
current bug report, I believe it's The Right Thing=E2=84=A2 to do anyway.

> but now, after I type "C-h f font-setting-change-default-font RET",
> featurep says dynamic-setting is loaded.  Is that intended?

Not sure if it's intended, but it doesn't strike me as undesirable.
It presumably depends on `help-enable-*autoload`.

`help--symbol-completion-table` has code to try and avoid (auto)loading
files in similar situations, so maybe it's indeed unintended.
Can you show a backtrace of the load itself (e.g. with an appropriate
`after-load-functions` that calls `debug` when loading that specific
file)?



=3D=3D=3D Stefan





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

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


Received: (at 80873) by debbugs.gnu.org; 5 May 2026 06:42:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 05 02:42:17 2026
Received: from localhost ([127.0.0.1]:53937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wK9U1-0000Yx-9d
	for submit <at> debbugs.gnu.org; Tue, 05 May 2026 02:42:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58770)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wK9Ty-0000YI-Na
 for 80873 <at> debbugs.gnu.org; Tue, 05 May 2026 02:42:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wK9Ts-0001dM-UJ; Tue, 05 May 2026 02:42:08 -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=eD5gTgEo5TacS17inP8Wtn8eWjIxTVJWFyg2upGnDuw=; b=InnH1jxZMCfmdkjEPaGX
 ajM+bVOAL79bZj+DnjXqBFcrC6lM6A/9Qkk+es3h9P0ZBchrBu103tvvVJ/8wVA8T4gt5v8SqjaMs
 nsS3xtpnRns8XpPz7W2bFETvweFi+RoZWzCxIXwuZwJAjfFZWaH4i5+XKny9rq0plQlnaruvZBCc9
 1kR2CfrebJaQjKa/9JDmp3NctEMul4xvM2YpzCcBqgZwsoR6zizMr0goblIdD6jo14pR3njRQwVjq
 ENH6/ENy3vjRyosGiGftTbzfjvYmMYsSdOXFj0OFK8/9WcJTuEGPzw6TigQVguUEw/PBVVQHy8SFP
 oZ1NMd0ImQa+gw==;
Date: Tue, 05 May 2026 09:42:02 +0300
Message-Id: <86mryebbnp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvfr48zkzh.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Sun, 03 May 2026 09:35:03 -0400)
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
References: <86bjfcg98e.fsf@HIDDEN> <jwvfr48zkzh.fsf-monnier+emacs@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: 80873
Cc: luangruo@HIDDEN, 80873 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: 80873 <at> debbugs.gnu.org,  Po Lu <luangruo@HIDDEN>
> Date: Sun, 03 May 2026 09:35:03 -0400
> 
> Eli Zaretskii [2026-04-21 08:42:25] wrote:
> 
> > From: eliz@HIDDEN
> > --text follows this line--
> > To reproduce:
> >
> >   emacs -Q
> >   C-h f font-setting-change-default-font RET
> >
> > This signals an error:
> >
> >   user-error: Symbol’s function definition is void: font-setting-change-default-font
> 
> I can't reproduce it here because in my build `dynamic-setting` is
> preloaded, but can you try the patch below?

The error is gone with this patch, but now, after I type "C-h f
font-setting-change-default-font RET", featurep says dynamic-setting
is loaded.  Is that intended?




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

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


Received: (at 80873) by debbugs.gnu.org; 3 May 2026 13:35:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 03 09:35:26 2026
Received: from localhost ([127.0.0.1]:55830 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJWyi-0002ba-Jt
	for submit <at> debbugs.gnu.org; Sun, 03 May 2026 09:35:26 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44140)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1wJWyd-0002ab-At
 for 80873 <at> debbugs.gnu.org; Sun, 03 May 2026 09:35:21 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7CD2B1001FB;
 Sun,  3 May 2026 09:35:12 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1777815311;
 bh=Won2eJAjkvNTk74Dg7dk8CkKbod1fG4FRUGK+zQ3/H8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=DEgHiZ1tnDsS7gHBZN8evnbKu2LdC7kMrlHCTfxnr5gROxg4dbC31czEPsgk/4m5r
 G3DaAHMfShDpuKHpPIPsfw5EO6//9J3g3qzBc6RIAaW/m/cnYwFlkjIcXS61l9Hm5X
 +FQUVlrBeivxIp/H0CEn2lIVIRX1nj//7f/1jeu0RFEa/PfuOteF8GmnKOxQgmXoDV
 dcW0PLQt3g5H5Ko9OC+Nk1+SosHLligp77g9+bwFOm/mSOXZSlB3pMK6RsAru17C7M
 f4kbnacRHYecS8ljhEpTK5hvfMW5rRovDkR9sE+zFtk10iiRaEHWw126YZJe5PC2K+
 zeRDrkjGi717w==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6C7D01000BC;
 Sun,  3 May 2026 09:35:11 -0400 (EDT)
Received: from pastel (104-195-197-162.cpe.teksavvy.com [104.195.197.162])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 17379120415;
 Sun,  3 May 2026 09:35:11 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
In-Reply-To: <86bjfcg98e.fsf@HIDDEN>
Message-ID: <jwvfr48zkzh.fsf-monnier+emacs@HIDDEN>
References: <86bjfcg98e.fsf@HIDDEN>
Date: Sun, 03 May 2026 09:35:03 -0400
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-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.166 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80873
Cc: Po Lu <luangruo@HIDDEN>, 80873 <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 (---)

Eli Zaretskii [2026-04-21 08:42:25] wrote:

> From: eliz@HIDDEN
> --text follows this line--
> To reproduce:
>
>   emacs -Q
>   C-h f font-setting-change-default-font RET
>
> This signals an error:
>
>   user-error: Symbol=E2=80=99s function definition is void: font-setting-=
change-default-font

I can't reproduce it here because in my build `dynamic-setting` is
preloaded, but can you try the patch below?


=3D=3D=3D Stefan


diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index f1ee109c87e..0cb59fc4abe 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -215,6 +215,7 @@ help--symbol-completion-table
           (help--load-prefixes prefixes))))
     (let ((prefix-completions
            (and help-enable-completion-autoload
+                (not (eq action 'lambda))
                 (mapcar #'intern (all-completions string definition-prefix=
es)))))
       (complete-with-action action obarray string
                             (if pred (lambda (sym)





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

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


Received: (at 80873) by debbugs.gnu.org; 2 May 2026 16:01:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 02 12:01:05 2026
Received: from localhost ([127.0.0.1]:46712 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJCm8-0007AX-QJ
	for submit <at> debbugs.gnu.org; Sat, 02 May 2026 12:01:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44404)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wJCm6-00078z-K7
 for 80873 <at> debbugs.gnu.org; Sat, 02 May 2026 12:01:03 -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 1wJCm0-0003ak-NG; Sat, 02 May 2026 12:00:56 -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=Zm4WDJ/O3/2cLeVuaLWwVsePcjttxE6AgLWDPV01a4g=; b=BzDBMK4Y5OCJH5tKWAWk
 IqvlrG18nz9ktYeRwDvVIsNUAuERLTLIwN6RIKE6Ln848TIur5LwaKzpRIR5s64oPmyieaE9IaiG1
 sSsvMJXZEIx6lLsZY0EdcL12lcsoMTjuvhvzX0WNGBzYgrsXnRryPLqVKC75H0Y/s0AHGhC85VBtr
 B3gQ30oA6d15S9PAX/0FvA3Hg/Ng6tCKx06Efe7ogAuPsMSGEfZDzLZgft8kJM1f0PvGtQ0MJ98PX
 FVNOz7l8Uem6rYRKXhLwYCmFWYHtQR/lNe512ektK9Xtg6dqgjdqdL+hpLZKyFux2L8fHfx2rmAIl
 cHGldL+44gmhKg==;
Date: Sat, 02 May 2026 19:00:52 +0300
Message-Id: <86ik9594y3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvlde1zvjn.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Sat, 02 May 2026 11:22:17 -0400)
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
References: <86bjfcg98e.fsf@HIDDEN> <86a4ui9lsm.fsf@HIDDEN>
 <jwvcxzd2978.fsf-monnier+emacs@HIDDEN> <86mryh97mo.fsf@HIDDEN>
 <jwvlde1zvjn.fsf-monnier+emacs@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: 80873
Cc: luangruo@HIDDEN, 80873 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: luangruo@HIDDEN,  80873 <at> debbugs.gnu.org
> Date: Sat, 02 May 2026 11:22:17 -0400
> 
> >> >> To reproduce:
> >> >> 
> >> >>   emacs -Q
> >> >>   C-h f font-setting-change-default-font RET
> >> >> 
> >> >> This signals an error:
> >> >> 
> >> >>   user-error: Symbol’s function definition is void: font-setting-change-default-font
> >> 
> >> That sounds about right.  We could maybe change the `C-h f` code so it
> >> catches the error and displays a *Help* buffer that basically says the
> >> same as the error, but in any case, this seems like a very minor issue.
> >
> > Can we do what happens when the symbol is not known to Emacs,
> > i.e. ring the bell and say "[No match]" when the user presses RET?
> > That's what I would expect to see in that case.
> 
> Ah, maybe we can do that without too much trouble.
> I'll take a look.

Thanks.




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

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


Received: (at 80873) by debbugs.gnu.org; 2 May 2026 15:22:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 02 11:22:29 2026
Received: from localhost ([127.0.0.1]:46635 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJCAn-0001jj-EL
	for submit <at> debbugs.gnu.org; Sat, 02 May 2026 11:22:29 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:4618)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1wJCAi-0001ii-Q1
 for 80873 <at> debbugs.gnu.org; Sat, 02 May 2026 11:22:27 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4B7EF1002F0;
 Sat,  2 May 2026 11:22:19 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1777735338;
 bh=izaR4TtrJifa/+bpkFLaykKNDDNb45P5AE92Jx4ZD68=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=nQZaZ9HK1Sa2pvfAs4DCxkkb1et+K18pvkOG3lP0KkmIiqjlnMgW4Xred8NbcVuxp
 Xi78qiBAKem1wHl299u9rGJoBVUc3/IKUwqgdzrCzhlmvRDLbJwc8/V8qnRB2m3nJv
 DyeYZE17wMFDwTJt1w2YLG2xetQGURDyWYiolfbtbU0dx3+Zek+Uv6Xbr9a3ojvVKz
 yQ81QmRQqx7gHOJYhm8c3VMnsv3GtvFGGTJG3kDXe+dZTbZMuHSCG23HUsVLt5LCja
 AacsLjmc6cECZOcix4PzBHsITHHndtwxncfOY3rzwViwdqR48PpVer9rUbpCYrKAXk
 sjhMwIaRnJcVw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 62A291000BC;
 Sat,  2 May 2026 11:22:18 -0400 (EDT)
Received: from pastel (104-195-197-162.cpe.teksavvy.com [104.195.197.162])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 335301201A6;
 Sat,  2 May 2026 11:22:18 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
In-Reply-To: <86mryh97mo.fsf@HIDDEN>
Message-ID: <jwvlde1zvjn.fsf-monnier+emacs@HIDDEN>
References: <86bjfcg98e.fsf@HIDDEN> <86a4ui9lsm.fsf@HIDDEN>
 <jwvcxzd2978.fsf-monnier+emacs@HIDDEN> <86mryh97mo.fsf@HIDDEN>
Date: Sat, 02 May 2026 11:22:17 -0400
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-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.166 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80873
Cc: luangruo@HIDDEN, 80873 <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 (---)

>> >> To reproduce:
>> >>=20
>> >>   emacs -Q
>> >>   C-h f font-setting-change-default-font RET
>> >>=20
>> >> This signals an error:
>> >>=20
>> >>   user-error: Symbol=E2=80=99s function definition is void: font-sett=
ing-change-default-font
>>=20
>> That sounds about right.  We could maybe change the `C-h f` code so it
>> catches the error and displays a *Help* buffer that basically says the
>> same as the error, but in any case, this seems like a very minor issue.
>
> Can we do what happens when the symbol is not known to Emacs,
> i.e. ring the bell and say "[No match]" when the user presses RET?
> That's what I would expect to see in that case.

Ah, maybe we can do that without too much trouble.
I'll take a look.


=3D=3D=3D Stefan





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

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


Received: (at 80873) by debbugs.gnu.org; 2 May 2026 15:14:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 02 11:14:47 2026
Received: from localhost ([127.0.0.1]:46616 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJC3K-0000ZX-SZ
	for submit <at> debbugs.gnu.org; Sat, 02 May 2026 11:14:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51862)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wJC3I-0000YT-NG
 for 80873 <at> debbugs.gnu.org; Sat, 02 May 2026 11:14:45 -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 1wJC3C-0003JT-96; Sat, 02 May 2026 11:14:38 -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=rnyrmQyWEUSqCilpy9tNZ3pCIjkqfBlSJKdqnlBCiCo=; b=PrMprRLwZ0eB5L4WhfPH
 0iDpmtyVro0e/d0WQm0t/e5LxjvGXMs3uuTowOGCkS392KttP6ja7oqJqN0jXpDsnyTayBnoKgBJz
 bmIhajafKfYPPkGrpCq3F9dVDVGcNXW4cmNMZs0zMdVXhVffXJRHytkDr3DLEWELy8pduknukNY57
 5/m2+C1GsXwvToSLRGYvglfc8JKTTHymht2YVyFkrAimSONYTBuHCM11tJ6CsLFIfDVJnheq7HR/3
 h8pKxZXsb13TSSO5SrqTLjB/enSReSh6e0uD5qYEqgpBpVkhPUlv09E2fmuwj/2luydCDVfrEMTT8
 2VGJmU3f8COFIA==;
Date: Sat, 02 May 2026 18:14:35 +0300
Message-Id: <86lde19738.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: monnier@HIDDEN, luangruo@HIDDEN
In-Reply-To: <86mryh97mo.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 02
 May 2026 18:02:55 +0300)
Subject: Re: bug#80873: 31.0.50;
 "C-h f" signals an error for font-setting-change-default-font
References: <86bjfcg98e.fsf@HIDDEN> <86a4ui9lsm.fsf@HIDDEN>
 <jwvcxzd2978.fsf-monnier+emacs@HIDDEN> <86mryh97mo.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: 80873
Cc: 80873 <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: luangruo@HIDDEN, 80873 <at> debbugs.gnu.org
> Date: Sat, 02 May 2026 18:02:55 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Stefan Monnier <monnier@HIDDEN>
> > Cc: Po Lu <luangruo@HIDDEN>,  80873 <at> debbugs.gnu.org
> > Date: Sat, 02 May 2026 10:12:23 -0400
> > 
> > >> To reproduce:
> > >> 
> > >>   emacs -Q
> > >>   C-h f font-setting-change-default-font RET
> > >> 
> > >> This signals an error:
> > >> 
> > >>   user-error: Symbol’s function definition is void: font-setting-change-default-font
> > 
> > That sounds about right.  We could maybe change the `C-h f` code so it
> > catches the error and displays a *Help* buffer that basically says the
> > same as the error, but in any case, this seems like a very minor issue.
> 
> Can we do what happens when the symbol is not known to Emacs,
> i.e. ring the bell and say "[No match]" when the user presses RET?
> That's what I would expect to see in that case.

Or what about the following trick:

  . we add "autoload-compute-prefixes: nil" to file-local variables in
    dynamic-setting.el
  . we then modify this part in loadup.el:

       (if (featurep 'dynamic-setting)
           (load "dynamic-setting"))

    to say this:

       (when (featurep 'dynamic-setting)
         (register-definition-prefixes "dynamic-setting"
           '("dynamic-setting-handle-config-changed-event"
             "font-setting-change-default-font"))
         (load "dynamic-setting"))

Would that do the trick without any negative side-effects?




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

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


Received: (at 80873) by debbugs.gnu.org; 2 May 2026 15:03:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 02 11:03:09 2026
Received: from localhost ([127.0.0.1]:46572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJBs5-0007Ko-9C
	for submit <at> debbugs.gnu.org; Sat, 02 May 2026 11:03:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40236)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wJBs3-0007Jt-4z
 for 80873 <at> debbugs.gnu.org; Sat, 02 May 2026 11:03: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 1wJBrx-0004SF-2M; Sat, 02 May 2026 11:03:01 -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=cxiX6CWM39Qq43jxYQyd3B+jDPd88O5Blt/zvodTXD8=; b=LPuA3FWoidQRIGE75APy
 6o4vyZ9B4sonMhTEIVwwdnFLh6rwZxBn1zRtH/mmSEiikInzBOYfK+oM72/or/5C4d9UdZmHu4xce
 LOF1Aikxdfzm495xcqg4UkTB6nAkA3ztQag4uXpHudgdwdvgtot0TQVS34XFZ7XLxmNn/gSK/pEr9
 hoXtx3zGNNK2TqhUzhvdmbGNQU0asEkIg28KxtInWzTunTh3l7a5jhncIJOI8PG0Gl8YCBuoMpwZR
 Uy3HJ2T6YE5X5UISFFrU4Gn2/w3OdL6A0f1eOsA3Aimm5r/WPTqDfVi+pBCXLWJyKnLYHooOONr7T
 XbANJZ1x0xxijQ==;
Date: Sat, 02 May 2026 18:02:55 +0300
Message-Id: <86mryh97mo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvcxzd2978.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Sat, 02 May 2026 10:12:23 -0400)
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
References: <86bjfcg98e.fsf@HIDDEN> <86a4ui9lsm.fsf@HIDDEN>
 <jwvcxzd2978.fsf-monnier+emacs@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: 80873
Cc: luangruo@HIDDEN, 80873 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Po Lu <luangruo@HIDDEN>,  80873 <at> debbugs.gnu.org
> Date: Sat, 02 May 2026 10:12:23 -0400
> 
> >> To reproduce:
> >> 
> >>   emacs -Q
> >>   C-h f font-setting-change-default-font RET
> >> 
> >> This signals an error:
> >> 
> >>   user-error: Symbol’s function definition is void: font-setting-change-default-font
> 
> That sounds about right.  We could maybe change the `C-h f` code so it
> catches the error and displays a *Help* buffer that basically says the
> same as the error, but in any case, this seems like a very minor issue.

Can we do what happens when the symbol is not known to Emacs,
i.e. ring the bell and say "[No match]" when the user presses RET?
That's what I would expect to see in that case.




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

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


Received: (at 80873) by debbugs.gnu.org; 2 May 2026 14:12:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 02 10:12:35 2026
Received: from localhost ([127.0.0.1]:46459 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJB58-0001RY-Up
	for submit <at> debbugs.gnu.org; Sat, 02 May 2026 10:12:35 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10229)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1wJB55-0001QT-N5
 for 80873 <at> debbugs.gnu.org; Sat, 02 May 2026 10:12:32 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 79886821B6;
 Sat,  2 May 2026 10:12:25 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1777731144;
 bh=c9owqey8Q0wJT60r7FZM0al+gfl80RtfEJlPKmVEomM=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=LXhBJUfPbygSSleHXq1vWMABJkVn7Zrha2obKCXFF9qOn/WqFqflPyAjvI5fVmIKh
 dPZ+iC7xoj9wFVe7OgLe2MR1bly2xTVTDhV2T2UYo9QBs8ERtRBg+0yeVC5tECaHZ7
 xZrrgM01NwiP1pjbo4yBKppG82REm2L3JwKIv6KbMWLPYDqzCHJ0nOVJ3hlyHJ8Rgv
 mLzd4hUNgCd91PD5SCzBP+xOtzKMM77P2ZatTxQe24OHrwG6dVh3lvepmkxTev3+BK
 xJiF3O7y8EqpFhWCwr5V1OyTDeh+8bKgGhRIjDwm4JpOy2IOCf6mIUOUYwQw2I+VWp
 Vi/Jona6GOoWQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 38E7981868;
 Sat,  2 May 2026 10:12:24 -0400 (EDT)
Received: from pastel (104-195-197-162.cpe.teksavvy.com [104.195.197.162])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0A1531202B1;
 Sat,  2 May 2026 10:12:24 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80873: 31.0.50; "C-h f" signals an error for
 font-setting-change-default-font
In-Reply-To: <86a4ui9lsm.fsf@HIDDEN>
Message-ID: <jwvcxzd2978.fsf-monnier+emacs@HIDDEN>
References: <86bjfcg98e.fsf@HIDDEN> <86a4ui9lsm.fsf@HIDDEN>
Date: Sat, 02 May 2026 10:12:23 -0400
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-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.076 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80873
Cc: Po Lu <luangruo@HIDDEN>, 80873 <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 (---)

>> To reproduce:
>>=20
>>   emacs -Q
>>   C-h f font-setting-change-default-font RET
>>=20
>> This signals an error:
>>=20
>>   user-error: Symbol=E2=80=99s function definition is void: font-setting=
-change-default-font

That sounds about right.  We could maybe change the `C-h f` code so it
catches the error and displays a *Help* buffer that basically says the
same as the error, but in any case, this seems like a very minor issue.


=3D=3D=3D Stefan





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

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


Received: (at 80873) by debbugs.gnu.org; 2 May 2026 09:57:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 02 05:57:57 2026
Received: from localhost ([127.0.0.1]:44391 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wJ76h-0006UZ-EL
	for submit <at> debbugs.gnu.org; Sat, 02 May 2026 05:57:56 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33906)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wJ76e-0006TU-TX
 for 80873 <at> debbugs.gnu.org; Sat, 02 May 2026 05:57:53 -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 1wJ76Z-0005ui-71; Sat, 02 May 2026 05:57:47 -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=cwhRZwsXGxkzeVsZO4iVRFLMtpAoqvIxzcoBeiodCd0=; b=cwf/x65OGGPJ6gfH41/R
 5OqwHskYnHzJk4jl1rpIq4Ib/I/vLdrZSsCiew6+bXH3K7VSZeYLbFNBw79jovArfKcU+pIoMWayL
 RIoNAb7AoFWQPek4uiRNgaxQn/YnYc0p2THZqoZ0JVP9FQdUWHhtZmMpvSB9snBrMqhbrY4XalsA9
 VFOiVG8piVD3bVq9pzz9VV8Udf+S3V5RAGocA0EVllC/2R1l12sDd8s40t2MY5jwdlpszFe+DZj88
 l+X8qVSR/iysLpE0uj9kxYrUT/uyGxIg89S3zK5TX79Mi2ZbOK1nhh5dtMpp4lQKGjWUhLaoeFV/b
 uyEl/xMLy+XzsA==;
Date: Sat, 02 May 2026 12:56:57 +0300
Message-Id: <86a4ui9lsm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <86bjfcg98e.fsf@HIDDEN> (message from Eli Zaretskii on Tue, 21
 Apr 2026 08:42:25 +0300)
Subject: Re: bug#80873: 31.0.50;
 "C-h f" signals an error for font-setting-change-default-font
References: <86bjfcg98e.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: 80873
Cc: luangruo@HIDDEN, 80873 <at> debbugs.gnu.org, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  Can we do something about this issue, please?

> Cc: Po Lu <luangruo@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
> Date: Tue, 21 Apr 2026 08:42:25 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> To reproduce:
> 
>   emacs -Q
>   C-h f font-setting-change-default-font RET
> 
> This signals an error:
> 
>   user-error: Symbol’s function definition is void: font-setting-change-default-font
> 
> AFAICT, this happens because loaddefs.el has the following:
> 
>   ;;; Generated autoloads from dynamic-setting.el
> 
>   (register-definition-prefixes "dynamic-setting" '("dynamic-setting-handle-config-changed-event" "font-setting-change-default-font"))
> 
> and loadup.el says:
> 
>   (if (featurep 'dynamic-setting)
>       (load "dynamic-setting"))
> 
> So dynamic-setting.el is preloaded on systems that have xsettings.c
> (which provides the 'dynamic-setting feature) compiled into Emacs, but
> on other systems (such as MS-Windows here) the function's symbol
> exists, but is void.
> 
> What can we do to avoid this?  I'd expect that function's symbol to
> not be known on systems that don't load dynamic-setting.el.  Can we do
> that?
> 
> In GNU Emacs 31.0.50 (build 2135, i686-pc-mingw32) of 2026-04-20 built
>  on ELIZ-PC
> Repository revision: b7eb715a134f2c98b9a358cebcc2c47832d212ae
> Repository branch: master
> Windowing system distributor 'Microsoft Corp.', version 10.0.26100
> System Description: Microsoft Windows 10 Enterprise (v10.0.2009.26100.8246)
> 
> Configured using:
>  'configure -C --prefix=/d/usr --with-wide-int
>  --without-native-compilation --enable-checking=yes,glyphs 'CFLAGS=-O0
>  -gdwarf-4 -g3''
> 
> Configured features:
> ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY
> PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
> TREE_SITTER WEBP XPM ZLIB
> 
> Important settings:
>   value of $LANG: ENG
>   locale-coding-system: cp1252
> 
> 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 dabbrev 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 sendmail mail-parse rfc2231 rfc2047 rfc2045
> ietf-drums mm-util mail-prsvr mail-utils thingatpt help-fns radix-tree
> help-mode warnings icons cl-loaddefs cl-lib rmc iso-transl tooltip cconv
> eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
> elisp-mode mwheel touch-screen dos-w32 ls-lisp term/w32-nt disp-table
> term/w32-win w32-win w32-vars term/common-win 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 w32notify w32 lcms2 multi-tty
> move-toolbar make-network-process tty-child-frames emacs)
> 
> Memory information:
> ((conses 16 52248 18851) (symbols 48 7010 0) (strings 16 19766 2284)
>  (string-bytes 1 397506) (vectors 16 10332)
>  (vector-slots 8 122108 8288) (floats 8 25 8) (intervals 40 320 75)
>  (buffers 928 10))
> 
> 
> 
> 




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

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


Received: (at submit) by debbugs.gnu.org; 21 Apr 2026 05:42:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 21 01:42:40 2026
Received: from localhost ([127.0.0.1]:39751 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wF3se-0008HB-3J
	for submit <at> debbugs.gnu.org; Tue, 21 Apr 2026 01:42:40 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:36010)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wF3sa-0008Gd-NH
 for submit <at> debbugs.gnu.org; Tue, 21 Apr 2026 01:42:37 -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 <eliz@HIDDEN>) id 1wF3sS-0007Ps-M3
 for bug-gnu-emacs@HIDDEN; Tue, 21 Apr 2026 01:42:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1wF3sR-00086Q-K4
 for bug-gnu-emacs@HIDDEN; Tue, 21 Apr 2026 01:42:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:Subject:To:From:Date:in-reply-to:
 references; bh=EyAKXWY+sKQ4EsspsjkzLI76A63v7CVLa+prJ5k5bP0=; b=ULCNUJkkLJUgXX
 4fdtRSbdMai/eIQxYwj0gai6BHIwWjIbc6OCaomxHklBCFS/V7HM9LG3AIznp09yAnuuj0s61azfd
 UNvLNc7ThaGuZl3X9iVQ/XushvRiqgTZ8UX6CberUabalvoyjysQxdps+X4pm/bdP5TuxTq5Y2kfq
 j8uKkFISjv6mnVMTb6ghxbyIRwEUsZeTReJwgTq1NFm3sHooDY9xTe/+j6iXm1OYj/EWdgOd+ho91
 yd9Db9WP8jZkWjwA7jRjFhbr8F4YYp8pN/EDy0PD00Cacn0XZmlARmKQoDqWbOkcchyaACVhR/SLK
 hgUlgzGqiNm0JBMvxanw==;
Date: Tue, 21 Apr 2026 08:42:25 +0300
Message-Id: <86bjfcg98e.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; "C-h f" signals an error for font-setting-change-default-font
X-Debbugs-Cc: Po Lu <luangruo@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: eliz@HIDDEN
--text follows this line--
To reproduce:

  emacs -Q
  C-h f font-setting-change-default-font RET

This signals an error:

  user-error: Symbol’s function definition is void: font-setting-change-default-font

AFAICT, this happens because loaddefs.el has the following:

  ;;; Generated autoloads from dynamic-setting.el

  (register-definition-prefixes "dynamic-setting" '("dynamic-setting-handle-config-changed-event" "font-setting-change-default-font"))

and loadup.el says:

  (if (featurep 'dynamic-setting)
      (load "dynamic-setting"))

So dynamic-setting.el is preloaded on systems that have xsettings.c
(which provides the 'dynamic-setting feature) compiled into Emacs, but
on other systems (such as MS-Windows here) the function's symbol
exists, but is void.

What can we do to avoid this?  I'd expect that function's symbol to
not be known on systems that don't load dynamic-setting.el.  Can we do
that?

In GNU Emacs 31.0.50 (build 2135, i686-pc-mingw32) of 2026-04-20 built
 on ELIZ-PC
Repository revision: b7eb715a134f2c98b9a358cebcc2c47832d212ae
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.26100
System Description: Microsoft Windows 10 Enterprise (v10.0.2009.26100.8246)

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int
 --without-native-compilation --enable-checking=yes,glyphs 'CFLAGS=-O0
 -gdwarf-4 -g3''

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY
PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENG
  locale-coding-system: cp1252

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 dabbrev 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 sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils thingatpt help-fns radix-tree
help-mode warnings icons cl-loaddefs cl-lib rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel touch-screen dos-w32 ls-lisp term/w32-nt disp-table
term/w32-win w32-win w32-vars term/common-win 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 w32notify w32 lcms2 multi-tty
move-toolbar make-network-process tty-child-frames emacs)

Memory information:
((conses 16 52248 18851) (symbols 48 7010 0) (strings 16 19766 2284)
 (string-bytes 1 397506) (vectors 16 10332)
 (vector-slots 8 122108 8288) (floats 8 25 8) (intervals 40 320 75)
 (buffers 928 10))




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
New bug report received and forwarded. Copy sent to luangruo@HIDDEN, monnier@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to luangruo@HIDDEN, monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#80873; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 6 May 2026 11:30:05 UTC

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