OoO Pendant le journal télévisé du mardi 14 décembre 2010, vers 20:35, Daniel Kahn Gillmor <[email protected]> disait :
> 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.
You can add it to 'safe-local-variable-values'. But yes, it should be
built into the mode. I will look at how to do it.
--
panic("floppy: Port bolixed.");
2.2.16 /usr/src/linux/include/asm-sparc/floppy.h
pgp113eNIwear.pgp
Description: PGP signature

