Closed
Bug 1511393
Opened 7 years ago
Closed 7 years ago
Update Emacs mode line to use 2-spaces indent
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox65 fixed)
RESOLVED
FIXED
mozilla65
| Tracking | Status | |
|---|---|---|
| firefox65 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
|
1.36 MB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
Given we stopped using 4-spaces indentation in js/, Emacs mode line needs to be updated
(or the mode line needs to be removed?)
Comment 1•7 years ago
|
||
See bug 1023839 for a different approach based on removing the lines.
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
Replaced "c-basic-offset: 4" with "c-basic-offset: 2", by:
* grepped "c-basic-offset: 4"
* filtered only to C/C++ code (.cpp, .c, .h, .mm, .m)
* filtered .clang-format-ignore patterns out
* replaced the line with sed
I agree that it's better discuss about the future, whether to use mode line,
but this helps a lot when editing those files meanwhile.
| Assignee | ||
Comment 4•7 years ago
|
||
actually, not js/ specific patch
Summary: Update Emacs mode line to use 2-spaces indent in js/ → Update Emacs mode line to use 2-spaces indent
Comment 5•7 years ago
|
||
Comment on attachment 9029004 [details] [diff] [review]
Use c-basic-offset: 2 in Emacs mode line for C/C++ code.
Review of attachment 9029004 [details] [diff] [review]:
-----------------------------------------------------------------
Sounds good to me.
Attachment #9029004 -
Flags: review?(sledru) → review+
| Assignee | ||
Comment 6•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/66eb1f485c1a3ea81372758bc92292c9428b17cd
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
Comment 7•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Updated•7 years ago
|
Target Milestone: Firefox 65 → mozilla65
Updated•4 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•