GNU bug report logs - #71164
14.0.5; Font lock annoyance

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: auctex; Reported by: Derek Clegg <derek@HIDDEN>; Done: Arash Esbati <arash@HIDDEN>; Maintainer for auctex is bug-auctex@HIDDEN.
bug marked as fixed in version 14.0.6, send any further explanations to 71164 <at> debbugs.gnu.org and Derek Clegg <derek@HIDDEN> Request was from Arash Esbati <arash@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 30 Jun 2024 04:38:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 30 00:38:05 2024
Received: from localhost ([127.0.0.1]:54404 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sNmKC-0001ya-WA
	for submit <at> debbugs.gnu.org; Sun, 30 Jun 2024 00:38:05 -0400
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:55344)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1sNmKB-0001yD-BD
 for 71164 <at> debbugs.gnu.org; Sun, 30 Jun 2024 00:38:04 -0400
Received: from localhost (42-144-18-247.rev.home.ne.jp [42.144.18.247])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPSA id 87EA55C;
 Sun, 30 Jun 2024 13:38:01 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: Derek Clegg <derek@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
In-reply-to: <6027E2F0-5C72-487E-9BE1-0FAF077B1F5F@HIDDEN>
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
 <17239.1716558872@localhost> <m2o789ysj6.fsf@HIDDEN>
 <m2v82c670n.fsf@HIDDEN> <m2plrzv6x0.fsf@HIDDEN>
 <6027E2F0-5C72-487E-9BE1-0FAF077B1F5F@HIDDEN>
Comments: In-reply-to Derek Clegg <derek@HIDDEN>
 message dated "Sat, 29 Jun 2024 18:49:02 -0700."
X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.4
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Date: Sun, 30 Jun 2024 13:38:00 +0900
Message-ID: <3272.1719722280@localhost>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org, Arash Esbati <arash@HIDDEN>,
 Paul Nelson <ultrono@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Derek and all,

>>>>> Derek Clegg <derek@HIDDEN> writes:
> Thanks for the email. This has fixed the original problem, so I think
> it=E2=80=99s good to go.

Thank you. I'll install the fix soon.

>> On Jun 29, 2024, at 1:19=E2=80=AFPM, Arash Esbati <arash@HIDDEN> wrote:
>>> And while we're at it: Do you have a recipe to reproduce this,
>>> preferably starting with "emacs -Q"?

Actually, I couldn't recall how I reproduced the issue for a while=F0=9F=A5=
=B4. At
last I succeeded in reproducing again=F0=9F=98=86.
1. emacs -Q
2. M-x global-font-lock-mode RET
3. M-x load-file RET /usr/local/share/emacs/site-lisp/auctex.el RET
4. Open circ.tex
5. C-c C-m verb RET somewhere appropriate.
Then I have
Error during redisplay: (internal--syntax-propertize 2) signaled (error "Fo=
nt-lock trying to use keywords before setting them up")

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 30 Jun 2024 01:49:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 21:49:25 2024
Received: from localhost ([127.0.0.1]:54244 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sNjgz-0000Rw-1h
	for submit <at> debbugs.gnu.org; Sat, 29 Jun 2024 21:49:25 -0400
Received: from mr85p00im-ztdg06011201.me.com ([17.58.23.181]:58784)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <derek@HIDDEN>) id 1sNjgw-0000Ra-85
 for 71164 <at> debbugs.gnu.org; Sat, 29 Jun 2024 21:49:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai;
 t=1719712156; bh=YI3XzCr0UHSKCbqtkPG0MJ+CKyL21HvFIFF7rMolODY=;
 h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To;
 b=jH8iBFDYHRPuIyeuD4XQmWncbVp+bQELEO4Aup3XY61EBE5hlU3HK05jpC5ZQVl8z
 /SV5pkCXfCjyphFYXkBMx7KngY6DG0qjzVdn7+DgXQ4zEBD7iya4LzkE9EfAle+Kqd
 71XQxWD/tvqzo4XFSbTNeXwIWjg0mHpnEtETLv0hJWrxCei+Wqp9zTAgY7sC+1SV02
 vMpLlqnmQEC5A7QOr9LCtK1OD73xYlRX6HKaxms/tK+3tfhVpIwdK6Xndo5LpRErbG
 DfbkksOEoV/xk7RiaXoH5R0mAeelnOcxOagIlxJyaWWwPJkmO6C3VZSZp11vE5GvIi
 XCkgFnTyH60zw==
Received: from smtpclient.apple (mr38p00im-dlb-asmtp-mailmevip.me.com
 [17.57.152.18])
 by mr85p00im-ztdg06011201.me.com (Postfix) with ESMTPSA id AEA9796081B;
 Sun, 30 Jun 2024 01:49:14 +0000 (UTC)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\))
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
From: Derek Clegg <derek@HIDDEN>
In-Reply-To: <m2plrzv6x0.fsf@HIDDEN>
Date: Sat, 29 Jun 2024 18:49:02 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <6027E2F0-5C72-487E-9BE1-0FAF077B1F5F@HIDDEN>
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
 <17239.1716558872@localhost> <m2o789ysj6.fsf@HIDDEN>
 <m2v82c670n.fsf@HIDDEN> <m2plrzv6x0.fsf@HIDDEN>
To: Arash Esbati <arash@HIDDEN>
X-Mailer: Apple Mail (2.3774.600.62)
X-Proofpoint-GUID: uAs75bD2Qzc68-bhQT41Cr-Z8yuZpBQ1
X-Proofpoint-ORIG-GUID: uAs75bD2Qzc68-bhQT41Cr-Z8yuZpBQ1
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.272,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16
 definitions=2024-06-30_01,2024-06-28_01,2024-05-17_01
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0
 mlxlogscore=999 mlxscore=0
 phishscore=0 suspectscore=0 clxscore=1011 malwarescore=0 adultscore=0
 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.19.0-2308100000 definitions=main-2406300010
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>,
 Paul Nelson <ultrono@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Thanks for the email. This has fixed the original problem, so I think =
it=E2=80=99s good to go.

Best,
Derek

> On Jun 29, 2024, at 1:19=E2=80=AFPM, Arash Esbati <arash@HIDDEN> =
wrote:
>=20
> Arash Esbati <arash@HIDDEN> writes:
>=20
>> Arash Esbati <arash@HIDDEN> writes:
>>=20
>>> Ikumi Keita <ikumi@HIDDEN> writes:
>>>=20
>>>> It seems it does work while font lock itself is still disabled. I
>>>> speculate that the current syntax propertize function only needs =
that
>>>> font lock variables are set up. Then I hope the patch below does =
the
>>>> trick.
>>>>=20
>>>> Derek, can you try it?
>>>>=20
>>>> Regards,
>>>> Ikumi Keita
>>>> #StandWithUkraine #StopWarInUkraine
>>>> #Gaza #StopMassiveKilling #CeasefireNOW
>>>>=20
>>>> diff --git a/font-latex.el b/font-latex.el
>>>> index ccddd8b1..7a02e3f4 100644
>>>> --- a/font-latex.el
>>>> +++ b/font-latex.el
>>>> @@ -1313,7 +1313,10 @@ triggers Font Lock to recognize the change."
>>>>   (let ((kws ;; (if (derived-mode-p 'docTeX-mode)
>>>>              ;;     font-latex-doctex-syntactic-keywords
>>>>                font-latex-syntactic-keywords)) ;; )
>>>> -    (syntax-propertize-via-font-lock kws)))
>>>> +    (let ((func (syntax-propertize-via-font-lock kws)))
>>>> +      (lambda (start end)
>>>> +        (or font-lock-set-defaults (font-lock-set-defaults))
>>>> +        (funcall func start end)))))
>>>>=20
>>>> ;;;###autoload
>>>> (defun font-latex-setup ()
>>>=20
>>> Derek, can you please report back if the patch above fixes the issue =
for
>>> you?  TIA.
>>=20
>> And while we're at it: Do you have a recipe to reproduce this,
>> preferably starting with "emacs -Q"?  I don't get the errors you
>> described with:
>>=20
>>  =E2=80=A2 emacs -Q
>>  =E2=80=A2 Activate AUCTeX
>>  =E2=80=A2 eval (setq TeX-install-font-lock #'ignore)
>>  =E2=80=A2 open a .tex file and start typing
>=20
> Ping!  Any updates on this?
>=20
> @Keita: In case we don't get any response, how do want to proceed?
> Install the change or close this report without the change?  My choice
> would be the latter since I can't reproduce the issue.
>=20
> Best, Arash





Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 29 Jun 2024 21:30:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 17:30:03 2024
Received: from localhost ([127.0.0.1]:53816 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sNfdy-0001SJ-Mh
	for submit <at> debbugs.gnu.org; Sat, 29 Jun 2024 17:30:02 -0400
Received: from mail-io1-f54.google.com ([209.85.166.54]:47463)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ultrono@HIDDEN>) id 1sNfdw-0001RM-LO
 for 71164 <at> debbugs.gnu.org; Sat, 29 Jun 2024 17:30:01 -0400
Received: by mail-io1-f54.google.com with SMTP id
 ca18e2360f4ac-7f38f5584ebso72901439f.3
 for <71164 <at> debbugs.gnu.org>; Sat, 29 Jun 2024 14:30:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1719696535; x=1720301335; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=a+4qp9Rot49KMKe9WyFQXUsRsH1riORz++Q9obRQXGQ=;
 b=lI3RKIXvhTddbQuPTKxFd4i8E9d6GXnuCkFWjvFFivDQaE8zB4yXGKoKr4OYKOSpIA
 lMJgpM9EIIINKbAjJ/CNIqIU6RQImRX1wy1Xidn0hbj3rU+hqxHGTpQS9JYNacf6HkCQ
 0xqnK+EnznFyUFk9m9KfVX/KE8HiQNJGbHltM9BcRm1/zA7/vnS9DVxjBMrstVINHa3G
 VT/zp3RBggXeXHID4En+iWkBNNiRLJPFjk8TtMcryred41ljSOjeOhTzmr2wlFBJGQ2w
 tblbdY4JmfyER7CzyphSrb7svxVV63Y59DL2deLo5GDCAqajUfI5arsTtNyp4JtKJSVo
 5NDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1719696535; x=1720301335;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=a+4qp9Rot49KMKe9WyFQXUsRsH1riORz++Q9obRQXGQ=;
 b=NlQ0meFPs/qA3M0NLcfijTjHdFCHy16IM3/FAU76ZrdjWUlCB+ftIEJJ+ce+Id4eA7
 nmDJryl9s5q+5iPuCV9qqcoNa7C+SjNW8BdUSNsVgodglaXOFmhYszxRyYy7d85GDS8M
 5XNnHzpbiJrWH85sHXMba6JGRHH2rBcAQ4ihhpijvU8I3Lmdu4OZX0L/BPMRF9nYqud2
 wZYBqQOIb+9C6kJwnr+zAq/LOA5RQWjB3jlQXwMUT01t3i8W093NNLjaxbALEwN5j4uu
 jshRLCUjJ9QDOthzv2RxZ7M+t0AtCwvepYFFgSQIKA8e9u29eP7pQmhVELncl7nf15/e
 RMVQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCW8Y6LWNKrjhWX+/QsDroFpyL/TyTC9yOBxWi6Ht8kYzaQw3J/FCInlMC1VpYUAH3lPvcdBV3KwWMhEqyBZM+nKxi1/QZc=
X-Gm-Message-State: AOJu0YyHfRhEpaMOjjmRL9HsTu6oLYsN/1HrqPCQjJj2WM3OUDMr7CS1
 gRESnpESgW18pMKmlXQHB6byW7PmBdKKJdA2TDmzwzcCTD3q4KFxf1q+fesnzMaDoB71/uJpbHb
 HWLrXFNQNP1lj+h6kQbTLnLWrVv4=
X-Google-Smtp-Source: AGHT+IHaoAVCkDUBg2C4oOBBSY52EVa5kAX40+SpFc5Ou6WT/nt6q1coFf0V09Gge5Hl10DCl9VE56FePNIN410iZa8=
X-Received: by 2002:a5d:9541:0:b0:7f3:cb2a:a1b2 with SMTP id
 ca18e2360f4ac-7f62ee85397mr228970639f.13.1719696535513; Sat, 29 Jun 2024
 14:28:55 -0700 (PDT)
MIME-Version: 1.0
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
 <17239.1716558872@localhost> <m2o789ysj6.fsf@HIDDEN>
 <m2v82c670n.fsf@HIDDEN> <m2plrzv6x0.fsf@HIDDEN>
In-Reply-To: <m2plrzv6x0.fsf@HIDDEN>
From: Paul Nelson <ultrono@HIDDEN>
Date: Sat, 29 Jun 2024 23:28:44 +0200
Message-ID: <CAOA-32O7VdAbVsfiWsUuTXK5CEnxnYt___ceed8w-1DM+dFYaw@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
To: Arash Esbati <arash@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71164
Cc: Derek Clegg <derek@HIDDEN>, 71164 <at> debbugs.gnu.org,
 Ikumi Keita <ikumi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I was able to reproduce the issue.  The patch fixes it on my end, and
I suspect in general.




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 29 Jun 2024 21:02:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 17:02:23 2024
Received: from localhost ([127.0.0.1]:53749 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sNfDD-0000hJ-FD
	for submit <at> debbugs.gnu.org; Sat, 29 Jun 2024 17:02:23 -0400
Received: from eggs.gnu.org ([209.51.188.92]:32796)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1sNfDB-0000gd-1V
 for 71164 <at> debbugs.gnu.org; Sat, 29 Jun 2024 17:02: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 <arash@HIDDEN>)
 id 1sNeXO-0003wi-LH; Sat, 29 Jun 2024 16:19:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=k3V2FOt7rVcHb53O3YHFo32inNFR1BO8i0YBSy19G2k=; b=OaMWqlSJCqyLPpozlYFL
 FCkz0bNft1EnzGHaVyycX6q/vBWuQMHoNYdGBhIYixEdd3eF/j9hF81JnQYgGFqP/9cyv/h2fMG/d
 waJiMNYf6diLbYrcXRysVz+cvKQr3p+EZS1A2CITH0tjKp9WjEgmp7TLXNMvchWW7n5CXVN3Gzuo6
 g/USxBvOz+6USUyq3O8vw5io3nETI+tAaxe2hvfA5KR4hClwRmYqO0c8Mer0SqB0w4Pp2QyB5LII3
 BlE9F5SBA9dxzgliNVRsKOe0jFwzwS2COeq1cDy/Eu2RzREzbqqOuV6oWJztovxyOdzKWe+8wBuDi
 iyRTzO4BVl8XNA==;
From: Arash Esbati <arash@HIDDEN>
To: Derek Clegg <derek@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
In-Reply-To: <m2v82c670n.fsf@HIDDEN> (Arash Esbati's message of
 "Thu, 13 Jun 2024 20:18:32 +0200")
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
 <17239.1716558872@localhost> <m2o789ysj6.fsf@HIDDEN>
 <m2v82c670n.fsf@HIDDEN>
Date: Sat, 29 Jun 2024 22:19:07 +0200
Message-ID: <m2plrzv6x0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>,
 Paul Nelson <ultrono@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 (---)

Arash Esbati <arash@HIDDEN> writes:

> Arash Esbati <arash@HIDDEN> writes:
>
>> Ikumi Keita <ikumi@HIDDEN> writes:
>>
>>> It seems it does work while font lock itself is still disabled. I
>>> speculate that the current syntax propertize function only needs that
>>> font lock variables are set up. Then I hope the patch below does the
>>> trick.
>>>
>>> Derek, can you try it?
>>>
>>> Regards,
>>> Ikumi Keita
>>> #StandWithUkraine #StopWarInUkraine
>>> #Gaza #StopMassiveKilling #CeasefireNOW
>>>
>>> diff --git a/font-latex.el b/font-latex.el
>>> index ccddd8b1..7a02e3f4 100644
>>> --- a/font-latex.el
>>> +++ b/font-latex.el
>>> @@ -1313,7 +1313,10 @@ triggers Font Lock to recognize the change."
>>>    (let ((kws ;; (if (derived-mode-p 'docTeX-mode)
>>>               ;;     font-latex-doctex-syntactic-keywords
>>>                 font-latex-syntactic-keywords)) ;; )
>>> -    (syntax-propertize-via-font-lock kws)))
>>> +    (let ((func (syntax-propertize-via-font-lock kws)))
>>> +      (lambda (start end)
>>> +        (or font-lock-set-defaults (font-lock-set-defaults))
>>> +        (funcall func start end)))))
>>>=20=20
>>>  ;;;###autoload
>>>  (defun font-latex-setup ()
>>
>> Derek, can you please report back if the patch above fixes the issue for
>> you?  TIA.
>
> And while we're at it: Do you have a recipe to reproduce this,
> preferably starting with "emacs -Q"?  I don't get the errors you
> described with:
>
>   =E2=80=A2 emacs -Q
>   =E2=80=A2 Activate AUCTeX
>   =E2=80=A2 eval (setq TeX-install-font-lock #'ignore)
>   =E2=80=A2 open a .tex file and start typing

Ping!  Any updates on this?

@Keita: In case we don't get any response, how do want to proceed?
Install the change or close this report without the change?  My choice
would be the latter since I can't reproduce the issue.

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 13 Jun 2024 18:18:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 13 14:18:47 2024
Received: from localhost ([127.0.0.1]:38206 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sHp26-0003fX-Lj
	for submit <at> debbugs.gnu.org; Thu, 13 Jun 2024 14:18:46 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51784)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1sHp23-0003fJ-Oz
 for 71164 <at> debbugs.gnu.org; Thu, 13 Jun 2024 14:18:45 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1sHp1v-0006z2-Us; Thu, 13 Jun 2024 14:18:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=4IW91BFEY3SFHpjBbQHZV3FXuxTQwjvREy53Lr+FgWQ=; b=QuUcZ7IXVxIz/YD7kujg
 rSFiE6WbSsb+H/yG3wUIHBjtOT2REzYL/dLrCYVn8M25UCZibD46wyDwVwfinVAe0FKVaKI12uJRR
 kN2oIDit/AkavtckElsRnbJ3lxMtni1NBv+j/o0oO5UF2TF57/YaXkAITRgKdPTzehU8+pybNBDl+
 23KtA9khVZ43DOdOoqN793pxAjzInZmyhZ8wVe8/4m4kPnx6KhpFSV2Whzs1Et66RlPQThnv2xfE0
 ZxQA/EKD6P3/+7L4ZdShx3DKCR8F0JpXRSt5iTFkvci36eB58gIqAosH6SOCvtxB656/qcRj9bNaj
 TJIw8g8YyDCVCg==;
From: Arash Esbati <arash@HIDDEN>
To: Derek Clegg <derek@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
In-Reply-To: <m2o789ysj6.fsf@HIDDEN> (Arash Esbati's message of
 "Mon, 10 Jun 2024 12:57:17 +0200")
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
 <17239.1716558872@localhost> <m2o789ysj6.fsf@HIDDEN>
Date: Thu, 13 Jun 2024 20:18:32 +0200
Message-ID: <m2v82c670n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>,
 Paul Nelson <ultrono@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 (---)

Arash Esbati <arash@HIDDEN> writes:

> Ikumi Keita <ikumi@HIDDEN> writes:
>
>> It seems it does work while font lock itself is still disabled. I
>> speculate that the current syntax propertize function only needs that
>> font lock variables are set up. Then I hope the patch below does the
>> trick.
>>
>> Derek, can you try it?
>>
>> Regards,
>> Ikumi Keita
>> #StandWithUkraine #StopWarInUkraine
>> #Gaza #StopMassiveKilling #CeasefireNOW
>>
>> diff --git a/font-latex.el b/font-latex.el
>> index ccddd8b1..7a02e3f4 100644
>> --- a/font-latex.el
>> +++ b/font-latex.el
>> @@ -1313,7 +1313,10 @@ triggers Font Lock to recognize the change."
>>    (let ((kws ;; (if (derived-mode-p 'docTeX-mode)
>>               ;;     font-latex-doctex-syntactic-keywords
>>                 font-latex-syntactic-keywords)) ;; )
>> -    (syntax-propertize-via-font-lock kws)))
>> +    (let ((func (syntax-propertize-via-font-lock kws)))
>> +      (lambda (start end)
>> +        (or font-lock-set-defaults (font-lock-set-defaults))
>> +        (funcall func start end)))))
>>=20=20
>>  ;;;###autoload
>>  (defun font-latex-setup ()
>
> Derek, can you please report back if the patch above fixes the issue for
> you?  TIA.

And while we're at it: Do you have a recipe to reproduce this,
preferably starting with "emacs -Q"?  I don't get the errors you
described with:

  =E2=80=A2 emacs -Q
  =E2=80=A2 Activate AUCTeX
  =E2=80=A2 eval (setq TeX-install-font-lock #'ignore)
  =E2=80=A2 open a .tex file and start typing

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 10 Jun 2024 11:58:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 07:58:42 2024
Received: from localhost ([127.0.0.1]:57410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGdfe-00086B-9p
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 07:58:42 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42050)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1sGdfc-00084R-DZ
 for 71164 <at> debbugs.gnu.org; Mon, 10 Jun 2024 07:58:41 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1sGciL-0003MM-OC; Mon, 10 Jun 2024 06:57:25 -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=1vCVUWS9gaw5z8c/BWobMfjZDgZsvAu3SyQly5dcuCo=; b=LWnmyiTcpkXpFgT4aDWw
 hGh/i/2SRtAFHqua07Lw1Z8C926HEamWDutfytDjUEBQPIKa7DJHSf///xmNXWVVUQXyzDkF/uK0W
 dHAf4+TI4K1eanPSCxp3GOPBVB7MVhTNQkDDepcSti0mckmcsg/ot6uPDiEyzEwVc/RNA6o3RXMfF
 zGMIqAQKCZAiqLRTDBG7KymTHTdGbFBZKUzlyzmF2S2Yj2SOqJiAzcqVCJWhEZ3RMTTealRMHPkpd
 i2NgTYVv0KKLmCXi4Vw8HaZZYfBPDxIfHqG+QsMCCpEtbAiyAPO64Sb67xFKJbI6LSNUy4POvWNoh
 DkvvEJ66FZdTYg==;
From: Arash Esbati <arash@HIDDEN>
To: Derek Clegg <derek@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
In-Reply-To: <17239.1716558872@localhost> (Ikumi Keita's message of "Fri, 24
 May 2024 22:54:32 +0900")
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
 <17239.1716558872@localhost>
Date: Mon, 10 Jun 2024 12:57:17 +0200
Message-ID: <m2o789ysj6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org, Ikumi Keita <ikumi@HIDDEN>,
 Paul Nelson <ultrono@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 (---)

Ikumi Keita <ikumi@HIDDEN> writes:

> It seems it does work while font lock itself is still disabled. I
> speculate that the current syntax propertize function only needs that
> font lock variables are set up. Then I hope the patch below does the
> trick.
>
> Derek, can you try it?
>
> Regards,
> Ikumi Keita
> #StandWithUkraine #StopWarInUkraine
> #Gaza #StopMassiveKilling #CeasefireNOW
>
> diff --git a/font-latex.el b/font-latex.el
> index ccddd8b1..7a02e3f4 100644
> --- a/font-latex.el
> +++ b/font-latex.el
> @@ -1313,7 +1313,10 @@ triggers Font Lock to recognize the change."
>    (let ((kws ;; (if (derived-mode-p 'docTeX-mode)
>               ;;     font-latex-doctex-syntactic-keywords
>                 font-latex-syntactic-keywords)) ;; )
> -    (syntax-propertize-via-font-lock kws)))
> +    (let ((func (syntax-propertize-via-font-lock kws)))
> +      (lambda (start end)
> +        (or font-lock-set-defaults (font-lock-set-defaults))
> +        (funcall func start end)))))
>  
>  ;;;###autoload
>  (defun font-latex-setup ()

Derek, can you please report back if the patch above fixes the issue for
you?  TIA.

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 24 May 2024 13:54:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 24 09:54:49 2024
Received: from localhost ([127.0.0.1]:37278 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sAVNh-0008La-Bz
	for submit <at> debbugs.gnu.org; Fri, 24 May 2024 09:54:49 -0400
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:46248)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1sAVNd-0008LU-PQ
 for 71164 <at> debbugs.gnu.org; Fri, 24 May 2024 09:54:47 -0400
Received: from localhost (42-144-18-247.rev.home.ne.jp [42.144.18.247])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPSA id 567025F;
 Fri, 24 May 2024 22:54:34 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: Derek Clegg <derek@HIDDEN>, Paul Nelson <ultrono@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
In-reply-to: <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
 <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
Comments: In-reply-to Paul Nelson <ultrono@HIDDEN>
 message dated "Fri, 24 May 2024 09:17:06 +0200."
X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.3
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Date: Fri, 24 May 2024 22:54:32 +0900
Message-ID: <17239.1716558872@localhost>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Derek and Paul,

> If I don't turn on font locking when I use AUCTeX, I'm getting
> annoying messages almost every keystroke:

>   Error during redisplay: (internal--syntax-propertize 7526) signaled (error "Font-lock trying to use keywords before setting them up”)

Thanks for your report. I admit AUCTeX isn't good at this point. It
depends on font lock facility to perform syntax propertizing. :-(

>>>>> Paul Nelson <ultrono@HIDDEN> writes:
> Another workaround might be M-: (font-lock-set-defaults).

It seems it does work while font lock itself is still disabled. I
speculate that the current syntax propertize function only needs that
font lock variables are set up. Then I hope the patch below does the
trick.

Derek, can you try it?

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW

diff --git a/font-latex.el b/font-latex.el
index ccddd8b1..7a02e3f4 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1313,7 +1313,10 @@ triggers Font Lock to recognize the change."
   (let ((kws ;; (if (derived-mode-p 'docTeX-mode)
              ;;     font-latex-doctex-syntactic-keywords
                font-latex-syntactic-keywords)) ;; )
-    (syntax-propertize-via-font-lock kws)))
+    (let ((func (syntax-propertize-via-font-lock kws)))
+      (lambda (start end)
+        (or font-lock-set-defaults (font-lock-set-defaults))
+        (funcall func start end)))))
 
 ;;;###autoload
 (defun font-latex-setup ()




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at 71164) by debbugs.gnu.org; 24 May 2024 07:18:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 24 03:18:39 2024
Received: from localhost ([127.0.0.1]:35441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sAPCC-0004pO-7P
	for submit <at> debbugs.gnu.org; Fri, 24 May 2024 03:18:39 -0400
Received: from mail-io1-f48.google.com ([209.85.166.48]:60571)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ultrono@HIDDEN>) id 1sAPCA-0004pI-I9
 for 71164 <at> debbugs.gnu.org; Fri, 24 May 2024 03:18:31 -0400
Received: by mail-io1-f48.google.com with SMTP id
 ca18e2360f4ac-7e238fa7b10so261284039f.0
 for <71164 <at> debbugs.gnu.org>; Fri, 24 May 2024 00:18:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1716535038; x=1717139838; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=VFcNEbzn0UJXjnh6PzpI3mgdPwSZEcrBc1rxAasWlKg=;
 b=B87zADrqZGMBpk5uSw/LVYk5zEhuROi75O5OrgZL8gEb8LkiVeDutpCDu3sMp99abH
 UtTc7qOx70kyRCIVAZFMixVzzfRp4sCfVygQHUlEeiRyOpe/W5scISDfBkJRm3U/Pkz0
 31w82nTn3ICX1KII8FcCtqL4EWvGWj+K3PyWSyYKeR8Pj6jav4wg6F1j7ah3IaHt6ZK7
 qH1w0YQzFBKoNp5lZBPBQw6GLtJ5okp/1iXSTPQB4LaYUPu2l0i6ltSZlUQ7Ji9j1bcR
 ttRHX/y7wsv7lMNWOUkwWy7cJ2GuArqchziC4Tli49wTf4l6Om+4MjdbPuoe52Tngwz0
 o5sw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1716535038; x=1717139838;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=VFcNEbzn0UJXjnh6PzpI3mgdPwSZEcrBc1rxAasWlKg=;
 b=NXeedl0h2+U09J7lA8IcPGA8xw0mLv5xF6CDH0ux6xeTMrkeCPvJfa8aN2j7QC4SYl
 oL4F0Gkt+4E6Qb6kqpnM+amIhuuER4MSnk7xd0fbc9rj2XDRzd65WXlXB2l72mII4Q+h
 6ebEdfUUXVPST/kXAAMf5dEnmFkIgY8KXlkjNzsR3IF8zFDioQtSz/2NtPVbM9nHHLEW
 u2jM/5UKPAVpiod8GJ26GfVSMY4nQLCouQ/ZH9rKk2aSwIcvIknDmRllTBwobiOY5zpa
 fQ+IhJhIxOZfNUE2UR0g7ZCb4cyL6Fb53//aV81T35aqddoyuqSasXtSfEmS/tCPSnBG
 Ad2Q==
X-Gm-Message-State: AOJu0YyfIMdC4m4FP02vgtX2xRZ3YkICCvbz6GDbyra+NRxTXVMllkNE
 P7OoZd2JUxKw/bES3hoJXl+/rbQJYMR2DlRswghXsd0lLapPaoRlkG0WNYF3I4QX6XoJt4ZyhLd
 MrtUekGh1I6qLrskvYe7NCteoTa0=
X-Google-Smtp-Source: AGHT+IHOD2uN77you5Ky8GG6it2jwdT/1M63D18WvUVUv42Hfr0ssTO0lsEUNBNDxSMsZIvzG8X4oduTzWkYSbx5TKo=
X-Received: by 2002:a05:6602:4b8c:b0:7e1:8bc1:57d3 with SMTP id
 ca18e2360f4ac-7e8c6b21d9fmr166079239f.19.1716535037902; Fri, 24 May 2024
 00:17:17 -0700 (PDT)
MIME-Version: 1.0
References: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
In-Reply-To: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
From: Paul Nelson <ultrono@HIDDEN>
Date: Fri, 24 May 2024 09:17:06 +0200
Message-ID: <CAOA-32Pbpgv8iDhRpWgqKLW+jHr_X4TnZT5ngz0HCgM7E3Z82Q@HIDDEN>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
To: Derek Clegg <derek@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000002dcc1906192df5ca"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71164
Cc: 71164 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000002dcc1906192df5ca
Content-Type: text/plain; charset="UTF-8"

Another workaround might be M-: (font-lock-set-defaults).

It seems that font-lock-set-defaults is typically not called in LaTeX-mode
initialization (see the final comment in font-latex-setup, addressing
bug#65912), but instead via global-font-lock-mode, which I guess you've
disabled.

Paul

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

<div dir=3D"ltr"><div dir=3D"ltr">Another workaround might be M-: (font-loc=
k-set-defaults).</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">It seems =
that font-lock-set-defaults is typically not called in LaTeX-mode initializ=
ation (see the final comment in font-latex-setup, addressing bug#65912), bu=
t instead via global-font-lock-mode, which I guess you&#39;ve disabled.</di=
v><div dir=3D"ltr"><br></div><div dir=3D"ltr">Paul<br></div><div dir=3D"ltr=
"><br></div></div>

--0000000000002dcc1906192df5ca--




Information forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 24 May 2024 04:44:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 24 00:44:09 2024
Received: from localhost ([127.0.0.1]:34793 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sAMml-0003KU-Fm
	for submit <at> debbugs.gnu.org; Fri, 24 May 2024 00:44:09 -0400
Received: from lists.gnu.org ([209.51.188.17]:46190)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <derek@HIDDEN>) id 1sAJO0-0001Q5-PX
 for submit <at> debbugs.gnu.org; Thu, 23 May 2024 21:06:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <derek@HIDDEN>) id 1sAJNt-0003vx-Nz
 for bug-auctex@HIDDEN; Thu, 23 May 2024 21:06:13 -0400
Received: from ms11p00im-hyfv17291101.me.com ([17.58.38.40])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <derek@HIDDEN>) id 1sAJNq-00057h-NR
 for bug-auctex@HIDDEN; Thu, 23 May 2024 21:06:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai;
 t=1716512767; bh=3iwKQGJJtkn5cM9Sd2KRIji9JzWXXScoHHrIp8y/NZk=;
 h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To;
 b=lZVs0mpkz+coBKPDIYxpPbBhLGg7Nxs61urFyXKnEX/IBKXaypJeRJYUPdnkB3/Je
 MA9kWHxH3vv/gagiqfxb1RCMv8MsCfMAZFLjuqGNlW8KbTdldDReZjqN/PNNOljZF3
 lRJQyOfX38dRZd+17OAtxgNqJ5DRuLlHum1GuODLEG81UftTvREcDcKUzAgEVESOXm
 nyZWI2trEErozJftm5JYI6r1/ksx/oMgz+tqVnRm6dcA5peXJhTpO8SfVck/T2dQNw
 LeWbOuMTskA4Hkj9vvJDlFT9Pne7z+f0UtXK4/9TCWkiMtND4Jq2V6qTtzILn+ioxj
 V9Oyl0BG/c26Q==
Received: from smtpclient.apple (ms11p00im-dlb-asmtpmailmevip.me.com
 [17.57.154.19])
 by ms11p00im-hyfv17291101.me.com (Postfix) with ESMTPSA id 8BF6976012C
 for <bug-auctex@HIDDEN>; Fri, 24 May 2024 01:06:04 +0000 (UTC)
From: Derek Clegg <derek@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\))
Subject: 14.0.5; Font lock annoyance
Message-Id: <98F72E9C-01BF-4654-A963-8DC3A13142F4@HIDDEN>
Date: Thu, 23 May 2024 18:05:53 -0700
To: bug-auctex@HIDDEN
X-Mailer: Apple Mail (2.3774.600.62)
X-Proofpoint-GUID: me2HULxSeaY5ojfkXsVEnkV3GEzO8WD-
X-Proofpoint-ORIG-GUID: me2HULxSeaY5ojfkXsVEnkV3GEzO8WD-
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.272,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16
 definitions=2024-05-23_14,2024-05-23_01,2024-05-17_01
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0
 clxscore=1011
 mlxlogscore=999 spamscore=0 malwarescore=0 bulkscore=0 mlxscore=0
 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.19.0-2308100000 definitions=main-2405240006
Received-SPF: pass client-ip=17.58.38.40; envelope-from=derek@HIDDEN;
 helo=ms11p00im-hyfv17291101.me.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 24 May 2024 00:44:06 -0400
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: -2.3 (--)

If I don't turn on font locking when I use AUCTeX, I'm getting annoying =
messages almost every keystroke:

  Error during redisplay: (internal--syntax-propertize 7526) signaled =
(error "Font-lock trying to use keywords before setting them up=E2=80=9D)

This appears to be triggered (at least in some cases) by this code in =
latex.el/LaTeX-verbatim-p:

  (if (eq TeX-install-font-lock 'font-latex-setup)
    ...

This test succeeds (since I haven't changed the value of that variable, =
I just haven't turned on font locking), and then the error happens.

My workaround is to turn on font locking, but I don't always want to do =
that. I don't want to change the default value of =
`TeX-install-font-lock=E2=80=99 since sometimes I *do* want font =
locking.

Thanks,
Derek Clegg

Emacs  : GNU Emacs 29.2 (build 1, aarch64-apple-darwin23.3.0)
of 2024-02-14
Package: 14.0.5

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
AUCTeX-date "2024-05-19_09:43:32"
window-system nil
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex"
		  "/Users/derek/.emacs.d/elpa/auctex-14.0.5/style"
		  "/Users/derek/.emacs.d/auctex/auto"
		  "/Users/derek/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save t
TeX-parse-self t
TeX-master t
TeX-command-list '(("Make" "make N=3D1 %s.pdf" TeX-run-command nil t =
:help
		     "Run =E2=80=9Cmake=E2=80=9D")
		    ("TeX"
		     "%(PDF)%(tex) %(file-line-error) %`%(extraopts) =
%S%(PDFout)%(mode)%' %(output-dir) %t"
		     TeX-run-TeX nil (plain-TeX-mode AmSTeX-mode =
Texinfo-mode)
		     :help "Run plain TeX")
		    ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil
		     (LaTeX-mode docTeX-mode) :help "Run LaTeX")
		    ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t"
		     TeX-run-compile nil (Texinfo-mode) :help
		     "Run Makeinfo with Info output")
		    ("Makeinfo HTML"
		     "makeinfo %(extraopts) %(o-dir) --html %t"
		     TeX-run-compile nil (Texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX"
		     "amstex %(PDFout) %`%(extraopts) %S%(mode)%' =
%(output-dir) %t"
		     TeX-run-TeX nil (AmSTeX-mode) :help "Run AMSTeX")
		    ("ConTeXt" "%(cntxcom) --once %(extraopts) =
%(execopts)%t"
		     TeX-run-TeX nil (ConTeXt-mode) :help "Run ConTeXt =
once")
		    ("ConTeXt Full" "%(cntxcom) %(extraopts) =
%(execopts)%t"
		     TeX-run-TeX nil (ConTeXt-mode) :help
		     "Run ConTeXt until completion")
		    ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode ConTeXt-mode)
		     :help "Run BibTeX")
		    ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Run Biber")
		    ("Texindex" "texindex %s.??" TeX-run-command nil
		     (Texinfo-mode) :help "Run Texindex")
		    ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil
		     (Texinfo-mode) :help "Run Texi2dvi or Texi2pdf")
		    ("View" "%V" TeX-run-discard-or-function t t :help
		     "Run Viewer")
		    ("Print" "%p" TeX-run-command t t :help "Print the =
file")
		    ("Queue" "%q" TeX-run-background nil t :help
		     "View the printer queue" :visible =
TeX-queue-command)
		    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Generate PostScript file")
		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Convert DVI file to PostScript")
		    ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" =
TeX-run-dvipdfmx nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Convert DVI file to PDF with dvipdfmx")
		    ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Convert PostScript file to PDF")
		    ("LaTeXMk"
		     "latexmk %(latexmk-out) %(file-line-error) =
%`%(extraopts) %S%(mode)%' %t"
		     TeX-run-format nil (LaTeX-mode docTeX-mode) :help
		     "Run LaTeXMk")
		    ("Glossaries" "makeglossaries %(d-dir) %s" =
TeX-run-command
		     nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Run makeglossaries to create glossary file")
		    ("Index" "makeindex %(O?idx)" TeX-run-index nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Run makeindex to create index file")
		    ("upMendex" "upmendex %(O?idx)" TeX-run-index t
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Run upmendex to create index file")
		    ("Xindy" "texindy %s" TeX-run-command nil
		     (plain-TeX-mode LaTeX-mode docTeX-mode AmSTeX-mode
		      Texinfo-mode)
		     :help "Run xindy to create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil =
(LaTeX-mode)
		     :help "Check LaTeX file for correctness")
		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil =
(LaTeX-mode)
		     :help "Check LaTeX file for common mistakes")
		    ("Spell" "(TeX-ispell-document \"\")" =
TeX-run-function nil
		     t :help "Spell-check the document")
		    ("Clean" "TeX-clean" TeX-run-function nil t :help
		     "Delete generated intermediate files")
		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t =
:help
		     "Delete generated intermediate and output files")
		    ("Other" "" TeX-run-command t t :help
		     "Run an arbitrary command")
		    )
)




Acknowledgement sent to Derek Clegg <derek@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#71164; Package auctex. 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: Fri, 5 Jul 2024 07:45:02 UTC

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