aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gramiak2017-06-20 21:05:38 -0400
committerGlenn Morris2017-06-20 21:05:38 -0400
commit671921137ada3994766ff674783293cd0fc05244 (patch)
tree8052c308b25187afdf5b6825552b48e83464c787
parent3d7221d09a870bfb4b93e016e181005e27c9b3f5 (diff)
downloademacs-671921137ada3994766ff674783293cd0fc05244.tar.gz
emacs-671921137ada3994766ff674783293cd0fc05244.zip
Mark prolog indent variables as safe (bug#27369)
* lisp/progmodes/prolog.el (prolog-indent-width) (prolog-left-indent-regexp, prolog-paren-indent-p) (prolog-paren-indent): Add :safe property.
-rw-r--r--lisp/progmodes/prolog.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index c234cca3ff9..f2b487dd3bb 100644
--- a/lisp/progmodes/prolog.el
+++ b/lisp/progmodes/prolog.el
@@ -358,13 +358,15 @@ The version numbers are of the format (Major . Minor)."
358(defcustom prolog-indent-width 4 358(defcustom prolog-indent-width 4
359 "The indentation width used by the editing buffer." 359 "The indentation width used by the editing buffer."
360 :group 'prolog-indentation 360 :group 'prolog-indentation
361 :type 'integer) 361 :type 'integer
362 :safe 'integerp)
362 363
363(defcustom prolog-left-indent-regexp "\\(;\\|\\*?->\\)" 364(defcustom prolog-left-indent-regexp "\\(;\\|\\*?->\\)"
364 "Regexp for `prolog-electric-if-then-else-flag'." 365 "Regexp for `prolog-electric-if-then-else-flag'."
365 :version "24.1" 366 :version "24.1"
366 :group 'prolog-indentation 367 :group 'prolog-indentation
367 :type 'regexp) 368 :type 'regexp
369 :safe 'stringp)
368 370
369(defcustom prolog-paren-indent-p nil 371(defcustom prolog-paren-indent-p nil
370 "If non-nil, increase indentation for parenthesis expressions. 372 "If non-nil, increase indentation for parenthesis expressions.
@@ -374,14 +376,16 @@ right (if this variable is non-nil) or in the same way as for compound
374terms (if this variable is nil, default)." 376terms (if this variable is nil, default)."
375 :version "24.1" 377 :version "24.1"
376 :group 'prolog-indentation 378 :group 'prolog-indentation
377 :type 'boolean) 379 :type 'boolean
380 :safe 'booleanp)
378 381
379(defcustom prolog-paren-indent 4 382(defcustom prolog-paren-indent 4
380 "The indentation increase for parenthesis expressions. 383 "The indentation increase for parenthesis expressions.
381Only used in ( If -> Then ; Else) and ( Disj1 ; Disj2 ) style expressions." 384Only used in ( If -> Then ; Else) and ( Disj1 ; Disj2 ) style expressions."
382 :version "24.1" 385 :version "24.1"
383 :group 'prolog-indentation 386 :group 'prolog-indentation
384 :type 'integer) 387 :type 'integer
388 :safe 'integerp)
385 389
386(defcustom prolog-parse-mode 'beg-of-clause 390(defcustom prolog-parse-mode 'beg-of-clause
387 "The parse mode used (decides from which point parsing is done). 391 "The parse mode used (decides from which point parsing is done).