Closed
Bug 669936
Opened 14 years ago
Closed 14 years ago
emacs mode lines for websockets 2 space indents
Categories
(Core :: Networking: WebSockets, defect)
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: mcmanus, Assigned: mcmanus)
References
Details
(Whiteboard: [inbound])
Attachments
(1 file)
|
3.15 KB,
patch
|
jduell.mcbugs
:
review+
|
Details | Diff | Splinter Review |
bug 664860 changed netwerk/websockets to 2 space indents but did not update the emacs mode lines.
| Assignee | ||
Updated•14 years ago
|
Component: Networking: HTTP → Networking: WebSockets
Depends on: 664860
QA Contact: networking.http → networking.websockets
| Assignee | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Comment on attachment 544533 [details] [diff] [review]
patch 1
>diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp
>-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
>+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
> /* vim: set sw=2 ts=8 et tw=80 : */
The "canonical" example in the Mozilla Style guide (and what I've used elsewhere in necko) is
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
I.e. tab-width is 8. Doesn't make any difference when indent-tabs-mode is nil, correct? Except when there are tabs already in file? I don't know--might as well follow the style guide.
>diff --git a/netwerk/protocol/websocket/nsIWebSocketChannel.idl
>diff --git a/netwerk/protocol/websocket/nsIWebSocketListener.idl
>-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
>+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
I deliberately kept the indenting of the IDL files at 4 spaces. Maybe that was stupid/arbitrary (logic: IDLs are old-school with the ns-prefix, etc.), but let's not change it now (unless you really want to, but I think I know the answer to that :) You can change tab-width to 8 for extra-credit.
Attachment #544533 -
Flags: review?(jduell.mcbugs) → review+
| Assignee | ||
Updated•14 years ago
|
Whiteboard: [inbound]
Comment 3•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in
before you can comment on or make changes to this bug.
Description
•