Commit Graph

8 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
Panos Astithas
786186a5c5 Don't fail test_dbgsocket.js in case the socket connections time out (bug 931315); r=me
--HG--
extra : rebase_source : 4a5f043d5b324e31d7b571ec1db2d17bf7446381
2014-06-24 14:54:48 +03:00
Eddy Bruel
f62de5d055 Bug 1003095 - Clean up how we provide several APIs;r=past 2014-06-17 21:51:43 +02:00
J. Ryan Stinnett
2d9bccf345 Bug 1012869 - Allow STREAM_WOULD_BLOCK, close transport for others. r=paul 2014-06-09 13:21:00 -04:00
Alexandre Poirot
e18671f163 Bug 1012988 - Remove heritage dependency to packets.js. r=jimb 2014-06-05 08:55:00 -04:00
Eddy Bruel
389e9edbab Bug 1003095 - Refactor transport.js to be worker friendly;r=past 2014-05-30 16:43:01 +02:00
J. Ryan Stinnett
35fb8b8d22 Bug 797639 - Part 2: Bulk data support in client and server. r=jimb 2014-05-14 14:30:02 -05:00
J. Ryan Stinnett
c278833c23 Bug 797639 - Part 1: Bulk data support in the transport layer. r=jimb
--HG--
rename : toolkit/devtools/moz.build => toolkit/devtools/transport/moz.build
rename : toolkit/devtools/moz.build => toolkit/devtools/transport/tests/moz.build
rename : toolkit/devtools/server/tests/unit/test_dbgsocket.js => toolkit/devtools/transport/tests/unit/test_dbgsocket.js
rename : toolkit/devtools/server/tests/unit/test_dbgsocket_connection_drop.js => toolkit/devtools/transport/tests/unit/test_dbgsocket_connection_drop.js
rename : toolkit/devtools/server/transport.js => toolkit/devtools/transport/transport.js
2014-05-14 14:30:02 -05:00