From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#27369: 26.0.50; [PATCH] Mark prolog indent variables as safe Date: Wed, 14 Jun 2017 17:44:04 -0600 Message-ID: <8737b2rv7f.fsf@lylat> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1497483978 18069 195.159.176.226 (14 Jun 2017 23:46:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 23:46:18 +0000 (UTC) To: 27369@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 15 01:46:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLHzI-0004Gx-Il for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 01:46:12 +0200 Original-Received: from localhost ([::1]:51246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLHzM-0007A0-AA for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 19:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLHyD-0006aL-Qx for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLHyA-0006uW-Nw for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45425) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLHyA-0006uQ-KG for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLHyA-0000Q9-B5 for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Jun 2017 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27369 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14974838611544 (code B ref -1); Wed, 14 Jun 2017 23:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jun 2017 23:44:21 +0000 Original-Received: from localhost ([127.0.0.1]:48102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLHxV-0000Oq-Dr for submit@debbugs.gnu.org; Wed, 14 Jun 2017 19:44:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLHxU-0000Od-AP for submit@debbugs.gnu.org; Wed, 14 Jun 2017 19:44:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLHxO-0006h5-82 for submit@debbugs.gnu.org; Wed, 14 Jun 2017 19:44:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53121) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLHxO-0006gz-4A for submit@debbugs.gnu.org; Wed, 14 Jun 2017 19:44:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLHxM-0006Vj-IK for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:44:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLHxJ-0006gG-AQ for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:44:12 -0400 Original-Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:33839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLHxJ-0006gB-3Z for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 19:44:09 -0400 Original-Received: by mail-io0-x22e.google.com with SMTP id i7so1839792ioe.1 for ; Wed, 14 Jun 2017 16:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=nP2d2xf2BSFAvRneAcRd7pzmXPhVDmxQGyiUgBXiTeU=; b=Uy69cjZwCTOBXREs1equ59xnCvIvBM5QYHP7c3Y4dk8ieYpbKjmE0FfCUr5LmZlT82 3HfuymBK6fkJ7OTA0YrV4VGfbdTg7uB7k28Hpf1QEEByjTJdCBrlKEYFo+lOF6mkZkio zNcvW/NTUcU0YCB/ihPO2r3//4UD5Via5M1xWTZfPGmIPlknK/Eimcoqi3UUm6Zly0Wp 3JnLkyAEI64AKCMLmvPJaUVVjW/d8mdmyzx0/JOW8uX531vSXJfQO5GBixiAp5NqS0Xs pKuTLxmmbpeE7P4FDU+ZafE8p1yjNQZWqXja4AATvX+ZySxHaQM6xaziCZyrIZ+5+0q/ mEKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=nP2d2xf2BSFAvRneAcRd7pzmXPhVDmxQGyiUgBXiTeU=; b=sx3QnLb7aM3PC+Kv2WF/OOkWzEB7RJmdF1FjxrrigfVmnXoIvG+yfPuBSHuKhETJsA XM59Zt8APgSNMQgAzX359DPL0hB4OMcVvSdYwpQ+iWEyjkw5zqL5I0Q/Hja0ViRyQtum dIWDSqESJmJ+eRb/hvyQUeGbsLeLe3P1+piUG915nDfW/OSyunpiKpT+3gVZRUprXJfi 27k4NT0SytQq/gH5p0kNxv4rB2CABkvXVNuYC2CGMFT1m3CDrnIyxtm9/0U98RMsZvEt YrPln4sVR1EcQb5eER+cZNypTdihZVIEMQaBSe/1OTP3zMY6uXbMtxHcMx/FCEtD4v39 L9iQ== X-Gm-Message-State: AKS2vOxKVJ6R9juQj8Nmwxtxm2Q3UQyqMgE+JnQIGVswfXu5wUZgF9Th 7nY+dTC3Eriy+Sae X-Received: by 10.107.136.41 with SMTP id k41mr2728521iod.89.1497483848005; Wed, 14 Jun 2017 16:44:08 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id 66sm690314itj.1.2017.06.14.16.44.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Jun 2017 16:44:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133591 Archived-At: --=-=-= Content-Type: text/plain Opening a file that sets these variables locally shouldn't prompt a user. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Mark-prolog-indent-variables-as-safe.patch Content-Description: prolog >From ec126592cf6f70b7ba8f39d3071f50a1d524866c Mon Sep 17 00:00:00 2001 From: Alexander Gramiak 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 --=-=-=--