GNU bug report logs - #12257
24.2.50; safe-local-variable property for js indent variables

Previous Next

Package: emacs;

Reported by: Daiki Ueno <ueno <at> unixuser.org>

Date: Wed, 22 Aug 2012 04:25:01 UTC

Severity: normal

Merged with 12256

Found in version 24.2.50

Done: Daiki Ueno <ueno <at> unixuser.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12257 in the body.
You can then email your comments to 12257 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12257; Package emacs. (Wed, 22 Aug 2012 04:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daiki Ueno <ueno <at> unixuser.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 22 Aug 2012 04:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daiki Ueno <ueno <at> unixuser.org>
To: bug-gnu-emacs <at> gnu.org
Cc: Daniel Colascione <dan.colascione <at> gmail.com>
Subject: 24.2.50; safe-local-variable property for js indent variables
Date: Wed, 22 Aug 2012 12:55:10 +0900
[Message part 1 (text/plain, inline)]
Hi,

Since most of js files in gnome-shell contain the following line:

// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-

I'm asked "values that may not be safe" question each time when I open
such a files.  It might be good to have :safe property for such a
variables for indent, as python.el does?

[js-safe-local-variable.patch (text/x-patch, inline)]
=== modified file 'lisp/progmodes/js.el'
--- lisp/progmodes/js.el	2012-07-11 23:13:41 +0000
+++ lisp/progmodes/js.el	2012-08-22 03:33:17 +0000
@@ -426,18 +426,21 @@
 (defcustom js-indent-level 4
   "Number of spaces for each indentation step in `js-mode'."
   :type 'integer
+  :safe 'integerp
   :group 'js)
 
 (defcustom js-expr-indent-offset 0
   "Number of additional spaces for indenting continued expressions.
 The value must be no less than minus `js-indent-level'."
   :type 'integer
+  :safe 'integerp
   :group 'js)
 
 (defcustom js-paren-indent-offset 0
   "Number of additional spaces for indenting expressions in parentheses.
 The value must be no less than minus `js-indent-level'."
   :type 'integer
+  :safe 'integerp
   :group 'js
   :version "24.1")
 
@@ -445,6 +448,7 @@
   "Number of additional spaces for indenting expressions in square braces.
 The value must be no less than minus `js-indent-level'."
   :type 'integer
+  :safe 'integerp
   :group 'js
   :version "24.1")
 
@@ -452,6 +456,7 @@
   "Number of additional spaces for indenting expressions in curly braces.
 The value must be no less than minus `js-indent-level'."
   :type 'integer
+  :safe 'integerp
   :group 'js
   :version "24.1")
 

[Message part 3 (text/plain, inline)]
Regards,
-- 
Daiki Ueno

bug closed, send any further explanations to 12257 <at> debbugs.gnu.org and Daiki Ueno <ueno <at> unixuser.org> Request was from Daiki Ueno <ueno <at> unixuser.org> to control <at> debbugs.gnu.org. (Wed, 22 Aug 2012 05:43:01 GMT) Full text and rfc822 format available.

Merged 12256 12257. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 22 Aug 2012 06:38:08 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Sep 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.