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

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

[nongnu] elpa/typescript-mode 8910e12525 129/222: Add autoload cookie wi


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode 8910e12525 129/222: Add autoload cookie with safe-local-var for typescript-indent-level
Date: Sun, 6 Feb 2022 16:59:26 -0500 (EST)

branch: elpa/typescript-mode
commit 8910e12525390e971022bf263bcd6579e83c82df
Author: Daniel Kraus <daniel@kraus.my>
Commit: Daniel Kraus <daniel@kraus.my>

    Add autoload cookie with safe-local-var for typescript-indent-level
    
    If this is not autoloaded then it is only marked as safe from the
    defcustom macro *after* the package is loaded.
    This may be to late if someone opens a project with
    `typescript-indent-level` as dir-local set but has not
    loaded typescript-mode before.
---
 typescript-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typescript-mode.el b/typescript-mode.el
index 39b2c97aa9..6a08260bd3 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -605,6 +605,7 @@ Match group 1 is MUMBLE.")
   :type 'integer
   :safe 'integerp
   :group 'typescript)
+;;;###autoload(put 'typescript-indent-level 'safe-local-variable #'integerp)
 
 (defcustom typescript-expr-indent-offset 0
   "Number of additional spaces used for indentation of continued expressions.



reply via email to

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