GNU bug report logs - #81638
32.0.50; flyspell-prog-text-faces type and semantics

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

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Mon, 17 Aug 2026 01:47:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 11:14:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 07:14:51 2026
Received: from localhost ([127.0.0.1]:36174 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy6A6-00073P-Mn
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 07:14:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41924)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <arash@HIDDEN>) id 1wy6A3-000731-Cn
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 07:14:48 -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 <arash@HIDDEN>)
 id 1wy69w-00038R-Fr; Sun, 23 Aug 2026 07:14:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=TV3PM6miHhJfX0KGIrJ95efs5gdt6xEWmGYD7tMp7Ac=; b=rcssIOH1gw1PDCkf0Vz/
 lnF3/Cp1qbJyKMPXPG2Pz/5GaXy9wji333g15xnuxOKTFNYPXEpStRYaun001xJs5IFOvneppXg+p
 SPmAqPN58CXa3twRjsR2LhNyWfb8HVWfzlFdykQQVZ2fwtgeYLU8FvTpkxkuyLZW6vLXnEmCfO0Rf
 V7NZiJgugI+w6BCKYijANtbuDComCQeVQ4hoEhIXsoqlyvGevx7CK4Tfiy+Fbp1fPXYCAXGcCgOMm
 +c6mYuR4h/a0pCOUbQOIvjE9aZoOZvzJ2GRYg+JhfBqsL9rWCwBGRey/Jyk0syNEz4ErQf7d4NRUb
 42jrZFvZtk/Rxw==;
From: Arash Esbati <arash@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86cxv9waa3.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
 <87y0dxmma8.fsf@HIDDEN> <86ik51we0l.fsf@HIDDEN>
 <87tsolmjee.fsf@HIDDEN> <86ecfpwck5.fsf@HIDDEN>
 <87pkz9mi6z.fsf@HIDDEN> <86cxv9waa3.fsf@HIDDEN>
Date: Sun, 23 Aug 2026 13:14:35 +0200
Message-ID: <m2jyph3x7o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN,
 Michael Heerdegen <michael_heerdegen@HIDDEN>, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

> If that is the problem to solve, I suggest to try customizing the
> value of ispell-tex-skip-alists and/or ispell-skip-region-alist.

I don't think `flyspell-mode' cares about `ispell-tex-skip-alist':

--=-=-=
Content-Type: image/png
Content-Disposition: inline; filename=flyspell.png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAKEAAAA2CAYAAACvMvlNAAABVmlDQ1BJQ0MgUHJvZmlsZQAAGJVj
YGBiSCwoyGFhYGDIzSspCnJ3UoiIjFJgf87ACYQCDFYMsonJxQWOAQE+QCUMMBoVfLvGwAiiL+uC
zPK/usH68hpb82tik+fezFypjakeBXClpBYnA+k/QKyRXFBUwsDAqAJkB5SXFIDYQMwgUgR0FJDd
AWKnQ9hzQOwkCHsDWE1IkDOQfQTIFkjOSEwBsq8A2TpJSOLpSOzcnNJkqBtArudJzQsNBtFALMPg
yhDGYMRgzmDJYIpDnQlYnTNDPkMBQyVDEUMmQzpDBkMJgwKDI1CkgCGHIRXI9mTIY0hm0GPQAbKN
GAyA2BgUvujhhhDL4wcafQzImIkQS+JjYNgNjCLBYwgxtR1AL5gxMBw4W5BYlAgPTcZvLMVpxkYQ
Nvd2BgbWaf//fw5nYGDXZGD4e/3//9/b////u4yBgfkWUO83ACwSYcbFIPmlAAAAVmVYSWZNTQAq
AAAACAABh2kABAAAAAEAAAAaAAAAAAADkoYABwAAABIAAABEoAIABAAAAAEAAAChoAMABAAAAAEA
AAA2AAAAAEFTQ0lJAAAAU2NyZWVuc2hvdNX33Y0AAAHVaVRYdFhNTDpjb20uYWRvYmUueG1wAAAA
AAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2
LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8y
Mi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAg
ICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAg
ICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjU0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAg
ICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjE2MTwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAg
ICAgICAgIDxleGlmOlVzZXJDb21tZW50PlNjcmVlbnNob3Q8L2V4aWY6VXNlckNvbW1lbnQ+CiAg
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
--=-=-=
Content-Type: text/plain


Note that "verbatim" has an entry in `ispell-tex-skip-alist'.

> I suggest to fix flyspell-mode's support for TeX, because it's closer
> to what you want, AFAIU.

I think Michael can add another condition to `tex-mode-flyspell-verify'
like this and comments ignored:

--8<---------------cut here---------------start------------->8---
(defun tex-mode-flyspell-verify ()
  "Function used for `flyspell-generic-check-word-predicate' in LaTeX mode."
  (and
   (not (save-excursion
          (re-search-backward "^[ \t]*%%%[ \t]+Local" nil t)))
   (not (save-excursion
          (let ((this (point)))
            (beginning-of-line)
            (and (re-search-forward "\\\\\\(cite\\|label\\|ref\\){[^}]*}"
                                    (line-end-position) t)
                 (>= this (match-beginning 0))
                 (<= this (match-end 0))))))
   ;; Don't check comments (borrowed from tex-mode.el)
   (not (nth 4 (syntax-ppss)))))
--8<---------------cut here---------------end--------------->8---

Best, Arash

--=-=-=--




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

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 07:45:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 03:45:05 2026
Received: from localhost ([127.0.0.1]:34523 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy2t7-00052v-0Y
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 03:45:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35100)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wy2t4-000521-E6
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 03:45: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 1wy2sx-00076x-Fv; Sun, 23 Aug 2026 03:44:55 -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=c38/MuaPD142SOSIfPXl9cO4DM1VGO0QqhkIylSz/Ao=; b=oVWd2PZaHkXB
 ali+kAgDcObjEA1jOjh/Zm5NBRlqiCEVXiBxS085qMl19ElWBlnTd51AaXgqk7GYIes3gJWdfbEpy
 H0ZmmF1AMMNfcGWburmDp/7NBtJoqebyaCBA8t/oBKfnDf8oG1X0ip40p/WE/Buo7sDzkZmnK7CUH
 7Ceu/Qww2dBPJ3rbaetQi+fgKoSR6vtEhEs1IK/zYE49Lk/TRVFaZhjrI4QtHqqW9q63+m5rDlVJ/
 qg6qhOS7XAFWO31NCBT/CS2y6XMlHCVxWxNipdEspFI26HyXQgoGcYIY9iMHrmJ6x0DSkk1MXGIHv
 Zwf3BreK8WzKwztQW5FsnQ==;
Date: Sun, 23 Aug 2026 10:44:52 +0300
Message-Id: <86cxv9waa3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87pkz9mi6z.fsf@HIDDEN> (message from Michael Heerdegen on
 Sun, 23 Aug 2026 09:04:04 +0200)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
 <87y0dxmma8.fsf@HIDDEN> <86ik51we0l.fsf@HIDDEN>
 <87tsolmjee.fsf@HIDDEN> <86ecfpwck5.fsf@HIDDEN>
 <87pkz9mi6z.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: spwhitton@HIDDEN,  monnier@HIDDEN,  81638 <at> debbugs.gnu.org
> Date: Sun, 23 Aug 2026 09:04:04 +0200
> 
> You understood that I do try to use `flyspell-mode' but with that I
> can't avoid comments being checked, which sucks and can't be turned off?
> It's bad.  I hate it.  Ok?

If that is the problem to solve, I suggest to try customizing the
value of ispell-tex-skip-alists and/or ispell-skip-region-alist.

If even that doesn't solve the problem, please tell the details, and
let's take it from there.

> I can choose between two different kinds of annoyances.  I hope we can
> at least fix one of them.

I suggest to fix flyspell-mode's support for TeX, because it's closer
to what you want, AFAIU.




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

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 07:04:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 03:04:16 2026
Received: from localhost ([127.0.0.1]:34150 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy2Fb-0001va-Mx
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 03:04:15 -0400
Received: from mout-p-103.mailbox.org ([80.241.56.161]:54382)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wy2FZ-0001vH-C5
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 03:04:14 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4hSQ530hTNzKmSq;
 Sun, 23 Aug 2026 09:04:07 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787468647;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=H/9Tp38TRbU9o1ZGPccg8unclnUH8m7Jb9hLqVaVP4o=;
 b=nqDDZE5drasNE4PjLFSDPJdhChKCKsU99EMOtEFDD7Xd7P1k2vgj4aiEhRcV5EavpQ9bds
 aqm+smteFYieoF2iED9z3Hyf4w5DhnBXu3YYVGTAo0gHf1kZ+plFZo4Xaf0cCYlZnnDtJj
 oJ2xvQ+J3FgHja0aJyBjjei5MzUGrU0kmN9M05jxsSMKxjHmbcgjDKbPcGw6tohZ5LQdN7
 kTc0a4wAGxWe5uwxE/vNrj2aRQiV5Ygq2GBuK02FCPLLXEcl+Bv/W3UN1XNqzlrerkqF/L
 NuC/b3rQCm4YElgpWnQRu3KkMXKTLHRP2vQzDXEC1TMZy2Smcj5bwCrNVaoU1A==
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787468645;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=H/9Tp38TRbU9o1ZGPccg8unclnUH8m7Jb9hLqVaVP4o=;
 b=h7CoB2uWkbc4c0mi8TOJIPmNr4LMSzxaWZH1q9XBYWTP9uc+PXOl6clY3R8Zna9p+7A8Ae
 0tqUizDy2aISC57/BE3M/XaVyv7+PMet4F+OkYhaBVtuMjzv205YdxL42noEqua08pyRpr
 6eGoQTCvsAuQmXodiAOicJe46Eq7dNius42gsf0Vlx82z3/o5jnaxw+d8NqkuKFtdJzhGm
 FDYODsgwAcSS/stjs4c8cgpHJ5p+8ieuwsBWxpHeE2T8rZDv/bfhqoC10UHaOox12cCvTv
 LixFdeh7TsRMHxM4o82sVQWjPjJbWkA4iS3Ux8kEnZxGLrCsp2mz8oOIbtTbsg==
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86ecfpwck5.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
 <87y0dxmma8.fsf@HIDDEN> <86ik51we0l.fsf@HIDDEN>
 <87tsolmjee.fsf@HIDDEN> <86ecfpwck5.fsf@HIDDEN>
Date: Sun, 23 Aug 2026 09:04:04 +0200
Message-ID: <87pkz9mi6z.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-META: a9bsirdjoh9by535mkafb7d5ndrceoe8
X-MBO-RS-ID: 93d5378621286ada604
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> But anyway, if we are back to start, then I already expressed my
> opinions about this, and see no reason to repeat.

We don't understand each other.

You understood that I do try to use `flyspell-mode' but with that I
can't avoid comments being checked, which sucks and can't be turned off?
It's bad.  I hate it.  Ok?

And if I don't want to see this distraction, I still have to use
flyspell-prog-mode, and there I still have the reported problem.

I can choose between two different kinds of annoyances.  I hope we can
at least fix one of them.


Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 06:55:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 02:55:51 2026
Received: from localhost ([127.0.0.1]:34106 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy27S-0001TZ-MJ
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 02:55:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39338)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wy27P-0001TD-Ov
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 02:55:48 -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 1wy27J-0005Q8-2y; Sun, 23 Aug 2026 02:55:41 -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=6VA2LzWZ0Cw1pBF2fXqpJSqi760y+3Fz5LQdJdzoVrM=; b=a7XoGDcsKeGH
 /S4tFyhGGWhUJESy4OBwBlpcAN7Lt5+ctisvOybRHulLlFSfjrgxGDPoDZFZoTi4AaYN4xFhCrSkb
 9HhOpXdP503+DsuUnsW+9lUIWoE1TETGQiQVImCUwhhyJwpp5U50QMIfZPCID/I626JFJgBMeZvQ2
 582wxahl6GB7Ra7KwL04mKo4Xhx2Dt/V8ZpGxOdv0ZkFnMy/THg69DXdzHlZRLz2M1JTmHP0D4Zby
 BOJvlchb1oDBnMH932yn05xaAx4imqNfnKJFSgUOQ6nd9Q9jO2TnjeszQTr9mOp//xNe8XvGm1odI
 SiCPK6uJtN1u2o+qSkPD+A==;
Date: Sun, 23 Aug 2026 09:55:38 +0300
Message-Id: <86ecfpwck5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87tsolmjee.fsf@HIDDEN> (message from Michael Heerdegen on
 Sun, 23 Aug 2026 08:38:01 +0200)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
 <87y0dxmma8.fsf@HIDDEN> <86ik51we0l.fsf@HIDDEN>
 <87tsolmjee.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: spwhitton@HIDDEN,  monnier@HIDDEN,  81638 <at> debbugs.gnu.org
> Date: Sun, 23 Aug 2026 08:38:01 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > > Looking from the other direction: the flyspell underlinings in comments
> > > are really annoying because the face used is very striking (it's the job
> > > of the face...) and there are potentially a lot of found "wrong words".
> > > I think this is something that could deserve a new user option.
> >
> > If the face's visuals are unpleasant, you can customize the face.
> > (But I don't necessarily see what this has to do with the present bug
> > report.)
> 
> I guess you misunderstood.
> 
> They are unpleasant when marking lots of false positives.  Of course the
> face should be very visible so that I recognize (real) mistakes.
> 
> The relation to this bug report is that for `flyspell-prog-mode' it is
> possible to decide whether comments should be checked (but only by
> changing a variable in a way that produces a warning -> back to start).

A warning is produced only if you set the variable to nil.  Removing
just the comment face from the list should not produce a warning.

And once again, your use case should be better covered by using
flyspell-mode which already supports LaTeX buffers.  In that case, the
issue with the variable and its type should never arise.

But anyway, if we are back to start, then I already expressed my
opinions about this, and see no reason to repeat.




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

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 06:38:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 02:38:12 2026
Received: from localhost ([127.0.0.1]:33983 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy1qO-0000UG-Dp
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 02:38:12 -0400
Received: from mout-p-103.mailbox.org ([80.241.56.161]:38842)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wy1qM-0000Tx-0W
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 02:38:10 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4hSPVz12fKzKn8k;
 Sun, 23 Aug 2026 08:38:03 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787467083;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=vnwFNp/wnWPinAhnHqsGl9En519oqsqj7WNrxKvpUek=;
 b=q7Viff421iwOgvVHSE1lTwZjU47ssnBIrLc49g2vGT3+3tumKJvyJ/H3Y7mCzESeV8RNPS
 +fhggX7hozOeKojoRg09+uUTq65RApTJI/MlySqSceRuj7KzV1en+KDV5doOqRKPHVkkS0
 1tALYW8N684vb3yRVjpYs+jISEmot2/Vor3zhNi1szCFKiEmGpsV0Bp12QVVooGN4J/HYb
 G/feR4PosMYxtI0671+mUfaE84zdqWGiYFHXCFQLYkqz7IbZXHLY49kYJWDkZYNQzRx7Hi
 nSPENC0M9JSowCo7iTfuTBhgHM+3WKid8f5Y3CZsqN5cwppe6HX+kmJCl1vMPA==
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787467082;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=vnwFNp/wnWPinAhnHqsGl9En519oqsqj7WNrxKvpUek=;
 b=qE1lcg4PrgxPnhJaTnVuHCD73pJSqSKAEyKy8ysv3rXTZ4fbEH04LKCE2EdiV5XOtfTCOn
 5dNARtGVebd0y09/9jIo+AA4w8YYgoTdKhJMZF0w4jIj7Qnz9yiNoCq6PZpz5wIU1f18rI
 bkic3m8Re6nSmcH0f3Hrz1AMAju5LSYMPtxnmqUEchyD+x3WU/41CE9f1bwEha4pKJGk2I
 A+DQljDgtEuwHvPGD5MtP16AvSr+5rUFmc4ZQEMBQ+TFQ9PxDkb4A2C+KcWQ7x8aCxh6tn
 SZMSjlD8o8xzYtiKCeQKk8tNMEXbxQfXGRzzlLum6vCw0OvebTowZTH7J5zAVQ==
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86ik51we0l.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
 <87y0dxmma8.fsf@HIDDEN> <86ik51we0l.fsf@HIDDEN>
Date: Sun, 23 Aug 2026 08:38:01 +0200
Message-ID: <87tsolmjee.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-META: 94um9f5s8naosndd9jiusuzgems6dktg
X-MBO-RS-ID: 36013f30ee04bcf4b92
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> > Looking from the other direction: the flyspell underlinings in comments
> > are really annoying because the face used is very striking (it's the job
> > of the face...) and there are potentially a lot of found "wrong words".
> > I think this is something that could deserve a new user option.
>
> If the face's visuals are unpleasant, you can customize the face.
> (But I don't necessarily see what this has to do with the present bug
> report.)

I guess you misunderstood.

They are unpleasant when marking lots of false positives.  Of course the
face should be very visible so that I recognize (real) mistakes.

The relation to this bug report is that for `flyspell-prog-mode' it is
possible to decide whether comments should be checked (but only by
changing a variable in a way that produces a warning -> back to start).


Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 06:24:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 02:24:24 2026
Received: from localhost ([127.0.0.1]:33879 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy1d1-00081B-Nv
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 02:24:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56526)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wy1cz-00080b-BK
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 02:24:22 -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 1wy1cs-0000TN-4D; Sun, 23 Aug 2026 02:24:14 -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=w8kUKWP0rHwfyefUP73spk5I41BLjIE54OtjkwxAC4w=; b=OAzuZfDsyv61
 ufwV34w2rWAXNF217KrZBRhmCsAbu6DP9U+0mkUKBIV+LUSOfaKqbPuKJ0ZItaawwEqeyEN3zQddy
 ei8NAxCIf3B8xyBQBtRipo01cddZ0ihawDMdtazKdiAKQwd/1aXZCGe6fypdtmiC3X9XMHmmDh8WO
 edvujJSafQbK3KiBLCps9WSjL3IXKpcekoFf2eeOwub6NHno+jvkpDCbnpx44/2vmhJwuecy/zHdA
 gbGMQi0j9xTFVmdsQMJ0fbapHdL21zH87vUFQdCSXbkgQ75kibRqCcqL4DsTmbQC9syt0PnbmvwTa
 pCHW7mytrb3jbctpVptiCA==;
Date: Sun, 23 Aug 2026 09:24:10 +0300
Message-Id: <86ik51we0l.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87y0dxmma8.fsf@HIDDEN> (message from Michael Heerdegen on
 Sun, 23 Aug 2026 07:35:43 +0200)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
 <87y0dxmma8.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: spwhitton@HIDDEN,  monnier@HIDDEN,  81638 <at> debbugs.gnu.org
> Date: Sun, 23 Aug 2026 07:35:43 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > What does this mean for the current bug report?  Should we still do
> > something, or can we close the bug?  Or something else?
> 
> Hmm. Hmm.
> 
> You called `flyspell-prog-mode' a kludge, so I expected the
> ispell-parser 'tex implementation to be something advanced.  But at the
> end, it's also only a regexp based blacklist, and apart from that, baked
> into the rest of the code (with other words, not well factored).  And
> it's not possible to exclude comments from spell checking (in contrast
> to ispell).  AFAIU - I only had a quick look.  Sorry if I missed
> important parts.

The important part is that we tell the spell-checker (Hunspell etc.)
to enter TeX/LaTeX mode.  It's the spell-checker that does most of the
job in that case, AFAIR.

> So I consider the -prog-mode not as too bad compared to that.

Not too bad in what sense?  flyspell-prog-mode is for spell-checking
strings and comments in program source, whereas what I mentioned is a
feature of flyspell-mode when the major mode is a TeX derivative.
These are two different features intended for two different use cases.

> Anyway, before I can give a definitive answer I would like to know
> why you dislike Stefan's patch.  Or do you just want to get rid of
> the -prog-mode?

I thought we've established that flyspell-mode solves your problem,
and if so, why do we need to allow any symbol in
flyspell-prog-text-faces in the first place?

> Looking from the other direction: the flyspell underlinings in comments
> are really annoying because the face used is very striking (it's the job
> of the face...) and there are potentially a lot of found "wrong words".
> I think this is something that could deserve a new user option.

If the face's visuals are unpleasant, you can customize the face.
(But I don't necessarily see what this has to do with the present bug
report.)




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

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


Received: (at 81638) by debbugs.gnu.org; 23 Aug 2026 05:35:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 23 01:35:53 2026
Received: from localhost ([127.0.0.1]:33702 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wy0s5-00053O-GE
	for submit <at> debbugs.gnu.org; Sun, 23 Aug 2026 01:35:53 -0400
Received: from mout-p-103.mailbox.org ([80.241.56.161]:50532)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wy0s2-00052x-Q7
 for 81638 <at> debbugs.gnu.org; Sun, 23 Aug 2026 01:35:51 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org
 [IPv6:2001:67c:2050:b231:465::202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4hSN75066szKmLw;
 Sun, 23 Aug 2026 07:35:45 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787463345;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=/DWLlJ6xTnd271lFM1ayXC+Lokaaba0rs/4QbxaYuiw=;
 b=VOzGw1/7yxz07L3tM9clU+IuxfMSsMn+PdZPz4O/+O2Q666v6R+gYzCg83MUIOeeewieIH
 bpMzr2eqXVa8ntxaImfkcH0E+C7LrL8DtoArr7jedahlmCDnqnOl1lAmnF8wlovAAbnwvj
 Iia8h/si9hvzRoKGpCEu8pvrapCLgUzQuJKNE+2xBEAz7b4RWrB6EiiGBJX5/eDv2qUmKF
 Qx5MhkwmVfXamE+/9WnjfAocZ9VPLavVQDOyLir8V+6g2/wk2wvlbU4EUnYp4eGnBWi5xB
 kNaXY4qroMVrNDG6CdBMe8GZdaWUrQzRu6MObnS6Nlli4XO5TusGsh2+oTSVrA==
Authentication-Results: outgoing_mbo_mout;
 dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=n5x923AP;
 spf=pass (outgoing_mbo_mout: domain of michael_heerdegen@HIDDEN
 designates 2001:67c:2050:b231:465::202 as permitted sender)
 smtp.mailfrom=michael_heerdegen@HIDDEN
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787463343;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=/DWLlJ6xTnd271lFM1ayXC+Lokaaba0rs/4QbxaYuiw=;
 b=n5x923AP5urj+ilXTX4VqQakwwlnNrNfUJ4EMnrDQ2VIZJxwW680iV47Eb4znk277CfZFQ
 LLg53w3xR+0MKtsL3oh+mRlap/HT+jklqzh3Sx14HYTtpRKF/kGLaotd47uNQarhPidoof
 vI0GIuoPkqdRyV7iTsDN52C49nacpv7Pj20rb/8HLQCdpOtaPq8+Ce6sbIBugcyg82n79n
 mwRzpo3LC9/HoAamNLux1N0Gs1aCDfo8vN7KgBJlQ0hwmEZ/eZ183EDG+neuBhUOvqyYKm
 ei3PIFkJTAjVAlGE3nlSqC4jk4o1u+W6CdvH8zFxEp4s3HNxWpxoa+CfF2u2Zg==
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <865x12zkm9.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN> <865x12zkm9.fsf@HIDDEN>
Date: Sun, 23 Aug 2026 07:35:43 +0200
Message-ID: <87y0dxmma8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-ID: 459f1c63eff97d94c5c
X-MBO-RS-META: chsnsfwhyaryyahy8xu4urjjy3441ezw
X-Rspamd-Queue-Id: 4hSN75066szKmLw
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> What does this mean for the current bug report?  Should we still do
> something, or can we close the bug?  Or something else?

Hmm. Hmm.

You called `flyspell-prog-mode' a kludge, so I expected the
ispell-parser 'tex implementation to be something advanced.  But at the
end, it's also only a regexp based blacklist, and apart from that, baked
into the rest of the code (with other words, not well factored).  And
it's not possible to exclude comments from spell checking (in contrast
to ispell).  AFAIU - I only had a quick look.  Sorry if I missed
important parts.

So I consider the -prog-mode not as too bad compared to that.  Anyway,
before I can give a definitive answer I would like to know why you
dislike Stefan's patch.  Or do you just want to get rid of the
-prog-mode?

Looking from the other direction: the flyspell underlinings in comments
are really annoying because the face used is very striking (it's the job
of the face...) and there are potentially a lot of found "wrong words".
I think this is something that could deserve a new user option.


Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 22 Aug 2026 07:21:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 22 03:21:15 2026
Received: from localhost ([127.0.0.1]:52432 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wxg2V-00014r-F8
	for submit <at> debbugs.gnu.org; Sat, 22 Aug 2026 03:21:15 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43154)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wxg2S-00013y-9t
 for 81638 <at> debbugs.gnu.org; Sat, 22 Aug 2026 03:21:13 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wxg2L-0006X1-K2; Sat, 22 Aug 2026 03:21:05 -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=Jq/X1Ubhd+pLauynyV2EPT5kgSsqTE2oTT7eGxKI45M=; b=NkzDLNw2NmZC
 Vt9wwPIj8ngXVXUpsSqB9MS7/1BFprdrGPYGN5TI4F0N9MhOC5YIwLkW/Xg5THTae6l4oJPPZevRz
 9D6+GyGK6gNZV9ZcKkVb48XjUK7yODODeTirJAm8zPVQmVYL1TRZStrhR/UMewzmMKwwV/DG7S9ov
 YGQHqytAH6M6u0FxbHA1KqNljS0jN4rnGFRfFphyQMuqL7r8nCu8WQRG82rdekC5gocneIyfymgFZ
 AZpwtDBHoB/vBTWkTnfsqW+aYE+6dyO8+wjGfDN1oUxHamNVZN1hfrpAh93lWEOEz+TcKVJf9s3r8
 GRie7ecCbhOTD9rC6hkP1w==;
Date: Sat, 22 Aug 2026 10:21:02 +0300
Message-Id: <865x12zkm9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <8733w6ofzz.fsf@HIDDEN> (message from Michael Heerdegen on
 Sat, 22 Aug 2026 07:56:16 +0200)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
 <8733w6ofzz.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: Sean Whitton <spwhitton@HIDDEN>,  monnier@HIDDEN,
>   81638 <at> debbugs.gnu.org
> Date: Sat, 22 Aug 2026 07:56:16 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Btw, ispell.el already supports spell-checking TeX/LaTeX buffers, see
> > the variable ispell-parser and how it is set by
> > ispell-buffer-local-parsing.  So I wonder why the "normal"
> > flyspell-mode doesn't already do what Michael wants.  Michael, can you
> > investigate?
> 
> AFAIR this origins from the time when flyspell did not work so well,
> years ago.  I'm quite happy with how it works now, although, what I
> don't like is that flyspell-mode does spell check in commented out stuff,
> which is a little bit annoying (it finds mistakes in all the macro names
> it uses to ignore when the same stuff is uncommented).  But this is a
> minor issue (that can be handled in the -prog-mode, though).
> 
> So, I think I'm quite happy with the normal flyspell-mode (note that ATM
> I'm using org to generate most pdf documents, not LaTeX, but I guess the
> situation is very similar).

What does this mean for the current bug report?  Should we still do
something, or can we close the bug?  Or something else?

Thanks.




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

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


Received: (at 81638) by debbugs.gnu.org; 22 Aug 2026 05:56:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 22 01:56:28 2026
Received: from localhost ([127.0.0.1]:51849 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wxeiS-0004Fs-5k
	for submit <at> debbugs.gnu.org; Sat, 22 Aug 2026 01:56:28 -0400
Received: from mout-p-103.mailbox.org ([80.241.56.161]:36394)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wxeiP-0004FB-7S
 for 81638 <at> debbugs.gnu.org; Sat, 22 Aug 2026 01:56:26 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4hRmdG74PTzKnb9;
 Sat, 22 Aug 2026 07:56:18 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787378179;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=20jodx+AS3VaSVaQciHUQI1OshaRwnqMJRiqkoMn6Zc=;
 b=hop/Mj7kV+L6u36QinNuKkyIOnh62DVVeUXooFvPPQTtLMaBcaHK8Qbq+WufakHMUjoHcr
 CvTnV6vDqz32zi2f8sQ4yy3WUzbuwZGU2rTICfnrYlGjg7ptNghbRXgcP/hNsXUDKLFWVH
 WbAGhEck+z0eJRwWmyMcTKjriy4uEgUEWh2I1zc212QSnrlkznTi4hsaG2xiCFpXKvo7GJ
 iXVHU8r2Si+XkBc14xaqz7AGQZjFZx3O566E6uQgdZAUAorwBw8DPYhsCkbZafISm78kBH
 +hfrgMGtqIMLK/hqkHom8oaToj9FVfEanmXyzgshmj1yr7uGgTJH2RiN2q9p4g==
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787378177;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=20jodx+AS3VaSVaQciHUQI1OshaRwnqMJRiqkoMn6Zc=;
 b=e33SfQdTyuoy019tMX7iSPiuuRlVn8FC1LMa4DxM7/MSVq/sF6aTRwXoH3tprtQnBTnTUA
 cezu+tp7ee8QnUzSCTzLcpWQZ+uZzqqcsYCGRaG3AVWMbenp8EAflcy5NbQK1g8Pi3ibvi
 fYJ1IWLMFGf3NhVQwRB6m7mX23TE9s5TJg3puOiMkhaOgnxfOvB8or+2Jw3pSOVLEtxrDR
 Ajy4aRq5Iz0E14gvcDPbl0U+mX8mFYNru0ahtEBJNNTDSsgNrV9ARQSbFMW3BEKpXQQTn6
 KfKZlNm3HpZl+cWZ99ZSiJGGfzkuNzHrnceBvK0zSYeYdUIOTZSeW8dU0rAPuA==
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86zeyfzrm3.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN> <86zeyfzrm3.fsf@HIDDEN>
Date: Sat, 22 Aug 2026 07:56:16 +0200
Message-ID: <8733w6ofzz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-ID: 7485fbd7db639729370
X-MBO-RS-META: spyicio9gp7tqnfuxqsedsge54unpuen
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN,
 Sean Whitton <spwhitton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Btw, ispell.el already supports spell-checking TeX/LaTeX buffers, see
> the variable ispell-parser and how it is set by
> ispell-buffer-local-parsing.  So I wonder why the "normal"
> flyspell-mode doesn't already do what Michael wants.  Michael, can you
> investigate?

AFAIR this origins from the time when flyspell did not work so well,
years ago.  I'm quite happy with how it works now, although, what I
don't like is that flyspell-mode does spell check in commented out stuff,
which is a little bit annoying (it finds mistakes in all the macro names
it uses to ignore when the same stuff is uncommented).  But this is a
minor issue (that can be handled in the -prog-mode, though).

So, I think I'm quite happy with the normal flyspell-mode (note that ATM
I'm using org to generate most pdf documents, not LaTeX, but I guess the
situation is very similar).


Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 21 Aug 2026 10:37:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 21 06:37:53 2026
Received: from localhost ([127.0.0.1]:57788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wxMdF-0006EN-GN
	for submit <at> debbugs.gnu.org; Fri, 21 Aug 2026 06:37:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34760)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wxMdD-0006Dn-1N
 for 81638 <at> debbugs.gnu.org; Fri, 21 Aug 2026 06:37:51 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wxMd6-0008S1-20; Fri, 21 Aug 2026 06:37:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=pGSYCrg/KMZdjITLGHHugVWjmWVzBK48OcCLg/oQyI0=; b=A0hypuvblBPa
 RhP1+NjJXoxnneno7TT036DwzUPB/oJpo/NsOavEGhsQz6jMoDqTQjCocGxZOSYQQwLW54gCbHVrj
 9R6FXx45TSYXSjb8Dw8HxloYfpoYGsWvfUf3Xo0Tolv+xhYUAIDQG8hVg0cs62KtFwzKBaWfics0O
 r/s9BznxDozx1OAxVrN5lMSQDNO8wjDHGfDALor6KaNgYlhbCzsT3RXHMEMqW6EerAw0yhRAhhDqf
 cUVdVIK2ZTYfJOfA9mcEwgcQK9HC2ypkDLgJfzW2mLQyOTjCsJNLkh2zF2v60h3qbstHy13ww5HS4
 ghS2DenD9RM5kAnHofNcXQ==;
Date: Fri, 21 Aug 2026 13:37:40 +0300
Message-Id: <86zeyfzrm3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: michael_heerdegen@HIDDEN, Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87y0dzon7n.fsf@HIDDEN> (message from Sean
 Whitton on Fri, 21 Aug 2026 10:08:12 +0100)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
 <87y0dzon7n.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <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: -1.7 (-)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: michael_heerdegen@HIDDEN, monnier@HIDDEN,
>  81638 <at> debbugs.gnu.org
> Date: Fri, 21 Aug 2026 10:08:12 +0100
> 
> It seems like we should take a step back here.  Doing this by matching
> on faces does not seem like a principled approach; as Stefan said, it's
> a quick hack.
> 
> It seems like we could use a whole new mode taking a different approach.

That's what I suggested, basically.

Btw, ispell.el already supports spell-checking TeX/LaTeX buffers, see
the variable ispell-parser and how it is set by
ispell-buffer-local-parsing.  So I wonder why the "normal"
flyspell-mode doesn't already do what Michael wants.  Michael, can you
investigate?




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

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


Received: (at 81638) by debbugs.gnu.org; 21 Aug 2026 09:08:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 21 05:08:22 2026
Received: from localhost ([127.0.0.1]:56804 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wxLEb-0007eI-Ud
	for submit <at> debbugs.gnu.org; Fri, 21 Aug 2026 05:08:22 -0400
Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]:54997)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1wxLEa-0007e1-3N
 for 81638 <at> debbugs.gnu.org; Fri, 21 Aug 2026 05:08:20 -0400
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 9E8977A00F4;
 Fri, 21 Aug 2026 05:08:14 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Fri, 21 Aug 2026 05:08:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm2; t=1787303294; x=
 1787389694; bh=ai/fDiQP+anUHYRE2CCpeDCw2X2IeDJ9JOW3qEea4YI=; b=Y
 2fEaxuZi++4gCvKWQQC6a8aXJXQYUD3doweaYziAbJrwm26ODnouQIC1XYu0Ri0Y
 OfyWiuccq9YD4/r4fD9BqxNEaIstYruf11RYR4G2+cFfzYfM2+fa4iJ/vzGWXshh
 yh15cKxH6FzjbGwh+TY2UkHoLmOG3Nr4SsxU9xNZ7rd17NpP83531TfIkStdRPWb
 qK5+2IYPJ/OYBYyFkKZV82KjGMGc1L43rwiJjhsFWpfH4BqTY42cMzh/G2Aosdq7
 6CMsanZRtTIK0uF4FJ2ZUsma5kUjt5g/eElEa5QnzYFnw5iZ8sKkAkiRpPhXz+Jl
 okhG4DWJoeqh8QtLBjyEA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1787303294; x=1787389694; bh=ai/fDiQP+anUHYRE2CCpeDCw2X2IeDJ9JOW
 3qEea4YI=; b=JDdCLzJZdE6AaXQuWZt1I4eLdZ6uGiJ0NjYxAi5tNJGDxyaWwy4
 hWRo4LWgIp68AIQBPD8n6IDIACP5xdLsB9ulTZc42JPZe+/eU4KATxfyC/N7DJ4F
 y+z4tEa3BbnLOkmFunljCPG/+Vx9faavxAbbo00wpdDaAsHyn6KnaWFK2PMK/5pK
 DkNq6XjPHancQLQ8dZpc2ehqwvEW8zDQO9pJfNBF0KMXzeWaycsobt2NR1uxUWo9
 05Re9y/jwT3B7o+3+ETLGpOjcfhKpEZ11h4VroSSwuXkenADcG9UxZ35/ErffHeq
 0TvDigYeP4GB584RpumgIUMpc8rQgvi4lLQ==
X-ME-Sender: <xms:fhWIaipgA9OYKn1rYwgbkz0fTPnwFcNwrogHHnjh9UjMJHfhodZ7jw>
 <xme:fhWIaue7rcxpFy4zV1YWvn5W0XKWjjdWbk1ZYDm-xTW5iqgwQDUYRE2fV_xthPQMu
 -BxpGZCDySpisnPeG9kbrnzVWp3qz-xCYCYnCqu-NagIXDEV3sJ6xdr>
X-ME-Received: <xmr:fhWIahrB_3REr05MHJK9mDo6m3-S0qdPb_UAAoyjceRlhQRL9JvLAxA1oxzOWRpesCCdgZ_m00GipIyoDLqHTNjz1IUwoihMOg>
X-ME-Proxy-Cause: dmFkZTFohB3RiedDjxrzxZSW81+lFH4oK8apAyd/jwYwWz5+S10HTXqMd1CP1Srw1H3dMm
 bDX4jM79okI3SsbXfCjOGfgYzvd4FMQqDzhABDMUZt+uJ4U6n47iSx+yjiTYrdpln0U0hy
 Jbs7daHCAI95K1X4a6LofUpzb0QLbbrLEztDZl1lX2O7PO0ZKtxn37XWC/leAX1O2NdLJ4
 0sz3mF9bcKSJnmmN0TmTeyAnPAGnmST8JKbDGuCz+Lb1mvrYmrLiMqZt7QnZldk4yV2vqd
 axzyX7IzXKPPwBvFxjWoXLkYubitjUwIio1xJdtvz5xQ3TeShLSqJKkSAYm4YDCM24hQrJ
 fSbrRiOxpMKlNWLduiGHlzGb/oTBW0Mi5/QfN1qsHI0UfvpL993PNflsRTJ7rQRrxHbi26
 xuWhbYgXAQwZtoxNDpcY+9W7EfLib4HJJKmSMB+AAsbMfT10C70eqadIV+SMRn5h8DScuL
 lgpeO8vPQhhqTTt88lb6ZJVbixRndBBrAxzNkw3/IWZ6mBLAsfyFFljlyrgXyDGYRqSw+u
 8PE6njE+uNlkF1QK44Q9Uvfn1jaqDPvcNRwJQL58GUtt882R9TAUIltSY43SdycxQPw0nT
 J54bf0A46cX/R548WF+O4gSfoX7oCGeiHPGuHWh746S+rjYTQnOyzhqVwRlQ
X-ME-Proxy: <xmx:fhWIavHh8HZlG8fB5F1Gi-eSOIzZYyDsyAv4F3g7GgWfFIJh0nSfcQ>
 <xmx:fhWIahvNpd90h5ea3bjcum_Xv8juBygRq2tUNXcKgm3dFcmgbdhrww>
 <xmx:fhWIahV978mfnM38l0tnkrKdENuWBUPVqmDaxQcNG6w8avSP10theQ>
 <xmx:fhWIatGyx02HIwhdSKBiKIgFRY20dy0p9zPUzhOtxeiy9whLnPWF4A>
 <xmx:fhWIauKeJkGQEidnUC4eolm_A0ZdiRMWHM-cxDUQQW-Go7fL9KbYeyyL>
Feedback-ID: i62564b17:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 21 Aug 2026 05:08:13 -0400 (EDT)
Received: by athena.silentflame.com (Postfix, from userid 1000)
 id A3AAC280E13; Fri, 21 Aug 2026 10:08:12 +0100 (BST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86cxvf3a6b.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN> <86cxvf3a6b.fsf@HIDDEN>
Date: Fri, 21 Aug 2026 10:08:12 +0100
Message-ID: <87y0dzon7n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN,
 michael_heerdegen@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii [18/Aug  3:06pm +03] wrote:
>> From: Sean Whitton <spwhitton@HIDDEN>
>> Cc: 81638 <at> debbugs.gnu.org
>> Date: Tue, 18 Aug 2026 11:12:35 +0100
>> 
>> Eli Zaretskii [17/Aug  2:09pm +03] wrote:
>> > And if all of the above is not enough, and you still insist, I could
>> > agree to adding nil to the valid values (but then please suggest a
>> > suitable :tag), but allowing any symbol is IMO too dangerous,
>> > especially as we use cl-flet there.  Next we will hear from someone
>> > reporting a vulnerability in Emacs.
>> 
>> It's not a safe local variable value, though, it's just a customisation
>> option.  Allowing the user to input any symbol there seems okay to me.
>
> There's the value :all of enable-local-variables, yes?
>
> Anyway, I'm surprised you agree to go with such inelegant solutions.
> This use case is clearly outside of flyspell-prog-mode's design space,
> so adding another Flyspell variant that does fit these use cases
> sounds much cleaner to me.  Hacks and kludges are okay as local
> solutions, but here we are asked to officially embrace such a kludge.
> And that's even before we talk about discoverability, which basically
> will be nonexistent for others who'd want to do the same.

I didn't mean to suggest that I think we should go with that solution, I
was just commenting on the safety/security aspect of the proposed patch.

It seems like we should take a step back here.  Doing this by matching
on faces does not seem like a principled approach; as Stefan said, it's
a quick hack.

It seems like we could use a whole new mode taking a different approach.

-- 
Sean Whitton




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

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


Received: (at 81638) by debbugs.gnu.org; 19 Aug 2026 11:44:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 19 07:44:02 2026
Received: from localhost ([127.0.0.1]:35339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwei9-0003z6-Rl
	for submit <at> debbugs.gnu.org; Wed, 19 Aug 2026 07:44:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41994)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wwei6-0003ye-HU
 for 81638 <at> debbugs.gnu.org; Wed, 19 Aug 2026 07:44:00 -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 1wwehy-0001XP-8F; Wed, 19 Aug 2026 07:43:50 -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=M/hic1/8BwwqmidSL0iI4I5lvNErv5UCev6OP/X5S10=; b=IkDNmqDToT4/S+3ja/h1
 ucGmGzdVkcY3tsnEbGpfKYJcgrkjo0iRMGoqVrJMigrwLJ5pUqLMmEE2QbBak5XifcyDi0RwTip6a
 5ug5rvVf3xTTzdp+9zSG0XhkDeBZmsVwYFDOKvmb6BiU0xjU8hjapzU9nsAReckhYATmP97jsmKNY
 DnH9OON3x54fe1trzmX6iniHPWG6NnwgAiWLfF12waLtm5GhwsJ3NpAvm/0A432Y9IMApf5c7C7mL
 s4yzC1rF6fkodViJES/Y/j+KpVq40C3wnm8wkDpWnf195bvTpD/zVe6L+6nZATOQAxVRZLoFrozM6
 fRpyv8RCN4TCvg==;
Date: Wed, 19 Aug 2026 14:43:46 +0300
Message-Id: <861pbu2v4d.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87a4qjymk7.fsf@HIDDEN> (message from Michael Heerdegen on
 Wed, 19 Aug 2026 02:35:20 +0200)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <jwvecfv2ta3.fsf-monnier+emacs@HIDDEN> <865x172qwa.fsf@HIDDEN>
 <jwvik571apd.fsf-monnier+emacs@HIDDEN> <87a4qjymk7.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  spwhitton@HIDDEN,
>   81638 <at> debbugs.gnu.org
> Date: Wed, 19 Aug 2026 02:35:20 +0200
> 
> Stefan Monnier <monnier@HIDDEN> writes:
> 
> > I'd be surprised if I'm the only one who has shell scripts where
> > heredocs contain natural language text.  I agree it might not be
> > desirable to add those elements globally, but they do make sense
> > file-locally.
> 
> My initial motivation for reporting this was: I expect there will be
> other kinds of markup languages or languages describing documents out
> there where people will want to use a feature like `flyspell-prog-mode'.
> Where it makes sense to be able to control this on a file or dir local
> basis.  The point is: we don't know which (other) faces those modes may
> use or add.

AFAIU, flyspell-prog-mode is not for markup languages.  It's for
program source code.  If we want a variant of Flyspell for markup
languages, we should add it -- this is basically what I proposed.  The
advantages are: it will be less kludgey, and it will be more
discoverable.  The implementation should be simple, so frankly I'm
surprised this suggestion is not immediately embraced by everyone 😉.

> OTOH I don't understand what the benefit of the restricting the binding to
> to a subset of three given faces is.

The restriction is in the purpose of the mode: it's meant for
proofreading comments and strings in program sources.

> The warning might catch a typo,
> ok.  But getting a warning every time I open the document is annoying.

I agree that you should not see the annoying warning, I just don't
think flyspell-prog-mode is what you want.  You want a different
flavor of Flyspell, one that is suited to text with markup (TeX, HTML,
Markdown, Texinfo, etc.).

Anyway, I think my opinion is clear, so if you-all still want to do
what Stefan suggested, feel free to ignore me.




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

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


Received: (at 81638) by debbugs.gnu.org; 19 Aug 2026 00:35:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 18 20:35:30 2026
Received: from localhost ([127.0.0.1]:58469 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwUHB-0008En-TN
	for submit <at> debbugs.gnu.org; Tue, 18 Aug 2026 20:35:30 -0400
Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]:55490)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wwUH9-0008EQ-Gf
 for 81638 <at> debbugs.gnu.org; Tue, 18 Aug 2026 20:35:28 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4hPnfK4Mz9zMlPR;
 Wed, 19 Aug 2026 02:35:21 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787099721;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=k5JqbfAJFvR5a7s4SkM6alx2cboUmI2Xt/Ax1m7Hv8w=;
 b=COkByTCIngLsTNz0XmOYOhUgQPv8zBafDl1+eyg/mz/vA5fGSlU/sN00JoPXeMwYxU75K9
 KY/tvk3MN14NxEtXJUB2vFR/916SO1WRm8KX8kmBg3j+SeriHskiRbeq3AmjLgafkZxQtP
 2xpsBkf8gkioN9kNcMdR11dAuW+1EczxzYaeM3/uqvaWHh5QG9ktp0WFvnZTvuXMsL2IED
 c8lRfNZnqIZnEKo1lnSDQDwj1sk0tZJ52iB5pKkTJr7+6oLnuYdhnRUGvOJqjJzgOV0JI3
 1VPOv9TnmvRyXAQV038CtPVhGqkvmdtdkoakZfOrJqd9JJ2+9UoOVWd+5D0JiQ==
Authentication-Results: outgoing_mbo_mout;
 dkim=pass header.d=mailbox.org header.s=mail20150812 header.b="xq/ryAXV";
 spf=pass (outgoing_mbo_mout: domain of michael_heerdegen@HIDDEN
 designates 2001:67c:2050:b231:465::2 as permitted sender)
 smtp.mailfrom=michael_heerdegen@HIDDEN
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787099720;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=k5JqbfAJFvR5a7s4SkM6alx2cboUmI2Xt/Ax1m7Hv8w=;
 b=xq/ryAXVHhcUvSRxfg2vJ8lb9aWQpmuCZkfb5GkaKwljKCqpJQIlcqCJKYf4CfYdAe/Opv
 nOyiLQZWWTqB9iZKCUojub4LyixL3BRgE+OhQBc8o+H246HQeMxzvDTcFxFWJbzQi8MBym
 a1+aIV6CBaZP4NknxyzWQajy02cqWHgt8p9766waFrHWI0kZaASvvpa1W3vKhEOdhnm/yf
 parVa5pNkJ/h3mcaNAtAnZwZ5kglwVWKYne0lcjimPSUa3GQOAMJkR8SkrkQgh8QqPsyOW
 j4z9e69OtgcKTlsrOP6aZ+mKQNaaq/GlnkuaIlcEKYwrjiyXhl+oEbrwK83cAg==
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <jwvik571apd.fsf-monnier+emacs@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <jwvecfv2ta3.fsf-monnier+emacs@HIDDEN> <865x172qwa.fsf@HIDDEN>
 <jwvik571apd.fsf-monnier+emacs@HIDDEN>
Date: Wed, 19 Aug 2026 02:35:20 +0200
Message-ID: <87a4qjymk7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-META: ir544pb173o1k4g3zu71dj1jwn8w3xph
X-MBO-RS-ID: 0e15872c044a3a4bd28
X-Rspamd-Queue-Id: 4hPnfK4Mz9zMlPR
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: Eli Zaretskii <eliz@HIDDEN>, 81638 <at> debbugs.gnu.org,
 spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> I'd be surprised if I'm the only one who has shell scripts where
> heredocs contain natural language text.  I agree it might not be
> desirable to add those elements globally, but they do make sense
> file-locally.

My initial motivation for reporting this was: I expect there will be
other kinds of markup languages or languages describing documents out
there where people will want to use a feature like `flyspell-prog-mode'.
Where it makes sense to be able to control this on a file or dir local
basis.  The point is: we don't know which (other) faces those modes may
use or add.

OTOH I don't understand what the benefit of the restricting the binding to
to a subset of three given faces is.  The warning might catch a typo,
ok.  But getting a warning every time I open the document is annoying.

The implementation of `flyspell-prog-mode' might be a bit naive.  But it
is not dangerous or harmful, and actually, the interface it offers might
be exactly what a lot of people want or expect.  At this moment I have
no idea what a rewrite would do differently in a fundamental way.  And
it works okish.

We can still improve the situation for LaTeX in a different way.  Fine
by me, really.  But `flyspell-prog-mode' will probably still have its
use cases for that the subject of this report is relevant.


Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 18 Aug 2026 19:48:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 18 15:48:40 2026
Received: from localhost ([127.0.0.1]:55815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwPnb-0003ol-SA
	for submit <at> debbugs.gnu.org; Tue, 18 Aug 2026 15:48:40 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30073)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1wwPnZ-0003oX-JX
 for 81638 <at> debbugs.gnu.org; Tue, 18 Aug 2026 15:48:38 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F3F34100C87;
 Tue, 18 Aug 2026 15:48:31 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1787082510;
 bh=b93GyZloi3QvDiFF7TSYD1CQLOrTE/shWEdVymIi7Jg=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=FX4BbvGaaGf9cC0oiEA9rpo+Ytqig99tOgRybWx5NskS4f6CljdDAEm8PrOMt98tR
 sVGn0W9evGGP8XFxHDqjeOCl06URnaOY5k3Wvn851rlH/UKVAnEWCKHcaVKMpygcnN
 HoJ3M6wQrKdO/wCn/MyX/52X76ZYe9ZETcP0FOjL9AFgHbu/mQ9OnRPPrJ5gaRGQwc
 luf5yuwkvHt7xovsGuHDn1gI5NFfquetyqBz/SdrvSktbrlZulUoMG3onEh0Cq7/tS
 FinLrlXd+QTPILRDW0bfYOpQNbjv4u7BuHApa4V+ZZBlGbm/3ILbu8IJeM1OOPcZBL
 yjfQW2LYkJCZw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CF2E1100BB3;
 Tue, 18 Aug 2026 15:48:30 -0400 (EDT)
Received: from alfajor (modemcable181.99-80-70.mc.videotron.ca [70.80.99.181])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AE5DB12034F;
 Tue, 18 Aug 2026 15:48:30 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <865x172qwa.fsf@HIDDEN>
Message-ID: <jwvik571apd.fsf-monnier+emacs@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <jwvecfv2ta3.fsf-monnier+emacs@HIDDEN> <865x172qwa.fsf@HIDDEN>
Date: Tue, 18 Aug 2026 15:48:30 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.033 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: 81638
Cc: 81638 <at> debbugs.gnu.org, michael_heerdegen@HIDDEN,
 spwhitton@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 (---)

>> > And if all of the above is not enough, and you still insist, I could
>> > agree to adding nil to the valid values (but then please suggest a
>> > suitable :tag),
>> BTW, there can be other good reasons to use a value not covered by the
>> current `:type`, e.g. it can make a lot of sense to put `sh-heredoc` or
>> `perl-heredoc` in there.
> AFAIU, those are not normally human-readable text, so I'm not sure
> what sense you are seeing in doing that.

I'd be surprised if I'm the only one who has shell scripts where
heredocs contain natural language text.  I agree it might not be
desirable to add those elements globally, but they do make sense
file-locally.

[ BTW, another face I've seen used in there is things like
  `font-lock-function-name-face` so as to spell check identifier names
  at the point where they're chosen but not when merely referring to
  a function defined elsewhere (where presumably the compiler will
  detect typos).  ]

>> >> But I wonder if we should, in addition, generalize
>> >> `flyspell-generic-progmode-verify' so that members of
>> >> `flyspell-prog-text-faces' are allowed to be functions (test
>> >> predicates).
>> > If you want to do that, it is better (and easier) to override
>> > flyspell-generic-progmode-verify with your own function.
>> You mean set `flyspell-generic-check-word-predicate`?
> That's one way, yes.  But if someone wants to use flyspell-prog-mode,
> the variable is already set.

`flyspell-prog-mode` doesn't do anything else than set
`flyspell-generic-check-word-predicate`, so if you want a different
predicate you're better off using `flyspell-mode`, indeed.


=== Stefan





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

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


Received: (at 81638) by debbugs.gnu.org; 18 Aug 2026 19:02:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 18 15:02:59 2026
Received: from localhost ([127.0.0.1]:55351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwP5O-0008Te-Dq
	for submit <at> debbugs.gnu.org; Tue, 18 Aug 2026 15:02:58 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35004)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wwP5L-0008Sh-Tc
 for 81638 <at> debbugs.gnu.org; Tue, 18 Aug 2026 15:02:57 -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 1wwP5E-0002bw-MG; Tue, 18 Aug 2026 15:02:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=sBVaKUneH1D2gMXh6fTh5xMtTt1wFUDufed9u965ii4=; b=pr3V4bHbgU+X
 fnBiUkPUU8xfloyTXU1GKfkXqEP9rx0XAKF1heUJ3ejAb+yxrRwGTODEn+ybipLnWGrLeLG9wH5Xy
 DMeDXizAD1paCsX5Nh010qZNHlfWCgHkdpwS8HxN3WtYP6BQhqtmZshTYUXTE1oTjHGEaWR6Wy2FN
 VCWl04oNzBA/dO6r9cpuHqrS3Rp+uIg/YQONrmppOi7iExnbzaiXN3ov53HfHmpjoDY2CVfoG2FFZ
 DiYKJ8oiM9A/mXot/e9RnC+X536wgytdKFS+2aPoZMUZngNdIzYjaJTN4/G0H9oRooRHi4q6hT4UL
 MDzyL2PvAiAmDknzMzpESA==;
Date: Tue, 18 Aug 2026 22:02:45 +0300
Message-Id: <865x172qwa.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvecfv2ta3.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 18 Aug 2026 14:25:39 -0400)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <jwvecfv2ta3.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, michael_heerdegen@HIDDEN,
 spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>,  Sean Whitton
>  <spwhitton@HIDDEN>,  81638 <at> debbugs.gnu.org
> Date: Tue, 18 Aug 2026 14:25:39 -0400
> 
> > And if all of the above is not enough, and you still insist, I could
> > agree to adding nil to the valid values (but then please suggest a
> > suitable :tag),
> 
> BTW, there can be other good reasons to use a value not covered by the
> current `:type`, e.g. it can make a lot of sense to put `sh-heredoc` or
> `perl-heredoc` in there.

AFAIU, those are not normally human-readable text, so I'm not sure
what sense you are seeing in doing that.

> >> But I wonder if we should, in addition, generalize
> >> `flyspell-generic-progmode-verify' so that members of
> >> `flyspell-prog-text-faces' are allowed to be functions (test
> >> predicates).
> > If you want to do that, it is better (and easier) to override
> > flyspell-generic-progmode-verify with your own function.
> 
> You mean set `flyspell-generic-check-word-predicate`?

That's one way, yes.  But if someone wants to use flyspell-prog-mode,
the variable is already set.




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

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


Received: (at 81638) by debbugs.gnu.org; 18 Aug 2026 18:25:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 18 14:25:49 2026
Received: from localhost ([127.0.0.1]:54922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwOVQ-0005H7-Fl
	for submit <at> debbugs.gnu.org; Tue, 18 Aug 2026 14:25:48 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20909)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1wwOVO-0005Fl-BD
 for 81638 <at> debbugs.gnu.org; Tue, 18 Aug 2026 14:25:46 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BF34680702;
 Tue, 18 Aug 2026 14:25:40 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1787077540;
 bh=mtVZD1iQTkDoRu3tjpgGfzg3wq0tMUb0hEb+0JcSA28=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=EEvXcEw6LdE2LjJ5Zs/4MzRl0gTxfU/zNjZ9nK3IxTGpVdwqC4VOpC4oG1T/VHr+f
 ge9AomZZt+TMuXiiVDhIAwgYzdRFrEtgcW8uHV3f0hmVJzruSFo+MDueQkHACLcQZC
 TcLRB1CkfM1j/dq6v8vUQkYq7TnG0mMwjqV8bwT2mAODo5F6O746aI7eZj17nzMbC0
 8S8AlOrUNGgWuhVer68FBG+QT8TYC6sVO3i3h+3v9ByT9uHTeoNVn70oxG9McWXPnO
 bWXHopVAqSiLdsdnSDicNLapGCRE9Y61/l/JrMq4uAbWRa5q7ytU/GkkQ/vPt1tMhU
 viLn2CgjvaUmA==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0A530801A6;
 Tue, 18 Aug 2026 14:25:40 -0400 (EDT)
Received: from alfajor (modemcable181.99-80-70.mc.videotron.ca [70.80.99.181])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DA3AF120156;
 Tue, 18 Aug 2026 14:25:39 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86ecfx3sxa.fsf@HIDDEN>
Message-ID: <jwvecfv2ta3.fsf-monnier+emacs@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
Date: Tue, 18 Aug 2026 14:25:39 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
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: 81638
Cc: 81638 <at> debbugs.gnu.org, Michael Heerdegen <michael_heerdegen@HIDDEN>,
 Sean Whitton <spwhitton@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 (---)

> And if all of the above is not enough, and you still insist, I could
> agree to adding nil to the valid values (but then please suggest a
> suitable :tag),

BTW, there can be other good reasons to use a value not covered by the
current `:type`, e.g. it can make a lot of sense to put `sh-heredoc` or
`perl-heredoc` in there.  I'd rather not have such a closed set of
values in this `:type` (which, in turn, precludes the use of Custom's
`set` type).

> but allowing any symbol is IMO too dangerous, especially as we use
> cl-flet there.  Next we will hear from someone reporting
> a vulnerability in Emacs.

`cl-flet` just lets you define a lexically-local function.  It's no
more dangerous than (let ((f (lambda ...))) ...).
It doesn't touch any global definition.

You're probably confusing it with  `cl-letf` or the old cl.el's `flet`.

We could (should?) mark `flyspell-prog-text-faces` as a safe
file-local variable.

>> But I wonder if we should, in addition, generalize
>> `flyspell-generic-progmode-verify' so that members of
>> `flyspell-prog-text-faces' are allowed to be functions (test
>> predicates).
> If you want to do that, it is better (and easier) to override
> flyspell-generic-progmode-verify with your own function.

You mean set `flyspell-generic-check-word-predicate`?
Agreed.


=== Stefan





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

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


Received: (at 81638) by debbugs.gnu.org; 18 Aug 2026 12:06:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 18 08:06:34 2026
Received: from localhost ([127.0.0.1]:50186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwIaP-00060Q-UD
	for submit <at> debbugs.gnu.org; Tue, 18 Aug 2026 08:06:34 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53500)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wwIaN-00060B-Ty
 for 81638 <at> debbugs.gnu.org; Tue, 18 Aug 2026 08:06:32 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wwIaF-0008Ci-PB; Tue, 18 Aug 2026 08:06:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=y8L9Jy/VH7UBkhbxQunc3THymV4FNNoRtQBbQbwI6MA=; b=PK3eHBm1m63Q
 NZCadpCOtezB2+b/mREQjPOjFDEXBrn/vr3b2372C0w6OpV1KTkVgwKFu3fgRMTqWqApKsfFX1q3n
 OSRDNrbT4KUkxPJR+E/ltOlfRrnfYRr4356AEcRDZfaIr8+l5B2u4D0FjQePAYyIBtHoqToOvZz17
 8H5nUPFaAASse2q97lMA2jv0sQIg4Mns4jJfnXlRmpagw/FGyTprrCy1OyZM9BGZDDP6o8BNR2jC6
 1dvUsiHUAN8jbmwCMaqfVP20okM2uh/sNaFhBHVuAuXrmX3lx7MzeVgVplPmTpB6CBG/YbIlxay6e
 0gCSQ2LuOESa3h2Cv0xEwQ==;
Date: Tue, 18 Aug 2026 15:06:20 +0300
Message-Id: <86cxvf3a6b.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87o6ezrb3g.fsf@HIDDEN> (message from Sean
 Whitton on Tue, 18 Aug 2026 11:12:35 +0100)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87o6ezrb3g.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN,
 michael_heerdegen@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 81638 <at> debbugs.gnu.org
> Date: Tue, 18 Aug 2026 11:12:35 +0100
> 
> Eli Zaretskii [17/Aug  2:09pm +03] wrote:
> > And if all of the above is not enough, and you still insist, I could
> > agree to adding nil to the valid values (but then please suggest a
> > suitable :tag), but allowing any symbol is IMO too dangerous,
> > especially as we use cl-flet there.  Next we will hear from someone
> > reporting a vulnerability in Emacs.
> 
> It's not a safe local variable value, though, it's just a customisation
> option.  Allowing the user to input any symbol there seems okay to me.

There's the value :all of enable-local-variables, yes?

Anyway, I'm surprised you agree to go with such inelegant solutions.
This use case is clearly outside of flyspell-prog-mode's design space,
so adding another Flyspell variant that does fit these use cases
sounds much cleaner to me.  Hacks and kludges are okay as local
solutions, but here we are asked to officially embrace such a kludge.
And that's even before we talk about discoverability, which basically
will be nonexistent for others who'd want to do the same.




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

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


Received: (at 81638) by debbugs.gnu.org; 18 Aug 2026 10:12:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 18 06:12:45 2026
Received: from localhost ([127.0.0.1]:48795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wwGoG-0002UW-Uj
	for submit <at> debbugs.gnu.org; Tue, 18 Aug 2026 06:12:45 -0400
Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]:57397)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1wwGoE-0002UH-EI
 for 81638 <at> debbugs.gnu.org; Tue, 18 Aug 2026 06:12:43 -0400
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfhigh.phl.internal (Postfix) with ESMTP id 0247814000EE;
 Tue, 18 Aug 2026 06:12:37 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Tue, 18 Aug 2026 06:12:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:cc:content-type:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm2; t=1787047956; x=
 1787134356; bh=DMd4PBs3cpdghiarLietpFJp5bDddwpRJq4FsTNSDmM=; b=m
 9HDz7E6gPhz6Ce9npratKdbPHLfnErw3q+gkXIfeZV+jT00x/oEYe4o2i/Gs6HPm
 P0DkSY8XTXKx4/mysDois9gtFThJ6fJTM84jZBjPH/18DEjkBI7dpZUke30a9WgM
 L+tY9CXAwodwOWOiXiZOtYUzt8vuAQBP3ymYSHEMoGlbzXw9oFQ+Tjzrl7KLf3SA
 wX+ng/UFJXLgIaqpub0PnuZIZ4RlNw0CqHNvNvbciX3DV1Ulb+hG09rtvgCbGzwB
 RXftdoqobAZckqd+jpGZ1iMpXCGChiA3NdnXbmdCSjsjjIL7w2/A+xGe0b92CMBK
 t6Mn+IYPd07x5ZfxChUUA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1787047956; x=1787134356; bh=DMd4PBs3cpdghiarLietpFJp5bDddwpRJq4
 FsTNSDmM=; b=WLRDLyAuk/+mI/pZD7/85nHMFVnyod4F9qLwlngJSt8KwhZmPNJ
 buzSvDUdexnwlyEk1so5DhzrKWKb+xVhBoea2ktTJ8qcjdk6TQfwNOo+9+OGJjKg
 WREKmp3W9gnevoaAsCn+10gtiBjzUJAZv8eIUfpUuJvI5FXLjtuQ6DNUm9tmbGBG
 lHwXGGFzQOz7SJy8fA0hqlIxfU/R0t171qJ02MVHOhZ2WsfBNMfFFgz8RXuYKPmd
 TMV/WfnNqFibObaSA/7t6Hzik2Z6xRQWmZIjbD/b79TxhESQgaevOcIcpWD0rP68
 DtBSpC3lEXyVer3FEqNoERP4JLvC4CYcOUw==
X-ME-Sender: <xms:FDCEakvZ3DayRXnjvI0CQ7XLA7fvau0Zvq7qFAMV2q2y5eQsmWIarw>
 <xme:FDCEavT0hfupBonoNXk8shL3EU9Cp8V92H7hhVUyyR-gSrgFZJCVFaeIR1Od9S1OW
 xXuvPFLyGC2UNd0aYlEq9S6DBo8C6y4Uh4resVcJpy7CyVtzM3HRHQ>
X-ME-Received: <xmr:FDCEaqO5TYigKhMTL2CAXpUh9Y04oK34opA3hntSBAllEMH_Qb6QvCjK5kTdDd4fb0sg030z7frV>
X-ME-Proxy-Cause: dmFkZTGyHQhiI355U0Zhc1WsdxuSbvB5M3/5nPJvDmVN0NYMnqoHYlg5Fe3a4AW9+XFvZ9
 1Eg2tJgMD/0YtywsokMGRfKQR4Il0d1/qqDZS29VYvGPVI1slnIJVEiYoMhfSa4yyr6O6m
 XDjbNImNLxz/7RprvOkscrf9S+qAqGCld44KbfmSLJK6rdKX9eJtKBA5x0B1TXYQ9oTRZX
 KRUK6mFxfD88SuUNQxHpX9PHa2aZvo2TFUYExML6LavWKr66fs0/QZc3MmKNkJuK9Z67gd
 KhKsFiSgTKcCwMlLFN+9xAvF7RNCpQB6i0ybFI3Hc06NgDm/z6Fdc6BMMQLZGR38AjHhq8
 joC/7tq0gwMXCvVJAOX5gc9+IYHaxPUXJC2F1uP+gL1Hlds6u8yXeMxt6jpH0QXnLHxJmO
 lvdw/uT6QtlxKWNTgxoWHMDVf+SLDAMgxLMkazj00jINhF7CLCxxxA4Py0rUSRueQypmyo
 CnEReIhq+LtEP14dN9F652jHOk+vFkTsFwvWX/F39weujfYidZnE3rKS4/+xFv8lQj3Q9R
 6wNg5O3M/a6uqS/yoY3GXMvySeMtV7qh6uq8PsMF1tG8UW28KAR/2y2gjrmluz3o5Of0Yh
 ebKB3CIGXWGNlSzi1Zb2lBbd+LxKz0ZsCrhgT31GNTw0milr0bnjA1cpJW0g
X-ME-Proxy: <xmx:FDCEakbKuqjti0ELUoWL-zLhvqntrshP4QUtNxURTzcspX3gpoAc-A>
 <xmx:FDCEakwXtl1aMRQTVs5ecODVvgibf7K0s0QTZAgDNvt4Lj7Psw9bkw>
 <xmx:FDCEavIZs_z0mPJoYqW5bUNm7pQvWNA4BvbqsdJz4MXOEQkN-dAgDA>
 <xmx:FDCEauoKvOtJ3mu5wmw-yNS0ng_thyPluxH43hmViFUzdYz99WvCmQ>
 <xmx:FDCEakNrZZZGv0elHVLoQJkpYWAf7vrchIeRC2orsr6HZ1Vy_FCn0BlG>
Feedback-ID: i62564b17:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 18 Aug 2026 06:12:36 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id B9ABE7E666A; Tue, 18 Aug 2026 11:12:35 +0100 (BST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Michael Heerdegen
 <michael_heerdegen@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86ecfx3sxa.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
Date: Tue, 18 Aug 2026 11:12:35 +0100
Message-ID: <87o6ezrb3g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <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 [17/Aug  2:09pm +03] wrote:
> And if all of the above is not enough, and you still insist, I could
> agree to adding nil to the valid values (but then please suggest a
> suitable :tag), but allowing any symbol is IMO too dangerous,
> especially as we use cl-flet there.  Next we will hear from someone
> reporting a vulnerability in Emacs.

It's not a safe local variable value, though, it's just a customisation
option.  Allowing the user to input any symbol there seems okay to me.

-- 
Sean Whitton




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

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


Received: (at 81638) by debbugs.gnu.org; 18 Aug 2026 00:13:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 20:13:14 2026
Received: from localhost ([127.0.0.1]:44279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ww7S6-0002TH-13
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 20:13:14 -0400
Received: from mout-p-101.mailbox.org ([80.241.56.151]:53908)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1ww7S3-0002Sy-5z
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 20:13:12 -0400
Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4hP9C46374z8v1j;
 Tue, 18 Aug 2026 02:13:04 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787011984;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=hUmT9IQMXi0YeIy2V3gM1cO6YMlUE4SWYmm/VQX5Yaw=;
 b=dDojRMrp9meWX7uP3SG6N6BvIysCzBi8gul2Aa6eh6ITlaPB44AhvYhcXqQcrAz2GrlqY4
 UWeen/Ah7aaL8dYKUs0/G6zUdDUHi8m1zlWYli05mgmUuDMEGwqdC3E9vxY9q3ysKerOCK
 meQ4mNpbHKkchGVGAyQtD+z1ELXLu+EQO0q77Pi6PFtmdeFAUIudNszfOYquOaEgREEenn
 6InKRK3/btUKJgaA8UKpboqUqzvGqCzT9tdxar8sBFMPy78tpcWdrhEy/VT1haAyUvTylQ
 Bz1gY/KiZJB0MEaEOFPTWZXjJM+DP3bjVvdYRASzmg7/dfnjmybcw1cCx3PUYA==
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1787011983;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=hUmT9IQMXi0YeIy2V3gM1cO6YMlUE4SWYmm/VQX5Yaw=;
 b=iX8YYOxPTASUbSMbfqACdcWWXXriKBjD4o/p3+YjHjHS70v4QrEDCInRJFGdLz4wOWIq4S
 zeqEYV9MOd/c0H4ozxbhJNHOcuffNzxq46+4hTxVa6RFrX0J8sV4r3YguV9OMtKwAIqUqq
 nbI+ZuPus62UKCpaVIYpp2lOgf0TrR/W9GkVM2j/DQTurU25lxI8PYvTkSk5uepHshLEb/
 GlI+nvsrxWKk+rduMH9SWp0K08hKolUSgbmQaX64rt2f6i8OtW5Y7Fof9a9/Nl+3sTWpie
 I4SWvnlLB98AIynxET2orK0clDAuBAxFLUvnzAEMPYDRdphPlHmav4fknPnM7A==
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <jwvmrukldzx.fsf-monnier+emacs@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87mrukk6ep.fsf@HIDDEN> <86o6f03a83.fsf@HIDDEN>
 <jwv4igsmx9g.fsf-monnier+emacs@HIDDEN> <86mruk377h.fsf@HIDDEN>
 <jwvmrukldzx.fsf-monnier+emacs@HIDDEN>
Date: Tue, 18 Aug 2026 02:13:03 +0200
Message-ID: <87fr0cz3ow.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-META: xpryb69kykkwzxptgzcukp74iy1sd6fo
X-MBO-RS-ID: b048ec97069029639e0
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: Eli Zaretskii <eliz@HIDDEN>, 81638 <at> debbugs.gnu.org,
 spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> I was thinking of a patch like the one below.

Yes, that's good enough, LGTM, thank you.

I'm not sure what the best path to go beyond that would be - if you just
install the patch and close the report, I would already be happy.

Not that I think it's perfect.  But I can't estimate what kind of
requirement in the general case might occur and what a good solution
that covers all possible cases should look like.  You two probably have
more urgent things on the table...


Thanks,

Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 17 Aug 2026 19:59:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 15:59:05 2026
Received: from localhost ([127.0.0.1]:42590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ww3U9-0002pE-3V
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 15:59:05 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1633)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1ww3U6-0002oc-PI
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 15:59:03 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 675F0103895;
 Mon, 17 Aug 2026 15:58:56 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1786996735;
 bh=Ap3jxb5/4Nibyl6kNR5q5rl5sRXeV/OoHfUTWJ951vE=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=neLdsRvRvhZhSe1TYgH81oNUmx4DM9FxgwTV0+tPt+2EKklhqeP3FqMG8hCy4WUN6
 XO078k2XVWMJDZFhHyfIYe/C5UTsPg7yRnX8QcmNSBuSGXB01jRs/sbN/So45pWcXW
 V/vtH9flREx8DFGV+Nxq5nKtUs3JEwfSl+8+kz6ztnUv8z4brFfh/q6D9ZYp9Pdag+
 7DlpZXpu6du5od8ajTkfCHskxIh8LbyWCmIZqmI/8HxOx2SW2h6huTT3vJ0U+6yb7j
 wAfCqoINz8c4R64MQ2ew0Z75zYi1NBSq9uO3+FvJrgVEK/QS2XBL5510LY+2pkP7bY
 FT1EpmcIA+ypQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 398161018BB;
 Mon, 17 Aug 2026 15:58:55 -0400 (EDT)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1A04F120399;
 Mon, 17 Aug 2026 15:58:55 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86mruk377h.fsf@HIDDEN>
Message-ID: <jwvmrukldzx.fsf-monnier+emacs@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87mrukk6ep.fsf@HIDDEN> <86o6f03a83.fsf@HIDDEN>
 <jwv4igsmx9g.fsf-monnier+emacs@HIDDEN> <86mruk377h.fsf@HIDDEN>
Date: Mon, 17 Aug 2026 15:58:54 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.149 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: 81638
Cc: 81638 <at> debbugs.gnu.org, michael_heerdegen@HIDDEN,
 spwhitton@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 (---)

>> We could try and clean things up by renaming it, but it seems to me that
>> a simpler solution is to improve the defcustom's `:type` to reflect more
>> faithfully the values it can take (i.e. a list of `face` property
>> values).
> The request was much more general, and in particular he wanted to be
> able to specify nil.

nil *is* a valid `face` property value.

I was thinking of a patch like the one below.  It's a bit less
convenient UI-wise and lets you specify "suboptimal" values like

    (font-lock-string-face font-lock-string-face font-lock-string-face)

but I expect that there aren't very many users setting this var via
the Custom UI, so it's a small price to pay.


=== Stefan


diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 028bba86d2c..e15b9556598 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -397,9 +397,10 @@ sgml-mode-flyspell-verify
 (defcustom flyspell-prog-text-faces
   '(font-lock-string-face font-lock-comment-face font-lock-doc-face)
   "Faces corresponding to text in programming-mode buffers."
-  :type '(set (const font-lock-string-face)
-              (const font-lock-comment-face)
-              (const font-lock-doc-face))
+  :type '(repeat (choice (const font-lock-string-face)
+                         (const font-lock-comment-face)
+                         (const font-lock-doc-face)
+                         symbol))
   :version "28.1")
 
 (defun flyspell-generic-progmode-verify ()





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

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


Received: (at 81638) by debbugs.gnu.org; 17 Aug 2026 18:58:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 14:58:22 2026
Received: from localhost ([127.0.0.1]:42270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ww2XN-0007Gw-Uy
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 14:58:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48054)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ww2XM-0007Gf-5J
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 14:58:21 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ww2XG-0006Di-Da; Mon, 17 Aug 2026 14:58:14 -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=80AbeslJEIYCQsFjUekRxNaXqq7zZacpdbwhXk/tbGU=; b=VvpDg0MmLFSM
 z1iaTyJhJ8n9ga8VI6GvKiG0E/+ApsoWGALL3kLJ4KV0xpEQj9iEUcx+kc6traEJLIpe9cR7B4fD5
 NM3d74V9z2+1+23+YX8xCckiW3htOvy16XBGRbisj7Egu7VWDVxGECHscbc1A1EqwPAe2/3K/5Iv6
 eAMQySa8qyOUK5yWJyE00qzoap0TlEq/s8PhVo0aJOoxBKSK+0+hOtjGKY2wZRVUphjEMBbhntozK
 bXbR4xrCm5TAGuTZqdg65FgWL81gDJfcaqpu4uAgPKsNoaOrtW+LstiOaOSBX3fd0ttpYNr+MmQIa
 tDZNuyScBPy8MFN/16zJ8w==;
Date: Mon, 17 Aug 2026 21:58:10 +0300
Message-Id: <86mruk377h.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv4igsmx9g.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Mon, 17 Aug 2026 14:16:56 -0400)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87mrukk6ep.fsf@HIDDEN> <86o6f03a83.fsf@HIDDEN>
 <jwv4igsmx9g.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, michael_heerdegen@HIDDEN,
 spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>,
>   spwhitton@HIDDEN,  81638 <at> debbugs.gnu.org
> Date: Mon, 17 Aug 2026 14:16:56 -0400
> 
> > How about making a separate variant of flyspell-mode for these use
> > cases, then?  flyspell-prog-mode might be an approximation, but AFAIU
> > from what you are saying, it is not optimal, because you need to tweak
> > it in ways that was not meant to happen, and because LaTeX is not a
> > programming language anyway.  A new variant of flyspell would make
> > more sense, IMO.
> 
> `flyspell-prog-mode` was a kind of quick-hack and I think Michael's
> abuse of it just shows that this quick hack is useful more generally
> than its original motivation.
> 
> We could try and clean things up by renaming it, but it seems to me that
> a simpler solution is to improve the defcustom's `:type` to reflect more
> faithfully the values it can take (i.e. a list of `face` property
> values).

The request was much more general, and in particular he wanted to be
able to specify nil.

What I'm suggesting is to have a new flyspell-tex-mode, which will
cater to this and other similar cases.




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

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


Received: (at 81638) by debbugs.gnu.org; 17 Aug 2026 18:17:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 14:17:06 2026
Received: from localhost ([127.0.0.1]:41900 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ww1tS-0004Jc-Fj
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 14:17:06 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29681)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1ww1tP-0004J4-Se
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 14:17:04 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 21A1A441F1F;
 Mon, 17 Aug 2026 14:16:58 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1786990617;
 bh=vaWYiUVB4LjgWdofjXN7SBfJYYGUfQaehMaXiVGuH24=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=BTYPhOoBRzKKx4CM4SXlSt7EUFKxt8rzFtrTRN9fzUVshdjbcxm9NECOPT14FHy5s
 Yo4e+7jyxJNIw5KvXgYtdorXiAcrmqFgpgL9jn4rCwu+LLz+GIxMVAk+Ome3fchJOe
 cd8PftRYu62uYDyd6Ts01/3A2EusZEDxKpcEiYoJ8bWrmwPOt7jQg1Tqx2NCPJj48i
 vweK2k5DwM1phneIQuytyZ+QwpLiBzE/KBS3vIPyctNAGjYxLM7UcgJ0PweOIQ3lvZ
 yd/WU6XMvQoi362FIBlCaBGxWAlauXvPFYYJ+BLrwLRtJ6vyqJj1vaQuDWkh4uZr+H
 5JWQFoU2jrkKw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E9E72441F1C;
 Mon, 17 Aug 2026 14:16:56 -0400 (EDT)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DE0A41205CC;
 Mon, 17 Aug 2026 14:16:56 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86o6f03a83.fsf@HIDDEN>
Message-ID: <jwv4igsmx9g.fsf-monnier+emacs@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87mrukk6ep.fsf@HIDDEN> <86o6f03a83.fsf@HIDDEN>
Date: Mon, 17 Aug 2026 14:16:56 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.097 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: 81638
Cc: 81638 <at> debbugs.gnu.org, Michael Heerdegen <michael_heerdegen@HIDDEN>,
 spwhitton@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 (---)

> How about making a separate variant of flyspell-mode for these use
> cases, then?  flyspell-prog-mode might be an approximation, but AFAIU
> from what you are saying, it is not optimal, because you need to tweak
> it in ways that was not meant to happen, and because LaTeX is not a
> programming language anyway.  A new variant of flyspell would make
> more sense, IMO.

`flyspell-prog-mode` was a kind of quick-hack and I think Michael's
abuse of it just shows that this quick hack is useful more generally
than its original motivation.

We could try and clean things up by renaming it, but it seems to me that
a simpler solution is to improve the defcustom's `:type` to reflect more
faithfully the values it can take (i.e. a list of `face` property
values).


=== Stefan





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

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


Received: (at 81638) by debbugs.gnu.org; 17 Aug 2026 17:53:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 13:53:13 2026
Received: from localhost ([127.0.0.1]:41594 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ww1WL-0002Gl-EE
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 13:53:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49000)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ww1WI-0002Fv-GV
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 13:53:11 -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 1ww1WB-00056A-NW; Mon, 17 Aug 2026 13:53:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=tkhAwER/PbwO3ekiRL3E99pamNQPrKFGiHSe477WR0Y=; b=dfYW3rWtwPZs
 GNNZwrSiq9UOj4csp5zrYjaBCqdUWikM5Kxj9WwpbqclXteCjVfMv0xHJdhyWr1RJ5FGLhpHu0WcK
 bNcqFJ6SSUWUE9obsWG0zt7X6A0kKDUQ7M4dg0pazLUqK0ubUfg0doJDZrcdCWeivzHOP35/SGjNz
 UjyiuSH1rExsNceV5oJJU3ewnsqUtNxpOHDngZJYW4XeTIDbtdUhaDCiQ35i4DV+0C7CpaKwMzS3o
 dk4OcS2z0dx33Cf0POYnjbhLy4jpZFAWNroyHTNludsc+exQTryxZp30inyRCvpPF13scN2zr5Pp4
 4BwvhmDZMx8LCw8nkGZngA==;
Date: Mon, 17 Aug 2026 20:53:00 +0300
Message-Id: <86o6f03a83.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87mrukk6ep.fsf@HIDDEN> (message from Michael Heerdegen on
 Mon, 17 Aug 2026 19:23:26 +0200)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
 <87mrukk6ep.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Cc: Stefan Monnier <monnier@HIDDEN>,  Sean Whitton
>  <spwhitton@HIDDEN>,  81638 <at> debbugs.gnu.org
> Date: Mon, 17 Aug 2026 19:23:26 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > How is flyspell-prog-mode useful if you set that variable to nil?
> > doesn't that basically make flyspell-prog-mode identical to
> > flyspell-mode?
> 
> I have been writing a letter with LaTeX.  In LaTeX what I want to
> spellcheck corresponds to a nil face property.  At least this has been
> my setup of choice in the past.
> 
> Normal flyspell-mode seems to perform much better now in LaTeX than it
> did years ago - but it still checks commented out parts and underlines
> some LaTeX macro names there.  So it still seems that using
> `flyspell-prog-mode' is a valid tools in such situations.  I get the
> most convenient behavior with it.

How about making a separate variant of flyspell-mode for these use
cases, then?  flyspell-prog-mode might be an approximation, but AFAIU
from what you are saying, it is not optimal, because you need to tweak
it in ways that was not meant to happen, and because LaTeX is not a
programming language anyway.  A new variant of flyspell would make
more sense, IMO.




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

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


Received: (at 81638) by debbugs.gnu.org; 17 Aug 2026 17:23:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 13:23:38 2026
Received: from localhost ([127.0.0.1]:41238 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ww13i-0008OR-4O
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 13:23:38 -0400
Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:54336)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1ww13f-0008O7-Tb
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 13:23:36 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org
 [IPv6:2001:67c:2050:b231:465::202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4hP06R56b2zMlGT;
 Mon, 17 Aug 2026 19:23:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1786987407;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=FIiQkAgFhm4ZyLoq9qpfFSsUVf/V4yAnNBlmTD9pyEs=;
 b=KQjdjPt8hgkgaXAkK7Bb6IA6weyDVUQFTt0r/LzZ2gNtgBu+IWq5IWNQKqiVY36280mIyM
 lMpFCan8dIOL1IQXRm8lvu+BnolQTaZNbjE3s2GEYcd6cRW3PmAs1ZyoKXBQUEkaKfkMgH
 O7r2lkNYvrbSrfESfI6gechTX1ffPC085S9ohCSNWbFngNsBSsGsuOyf2/Qv5pK2iNrcLS
 XRBG84DVwrtnwux2iCCbF6CfuC/+JsD+SPv5JhoqfJi+jpIOVowBIDB90S9Wca7/Kbz6iE
 1HtJvuZ2ZcRMEGqbq0+GhDeLwLmkZzOel1IC37hLV2C0KzfwFWquv2jdFA4Bog==
Authentication-Results: outgoing_mbo_mout;
 dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=DQ2kcYDY;
 spf=pass (outgoing_mbo_mout: domain of michael_heerdegen@HIDDEN
 designates 2001:67c:2050:b231:465::202 as permitted sender)
 smtp.mailfrom=michael_heerdegen@HIDDEN
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1786987406;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=FIiQkAgFhm4ZyLoq9qpfFSsUVf/V4yAnNBlmTD9pyEs=;
 b=DQ2kcYDYe4blL1gX4eyfJTdujVvam82JQ/xtfuYlpnqYOPxRDeSWiGPGlj+IfbMjP6rwMn
 vOPXCQ9Y8bJS9AMM5OU6CQ4mZa2+Fp19Uk1StC7tGj03575sylnuN+4iArrqGEJd69cFUC
 Kyw5NThjFCn84a0YaGC3IDvZRb0kSMDLJIhjd2ARBXz+HAZvhc9dUQr4YERWyX7pygziXn
 UgDzyGg0p3v4qGFSfCIIf98WbdxLnavKniw2YcuTd6IiZpuD/eDYr3snuniwt9ICLH65NI
 71iiIPS+PV8KpBnpHFgsRP4GdO5SYMW58SZ99sNRV+6gZQInr1UXdLSm1i80WQ==
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
In-Reply-To: <86ecfx3sxa.fsf@HIDDEN>
References: <87se4dv7sb.fsf@HIDDEN> <86ecfx3sxa.fsf@HIDDEN>
Date: Mon, 17 Aug 2026 19:23:26 +0200
Message-ID: <87mrukk6ep.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-META: xww49ohdxshywqrcqssbfqkrpm4jfj8o
X-MBO-RS-ID: 9161b0435a9de18910f
X-Rspamd-Queue-Id: 4hP06R56b2zMlGT
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>,
 Sean Whitton <spwhitton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> How is flyspell-prog-mode useful if you set that variable to nil?
> doesn't that basically make flyspell-prog-mode identical to
> flyspell-mode?

I have been writing a letter with LaTeX.  In LaTeX what I want to
spellcheck corresponds to a nil face property.  At least this has been
my setup of choice in the past.

Normal flyspell-mode seems to perform much better now in LaTeX than it
did years ago - but it still checks commented out parts and underlines
some LaTeX macro names there.  So it still seems that using
`flyspell-prog-mode' is a valid tools in such situations.  I get the
most convenient behavior with it.

> Also, if you want to tweak flyspell-prog-mode this way, why not use
> setq instead of setopt?  That option doesn't have any :set function,
> so the only reason to use setopt is to check the validity of the
> value, which you don't like, so...

So...

Because someone made file local variables be set with setopt internally.
This was not my choice.  I'm getting a lot of new warnings related to
buffer local variables since then.  See my past reports about type
mismatches - they all originated from file variables.


Michael.




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

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


Received: (at 81638) by debbugs.gnu.org; 17 Aug 2026 11:09:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 07:09:17 2026
Received: from localhost ([127.0.0.1]:38216 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wvvDQ-0006C0-On
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2026 07:09:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51644)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wvvDO-0006BE-Ag
 for 81638 <at> debbugs.gnu.org; Mon, 17 Aug 2026 07:09:14 -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 1wvvDI-0000ak-NT; Mon, 17 Aug 2026 07:09:08 -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=4IE/gZFPjP/NGXIu68eRPZGnpGdqJJFoDisJgi9fMaE=; b=buS91msH8hzZ
 wtcluhwetnIgYYuP5lnWmj+XdqRamUYd0KHkgxX08yRdML9WQkhdSGxtBeYdHMSL0GarCLSWtQHkm
 7O5WnHJRzx/tn7tbCBM+c9l4Khclr7440hMu9oP7L+RHYJIJV388CAH4FEDriUoHEIQVhvfTnf7Mi
 V8m/HyK5fjbexFbwnX8OytGAZPUpKYGZVpsnNSzkSIoYzedycFLwHq5n1g92WkK1UWDElfo1D2q1h
 NQ0kOcrGE7weycINDevvautdpynvsWW/jOMVTDYhWpHt9894d+7rgCKaRTSUmR2zzaWpkY7xnA+PE
 dfmuFF1R9BskYfQ+xU5ncw==;
Date: Mon, 17 Aug 2026 14:09:05 +0300
Message-Id: <86ecfx3sxa.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>,
 Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87se4dv7sb.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#81638: 32.0.50; flyspell-prog-text-faces type and semantics
References: <87se4dv7sb.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81638
Cc: 81638 <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 (-)

> Date: Mon, 17 Aug 2026 03:45:56 +0200
> From: Michael Heerdegen via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> when editing .tex files having nil in `flyspell-prog-text-faces' is
> useful (even necessary) for flyspell-prog-mode doing its job.
> 
> But when using `setopt' (via file variable!) Emacs barfs about the type
> not matching.  The type spec of the option is much too restrictive IMO:
> 
> #+begin_src emacs-lisp
> (defcustom flyspell-prog-text-faces
>   '(font-lock-string-face font-lock-comment-face font-lock-doc-face)
>   "Faces corresponding to text in programming-mode buffers."
>   :type '(set (const font-lock-string-face)
>               (const font-lock-comment-face)
>               (const font-lock-doc-face))
>   :version "28.1")
> #+end_src
> 
> It limits the value to a subset of three given hardcoded builtin faces.

Because flyspell-prog-text-faces is supposed to spell-check the
corresponding portions of the program's source.

How is flyspell-prog-mode useful if you set that variable to nil?
doesn't that basically make flyspell-prog-mode identical to
flyspell-mode?

Also, if you want to tweak flyspell-prog-mode this way, why not use
setq instead of setopt?  That option doesn't have any :set function,
so the only reason to use setopt is to check the validity of the
value, which you don't like, so...

And if all of the above is not enough, and you still insist, I could
agree to adding nil to the valid values (but then please suggest a
suitable :tag), but allowing any symbol is IMO too dangerous,
especially as we use cl-flet there.  Next we will hear from someone
reporting a vulnerability in Emacs.

> But I wonder if we should, in addition, generalize
> `flyspell-generic-progmode-verify' so that members of
> `flyspell-prog-text-faces' are allowed to be functions (test
> predicates).

If you want to do that, it is better (and easier) to override
flyspell-generic-progmode-verify with your own function.

Finally, I'd like to hear Stefan's and Sean's opinions on this.

Thanks.




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

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


Received: (at submit) by debbugs.gnu.org; 17 Aug 2026 01:46:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 16 21:46:10 2026
Received: from localhost ([127.0.0.1]:57213 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wvmQT-0007Kl-U9
	for submit <at> debbugs.gnu.org; Sun, 16 Aug 2026 21:46:10 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:45928)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wvmQR-0007KM-KF
 for submit <at> debbugs.gnu.org; Sun, 16 Aug 2026 21:46:08 -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 <michael_heerdegen@HIDDEN>)
 id 1wvmQM-0002P5-7v
 for bug-gnu-emacs@HIDDEN; Sun, 16 Aug 2026 21:46:02 -0400
Received: from mout-p-103.mailbox.org ([80.241.56.161])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1wvmQK-0000Wx-2Q
 for bug-gnu-emacs@HIDDEN; Sun, 16 Aug 2026 21:46:02 -0400
Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4hNbJh7387zKnRF
 for <bug-gnu-emacs@HIDDEN>; Mon, 17 Aug 2026 03:45:56 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1786931157;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=Rwba8Iv6Ux2jRyI3YoDjW+xpxUvQpq5pxhiUd1VyHls=;
 b=qtx2oN9+HRbswtvE45bBEFd43c7wNTd2TnHixaFdlP2y81Vq4faGXUab0c2GqRzE7GzIyM
 9MRgQ6j9Qvk9pUR2+1nAkRltL5iA5JDGxpiViPn30LCmjSLz/9gWe9AbSzgZ2ZRzbD+3tE
 nnqdFSHXVNQDFlY2vAKKet2e525l/H+aWCgfnHnWkbJBXFTnMt0xGIXJkTkG8GhyLNRs1k
 GSrC4C9dHQJthg9NJ9Gte/fMAIq/36va/HaEOM+Ve6mdAsuLiCENhsnM0DN0SgYw1juI81
 nvu1lNLJiwI/EI2GG2G9Ytzj91xV76AmlYiYEZNoBfgNnjmpvtu3X9NTZzD9VA==
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1786931155;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=Rwba8Iv6Ux2jRyI3YoDjW+xpxUvQpq5pxhiUd1VyHls=;
 b=MLK0RTv1dMlTGI5+TyvXedRcrkTGbn9HGJET9esaun3pFhrk1ZrYQAL5C/TfOISJBsC0tu
 5WoY/CJ/DyzUUtksnFmW5or9ehmMiwb//mIAnkOWKrbqcNUqZUMQ1tc+QVce4ZYL5DeZ44
 SdoE9lO/IzH6klVzqoj+UQ/1rgVASDRJKE3dnKL36tChGsnK6GEli58zgYYBiU2d6uvtkZ
 jlRa5HnyNNSB0m8oTAlsMz8euBZWTlqGPw+5HNdOkT+Ye+ESGPaVuMKh2/r4DUlBi3mLeX
 7+Dr3wsTAK0WSq6W/I5pqUrj9d/wEszhBgV6cFRoPvPHGh2EIW2f2bY2qilHSQ==
To: bug-gnu-emacs@HIDDEN
Subject: 32.0.50; flyspell-prog-text-faces type and semantics
X-Debbugs-Cc: 
Date: Mon, 17 Aug 2026 03:45:56 +0200
Message-ID: <87se4dv7sb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-MBO-RS-ID: 95fa850235159b1633d
X-MBO-RS-META: 9xx6ekcbnxrzai8nfmmfer594jwwz4tu
Received-SPF: pass client-ip=80.241.56.161;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout-p-103.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.01, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Hello,

when editing .tex files having nil in `flyspell-prog-text-faces' is
useful (even necessary) for flyspell-prog-mode doing its job.

But when using `setopt' (via file variable!) Emacs barfs about the type
not matching.  The type spec of the option is much too restrictive IMO:

#+begin_src emacs-lisp
(defcustom flyspell-prog-text-faces
  '(font-lock-string-face font-lock-comment-face font-lock-doc-face)
  "Faces corresponding to text in programming-mode buffers."
  :type '(set (const font-lock-string-face)
              (const font-lock-comment-face)
              (const font-lock-doc-face))
  :version "28.1")
#+end_src

It limits the value to a subset of three given hardcoded builtin faces.

At least we should allow any valid result of `get-text-property' that is
symbolp, including nil.

But I wonder if we should, in addition, generalize
`flyspell-generic-progmode-verify' so that members of
`flyspell-prog-text-faces' are allowed to be functions (test
predicates).



Michael.






Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#81638; 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: Sun, 23 Aug 2026 11:30:02 UTC

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