bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#70779: [PATCH] Emacs 30 and warning about missing lexical-binding de


From: Arash Esbati
Subject: bug#70779: [PATCH] Emacs 30 and warning about missing lexical-binding declaration
Date: Sun, 05 May 2024 14:42:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Arash Esbati <arash@gnu.org> writes:

> I suggest the following change to `TeX-auto-store' in tex.el:

Which can be reduced to:

--8<---------------cut here---------------start------------->8---
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 "")
--8<---------------cut here---------------end--------------->8---

Any comments welcome.

Best, Arash





reply via email to

[Prev in Thread] Current Thread [Next in Thread]