Commit Graph

12 Commits

Author SHA1 Message Date
Jim Blandy
4d6a633bba Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Matthew Noorenberghe
83652b3eef Bug 885139 - Notify consumers about LWT optimization and listen for it in LightweightThemeListener. r=jaws
[Australis]
2014-03-20 13:55:49 -07:00
Matthew Noorenberghe
09c93a2784 Bug 983761 - Add support for CSSGroupingRules in LightweightThemeListener. r=Gijs 2014-03-14 16:24:57 -07:00
Trevor Saunders
9478cae48b bug 331376 - merge nsIDocShellTreeNode into nsIDocShellTreeItem r=smaug 2014-01-06 17:34:15 -05:00
Gijs Kruitbosch
0c8d51758d Bug 884120 - nullcheck themeData before using it in LightweightThemeListener, r=MattN 2013-07-17 12:36:32 +02:00
Gijs Kruitbosch
5b3ffd9465 Bug 749804 - part 0: remove the add-on bar, r=jaws 2013-05-09 12:08:07 +02:00
Matthew Noorenberghe
849dd7a691 Bug 813786 - Australis tabs Windows lightweight theme support. r=mconley 2013-04-22 17:01:31 -07:00
Jonathan Kew
77c034ad6e bug 814383 - fix javascript strict-mode warnings in browser.js. r=gavin 2012-11-26 16:18:25 +00:00
Graeme McCutcheon
772a804d5d Bug 736358 - Remove "Open Add-Ons Manager" button for restartless addons. r=bmcbride 2012-10-08 09:33:19 +01:00
Ian Moody
6fd85a4fb0 Bug 737792 - Use for..of loops in browser.js. r=dao
--HG--
extra : rebase_source : df980b6310daecb9e80793ca900ba983aadb12c6
2012-08-21 18:56:07 +02:00
Devdatta Akhawe
a7f111cd79 Bug 767676 - Implement Security UI Telemetry. r=honzab,bsmith,felipc,dtownsend 2012-08-02 18:51:17 -07:00
Justin Dolske
4871fb6c14 Bug 758812 - Break up browser.js into smaller pieces, Phase 1 (Addons). r=gavin 2012-05-31 23:26:00 -07:00