Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(153)

Issue 5844063: code review 5844063: misc/emacs: fix overindentation caused by mis-parsing l... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by bf
Modified:
13 years, 1 month ago
Reviewers:
CC:
Sameer Ajmani, r2, golang-dev
Visibility:
Public.

Description

misc/emacs: fix overindentation caused by mis-parsing lines ending with special chars Fixes issue 3313 go-mode-backward-skip-comments is probably due for a more ambitious refactoring --- it repeats guard conditions after every nearly every movement of point.

Patch Set 1 #

Patch Set 2 : diff -r 8824dae9afdc https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f937b86161b7 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f937b86161b7 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 5 : diff -r a50b793f143b https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r a50b793f143b https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r a50b793f143b https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r a50b793f143b https://go.googlecode.com/hg/ #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -24 lines) Patch
M misc/emacs/go-mode.el View 1 2 3 4 5 6 7 9 chunks +179 lines, -24 lines 6 comments Download

Messages

Total messages: 20
bf
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-03-20 02:46:33 UTC) #1
bf
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2012-03-20 14:27:22 UTC) #2
adg
Anyone know elisp? I don't.
13 years, 1 month ago (2012-03-20 23:43:13 UTC) #3
r2
On Mar 21, 2012, at 10:42 AM, Andrew Gerrand wrote: > Anyone know elisp? I ...
13 years, 1 month ago (2012-03-20 23:47:05 UTC) #4
volker.dobler
At least lines ending in " are still broken: import ( "fmt" "math" ) and ...
13 years, 1 month ago (2012-03-21 00:32:59 UTC) #5
bf
I can tell you in more detail what I did if you wish. Issue 3313 ...
13 years, 1 month ago (2012-03-21 01:31:13 UTC) #6
Sameer Ajmani
http://codereview.appspot.com/5844063/diff/5001/misc/emacs/go-mode.el File misc/emacs/go-mode.el (right): http://codereview.appspot.com/5844063/diff/5001/misc/emacs/go-mode.el#newcode410 misc/emacs/go-mode.el:410: (or (eq 32 (char-syntax char)))) Add a function comment. ...
13 years, 1 month ago (2012-03-22 15:04:30 UTC) #7
bf
Hello golang-dev@googlegroups.com, adg@golang.org, r@google.com, dr.volker.dobler@gmail.com, sameer@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2012-03-26 02:55:01 UTC) #8
bf
Hello golang-dev@googlegroups.com, adg@golang.org, r@google.com, dr.volker.dobler@gmail.com, sameer@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2012-03-26 02:58:40 UTC) #9
bf
Hello golang-dev@googlegroups.com, adg@golang.org, r@google.com, dr.volker.dobler@gmail.com, sameer@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2012-03-26 03:07:54 UTC) #10
volker.dobler
Much better. Only keys in struct literals are not indented enough (looks like cases in ...
13 years, 1 month ago (2012-03-26 09:40:28 UTC) #11
rsc
R=sameer Thanks very much, Ben.
13 years, 1 month ago (2012-03-26 12:24:23 UTC) #12
bf
Volker has pointed out that it muffs up indentation of keys in struct literals. I ...
13 years, 1 month ago (2012-03-26 12:56:15 UTC) #13
bf
Hello sameer@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 1 month ago (2012-03-26 21:34:31 UTC) #14
Sameer Ajmani
ooo today, will look tomorrow. On Mar 26, 2012 5:34 PM, <ben.fried@gmail.com> wrote: > Hello ...
13 years, 1 month ago (2012-03-26 23:32:10 UTC) #15
Sameer Ajmani
Most of my comments are about how to structure the repeated code elements. Since this ...
13 years, 1 month ago (2012-03-27 02:32:44 UTC) #16
r2
can we please get to a working state fast so we can check this in ...
13 years, 1 month ago (2012-03-27 02:34:27 UTC) #17
bf
I believe it's in a working state. Volker reported a problem with my prior patch ...
13 years, 1 month ago (2012-03-27 02:51:21 UTC) #18
Sameer Ajmani
LGTM fine to submit this now and clean up in a followup On Mar 26, ...
13 years, 1 month ago (2012-03-27 03:17:11 UTC) #19
rsc
13 years, 1 month ago (2012-03-27 03:26:43 UTC) #20
*** Submitted as 0d0d70895037 ***

misc/emacs: fix overindentation caused by mis-parsing lines ending with special
chars

Fixes issue 3313

go-mode-backward-skip-comments is probably due for a more ambitious refactoring
--- it repeats guard conditions after every nearly every movement of point.

R=sameer, r
CC=golang-dev
http://codereview.appspot.com/5844063

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b