Subject: bug#27369: closed (Re: bug#27369: 26.0.50; [PATCH] Mark prolog indent variables as safe)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 21 Jun 2017 01:07:02 +0000

Your bug report

#27369: 26.0.50; [PATCH] Mark prolog indent variables as safe

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
27369: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27369
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#27369: 26.0.50; [PATCH] Mark prolog indent variables as safe
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 20 Jun 2017 21:06:51 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 26.1

Thanks; applied as 6719211.

Subject: 26.0.50; [PATCH] Mark prolog indent variables as safe
From: Alex <[email-masked]>
To: [email-masked]
Date: Wed, 14 Jun 2017 17:44:04 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

Opening a file that sets these variables locally shouldn't prompt a
user.

>From ec126592cf6f70b7ba8f39d3071f50a1d524866c Mon Sep 17 00:00:00 2001
From: Alexander Gramiak <[email-masked]>
Date: Wed, 14 Jun 2017 17:30:18 -0600
Subject: [PATCH] * Mark prolog indent variables as safe

* lisp/progmodes/prolog.el (prolog-indent-width)
(prolog-left-indent-regexp, prolog-paren-indent-p)
(prolog-paren-indent): Mark as safe.
---
 lisp/progmodes/prolog.el | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index c234cca3ff..f2b487dd3b 100644
--- a/lisp/progmodes/prolog.el
+++ b/lisp/progmodes/prolog.el
@@ -358,13 +358,15 @@ prolog-system-version
 (defcustom prolog-indent-width 4
   "The indentation width used by the editing buffer."
   :group 'prolog-indentation
-  :type 'integer)
+  :type 'integer
+  :safe 'integerp)
 
 (defcustom prolog-left-indent-regexp "\\(;\\|\\*?->\\)"
   "Regexp for `prolog-electric-if-then-else-flag'."
   :version "24.1"
   :group 'prolog-indentation
-  :type 'regexp)
+  :type 'regexp
+  :safe 'stringp)
 
 (defcustom prolog-paren-indent-p nil
   "If non-nil, increase indentation for parenthesis expressions.
@@ -374,14 +376,16 @@ prolog-paren-indent-p
 terms (if this variable is nil, default)."
   :version "24.1"
   :group 'prolog-indentation
-  :type 'boolean)
+  :type 'boolean
+  :safe 'booleanp)
 
 (defcustom prolog-paren-indent 4
   "The indentation increase for parenthesis expressions.
 Only used in ( If -> Then ; Else) and ( Disj1 ; Disj2 ) style expressions."
   :version "24.1"
   :group 'prolog-indentation
-  :type 'integer)
+  :type 'integer
+  :safe 'integerp)
 
 (defcustom prolog-parse-mode 'beg-of-clause
   "The parse mode used (decides from which point parsing is done).
-- 
2.11.0