Package: js2-mode
Version: 0~20090723b-0.1
Severity: normal

It's often nice to document coding conventions automatically in
.dir-locals.el, so that people using emacs can collaborate without
needless pain.

here's a .dir-locals.el file i'd like to use in a project i'm using:

-----------------
;make it easier for emacs users to keep a consistent style.
((js2-mode . ((js2-basic-offset . 2)
              (indent-tabs-mode . nil))))
-----------------

However, when i open a .js file in a directory containing this
.dir-locals.el file, i get this warning:

--------------------------
The local variables list in /......../
contains values that may not be safe (*).

Do you want to apply it?  You can type
y  -- to apply the local variables list.
n  -- to ignore the local variables list.
!  -- to apply the local variables list, and permanently mark these
      values (*) as safe (in the future, they will be set automatically.)


  * js2-basic-offset : 2
    indent-tabs-mode : nil
--------------------------


I do *not* get this warning for .dir-locals.el files that contain
c-basic-offset directives, and i'm pretty sure i've never made this
decision explicitly.

If it is actually unsafe to auto-set js2-basic-offset to a
file-supplied value, that seems problematic.

If it is not actually unsafe to do so, it would be good to avoid
triggering this error message.

Regards,

        --dkg

PS thanks for js2-mode.  it's very helpful for me.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.36-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages js2-mode depends on:
ii  emacs [emacsen]               23.2+1-5.1 The GNU Emacs editor (metapackage)
ii  emacs23 [emacsen]             23.2+1-5.1 The GNU Emacs editor (with GTK+ us
ii  emacsen-common                1.4.22     Common facilities for all emacsen

js2-mode recommends no packages.

js2-mode suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to