On Wed, Jun 17, 2015 at 3:53 AM, Mike Hommey <m...@glandium.org> wrote:

> What we currently have in the tree is essentially modelines for vim and
> emacs. But:
> - most vim installations have modelines disabled by default because of
>   the security implications: https://lwn.net/Articles/20249/.
> - emacs has the same security implication, and AIUI, opening a file with
>   a modeline makes emacs ask questions to the user. Or ignore them in
>   batch mode.
>
As Boris said, for our particular emacs modeline there is no prompt.


> - they add 2 or 3 lines of boilerplate to every file in the tree.
>
There's a ton of boilerplate at the top of every file, between the MPL and
the vast sea of includes, which we're never going to be able to get rid of.


> - they are not being added to every file in the tree.
>
Mode lines are easy to fix up (I wrote a script to do this) and only need
to be done once per file.

So how about removing modelines and adding editorconfig files?
>

I'm not particularly attached to mode lines (they are rather gross!), but
replacing a once-per-file cost with a once-per-developer cost doesn't seem
like a good trade off to me.


> Mike
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to