* bug#12257: 24.2.50; safe-local-variable property for js indent variables
@ 2012-08-22 3:55 Daiki Ueno
2012-08-22 4:03 ` bug#12256: " Daniel Colascione
0 siblings, 1 reply; 2+ messages in thread
From: Daiki Ueno @ 2012-08-22 3:55 UTC (permalink / raw)
To: 12257; +Cc: Daniel Colascione
[-- Attachment #1: Type: text/plain, Size: 315 bytes --]
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?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: js-safe-local-variable.patch --]
[-- Type: text/x-patch, Size: 1224 bytes --]
=== 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")
[-- Attachment #3: Type: text/plain, Size: 25 bytes --]
Regards,
--
Daiki Ueno
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#12256: 24.2.50; safe-local-variable property for js indent variables
2012-08-22 3:55 bug#12257: 24.2.50; safe-local-variable property for js indent variables Daiki Ueno
@ 2012-08-22 4:03 ` Daniel Colascione
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Colascione @ 2012-08-22 4:03 UTC (permalink / raw)
To: Daiki Ueno; +Cc: 12256, dan.colascione
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
On 8/21/12 8:55 PM, Daiki Ueno wrote:
> 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?
Thanks. Looks good to me.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-22 4:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 3:55 bug#12257: 24.2.50; safe-local-variable property for js indent variables Daiki Ueno
2012-08-22 4:03 ` bug#12256: " Daniel Colascione
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.