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

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

[nongnu] elpa/scala-mode aebed53 168/217: Mark a couple of indentation v


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode aebed53 168/217: Mark a couple of indentation variables as safe (#105)
Date: Sun, 29 Aug 2021 11:31:05 -0400 (EDT)

branch: elpa/scala-mode
commit aebed53225599cad6243a0d162089c1fceb5a676
Author: Sebastian Wiesner <swiesner@lunaryorn.com>
Commit: Sam Halliday <sam.halliday@gmail.com>

    Mark a couple of indentation variables as safe (#105)
    
    These variables can reasonably set with `.dir-locals.el`.  Marking them as 
`:safe` removes the nagging prompt when doing so.
---
 scala-mode2-indent.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scala-mode2-indent.el b/scala-mode2-indent.el
index 720a028..b8a1c7f 100644
--- a/scala-mode2-indent.el
+++ b/scala-mode2-indent.el
@@ -13,6 +13,7 @@
   "The number of spaces an indentation step should be. The actual
 indentation will be one or two steps depending on context."
   :type 'integer
+  :safe #'integerp
   :group 'scala)
 
 (defcustom scala-indent:indent-value-expression nil
@@ -62,6 +63,7 @@ val x = foo(1, List(1, 2, 3) map (i =>
   ), 2)
 "
   :type 'boolean
+  :safe #'booleanp
   :group 'scala)
 
 (defcustom scala-indent:align-forms nil
@@ -120,6 +122,7 @@ are not ruled out by the language specification.
   "When non-nil, a space will be added after a scaladoc asterisk,
 when it is added to an empty line."
   :type 'boolean
+  :safe #'booleanp
   :group 'scala)
 
 (defcustom scala-indent:use-javadoc-style nil
@@ -127,6 +130,7 @@ when it is added to an empty line."
 style (i.e. indented to the first asterisk). This overrides the
 Scaladoc behavior of indenting comment lines to the second asterisk."
   :type 'boolean
+  :safe #'booleanp
   :group 'scala)
 
 (defun scala-indent:run-on-strategy ()



reply via email to

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