emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 68b47faec6 17/25: ; * tex-fold.el: Use `defvar-l


From: Tassilo Horn
Subject: [elpa] externals/auctex 68b47faec6 17/25: ; * tex-fold.el: Use `defvar-local'.
Date: Mon, 8 Jan 2024 07:59:11 -0500 (EST)

branch: externals/auctex
commit 68b47faec646edb9c3b40212b78a097735f72149
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    ; * tex-fold.el: Use `defvar-local'.
---
 tex-fold.el | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/tex-fold.el b/tex-fold.el
index 0952bccc77..a48e4f8429 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -121,13 +121,12 @@ Customize or reset the mode."
                                 (function :tag "Function to execute"))
                         (repeat :tag "Macros" (string)))))
 
-(defvar TeX-fold-macro-spec-list-internal nil
+(defvar-local TeX-fold-macro-spec-list-internal nil
   "Internal list of display strings and macros to fold.
 Is updated when the TeX Fold mode is being activated and then
 contains all constructs to fold for the given buffer or mode
 respectively, that is, contents of both `TeX-fold-macro-spec-list'
 and <mode-prefix>-fold-macro-spec-list.")
-(make-variable-buffer-local 'TeX-fold-macro-spec-list-internal)
 
 (defcustom TeX-fold-env-spec-list
   '(("[comment]" ("comment")))
@@ -137,13 +136,12 @@ and <mode-prefix>-fold-macro-spec-list.")
                                 (function :tag "Function to execute"))
                         (repeat :tag "Environments" (string)))))
 
-(defvar TeX-fold-env-spec-list-internal nil
+(defvar-local TeX-fold-env-spec-list-internal nil
   "Internal list of display strings and environments to fold.
 Is updated when the TeX Fold mode is being activated and then
 contains all constructs to fold for the given buffer or mode
 respectively, that is, contents of both `TeX-fold-env-spec-list'
 and <mode-prefix>-fold-env-spec-list.")
-(make-variable-buffer-local 'TeX-fold-env-spec-list-internal)
 
 (defcustom TeX-fold-math-spec-list nil
   "List of display strings and math macros to fold."
@@ -152,13 +150,12 @@ and <mode-prefix>-fold-env-spec-list.")
                                 (function :tag "Function to execute"))
                         (repeat :tag "Math Macros" (string)))))
 
-(defvar TeX-fold-math-spec-list-internal nil
+(defvar-local TeX-fold-math-spec-list-internal nil
   "Internal list of display strings and math macros to fold.
 Is updated when the TeX Fold mode is being activated and then
 contains all constructs to fold for the given buffer or mode
 respectively, that is, contents of both `TeX-fold-math-spec-list'
 and <mode-prefix>-fold-math-spec-list.")
-(make-variable-buffer-local 'TeX-fold-math-spec-list-internal)
 
 (defcustom TeX-fold-unspec-macro-display-string "[m]"
   "Display string for unspecified macros.
@@ -234,8 +231,7 @@ Set it to zero in order to disable help echos."
 (defvar TeX-fold-ellipsis "..."
   "String used as display string for overlays instead of a zero-length 
string.")
 
-(defvar TeX-fold-open-spots nil)
-(make-variable-buffer-local 'TeX-fold-open-spots)
+(defvar-local TeX-fold-open-spots nil)
 
 (defcustom TeX-fold-command-prefix "\C-c\C-o"
   "Prefix key to use for commands in TeX Fold mode.



reply via email to

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