GNOME Bugzilla – Bug 660358
fix up emacs modelines
Last modified: 2011-10-11 12:06:08 UTC
I got tired of always seeing "Ignoring unknown mode `js2-mode'". One note on the js patch; "js-indent-level" is not in the default set of "safe" modeline variables, so emacs will warn when you try to open a file with it set (although it gives you the option of adding that variable to the safe list at that point). Given that 4 is the default value anyway, we could just remove it, although then people who are overriding it in their .emacs would end up with the wrong value in the file...
Created attachment 197662 [details] [review] *.js: Make emacs modelines consistent js2-mode is no longer developed and we recomment js-mode these days, so switch the modelines to specify that, and make them consistent across all files.
Created attachment 197663 [details] [review] *.[ch]: add emacs modeline to C files that were missing it (excluding files that are synced from another module)
Review of attachment 197662 [details] [review]: Not an emacs user but it looks right to me.
Review of attachment 197663 [details] [review]: Looks good.
Attachment 197662 [details] pushed as 75b824d - *.js: Make emacs modelines consistent Attachment 197663 [details] pushed as 4333bdc - *.[ch]: add emacs modeline to C files that were missing it