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

Previous Next

Package: auctex;

Reported by: Derek Clegg <derek <at> me.com>

Date: Fri, 24 May 2024 04:45:01 UTC

Severity: normal

Found in version 14.0.5

Fixed in version 14.0.6

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 71164 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Derek Clegg <derek <at> me.com>
Cc: 71164 <at> debbugs.gnu.org, Ikumi Keita <ikumi <at> ikumi.que.jp>,
 Paul Nelson <ultrono <at> gmail.com>
Subject: Re: bug#71164: 14.0.5; Font lock annoyance
Date: Thu, 13 Jun 2024 20:18:32 +0200
Arash Esbati <arash <at> gnu.org> writes:

> Ikumi Keita <ikumi <at> ikumi.que.jp> 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.

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:

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

Best, Arash




This bug report was last modified 1 year and 15 days ago.

Previous Next


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