From 8ecae6f3a9efbe98d5e56458f9b74f72083e26db Mon Sep 17 00:00:00 2001 From: Gracjan Polak Date: Fri, 9 Jan 2015 21:25:36 +0100 Subject: [PATCH] Mark some variables as safe. Mark haskell-indent-offset, haskell-indent-literate-Bird-default-offset, haskell-indent-rhs-align-column, haskell-indent-look-past-empty-line and haskell-indent-thenelse as safe file local variables. --- haskell-indent.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/haskell-indent.el b/haskell-indent.el index 116b82d25..ca21e7052 100644 --- a/haskell-indent.el +++ b/haskell-indent.el @@ -102,16 +102,19 @@ (defcustom haskell-indent-offset 4 "Indentation of Haskell statements with respect to containing block." :type 'integer + :safe #'natnump :group 'haskell-indent) (defcustom haskell-indent-literate-Bird-default-offset 1 "Default number of blanks after > in a Bird style literate script." :type 'integer + :safe #'natnump :group 'haskell-indent) (defcustom haskell-indent-rhs-align-column 0 "Column on which to align right-hand sides (use 0 for ad-hoc alignment)." :type 'integer + :safe #'natnump :group 'haskell-indent) (defun haskell-indent-point-to-col (apoint) @@ -324,6 +327,7 @@ It deals with both Bird style and non Bird-style scripts." (defcustom haskell-indent-look-past-empty-line t "If nil, indentation engine will not look past an empty line for layout points." :group 'haskell-indent + :safe #'booleanp :type 'boolean) (defun haskell-indent-start-of-def () @@ -1020,6 +1024,7 @@ OPEN is the start position of the comment in which point is." This is necessary in the \"do\" layout under Haskell-98. See http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse" :group 'haskell-indent + :safe #'booleanp :type 'integer) (defun haskell-indent-closing-keyword (start)