GNU bug report logs - #70779
[PATCH] Emacs 30 and warning about missing lexical-binding declaration

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Sun, 5 May 2024 11:05:01 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: 70779 <at> debbugs.gnu.org
Subject: bug#70779: [PATCH] Emacs 30 and warning about missing lexical-binding declaration
Date: Mon, 06 May 2024 07:27:26 +0200
Arash Esbati <arash <at> gnu.org> writes:

> Arash Esbati <arash <at> gnu.org> writes:
>
>> I suggest the following change to `TeX-auto-store' in tex.el:
>
> Which can be reduced to:
>
> diff --git a/tex.el b/tex.el
> index cda1d7f6..30f80c7e 100644
> --- a/tex.el
> +++ b/tex.el
> @@ -4267,6 +4267,7 @@ If TEX is a directory, generate style files for all files in the directory."
>          (TeX-unload-style style)
>          (with-current-buffer (generate-new-buffer file)
>            (erase-buffer)
> +          (insert ";;" (make-string 40 ?\s) "-*- lexical-binding: t; -*-\n\n")
>            (insert "(TeX-add-style-hook\n \""
>                    style "\"\n (lambda ()")
>            (unless (string= tex-cmd-opts "")

That change in Emacs in reverted (d51de0c5d9), but still, I think we can
turn lexical-binding on in auto-parsed style files as well.  I will
install this in a day or two if there are no other comments.

Best, Arash




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

Previous Next


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