all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex <agrambot@gmail.com>
To: 27369@debbugs.gnu.org
Subject: bug#27369: 26.0.50; [PATCH] Mark prolog indent variables as safe
Date: Wed, 14 Jun 2017 17:44:04 -0600	[thread overview]
Message-ID: <8737b2rv7f.fsf@lylat> (raw)

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: prolog --]
[-- Type: text/x-diff, Size: 1748 bytes --]

From ec126592cf6f70b7ba8f39d3071f50a1d524866c Mon Sep 17 00:00:00 2001
From: Alexander Gramiak <agrambot@gmail.com>
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


             reply	other threads:[~2017-06-14 23:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14 23:44 Alex [this message]
2017-06-21  1:06 ` bug#27369: 26.0.50; [PATCH] Mark prolog indent variables as safe Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8737b2rv7f.fsf@lylat \
    --to=agrambot@gmail.com \
    --cc=27369@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.