Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Issue 8872013: Fix flymake to work with my Emacs, and hopefully not break others. (Closed)

Created:
9 years ago by Jói
Modified:
9 years ago
CC:
chromium-reviews, fischman+watch_chromium.org, dhollowa+watch_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Fix for configs where the Chrome checkout is under user's home directory (in which case buffer-file-truename returns a path starting with ~). BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113664

Patch Set 1 #

Patch Set 2 : Check for nil. #

Total comments: 8

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M tools/emacs/flymake-chromium.el View 1 2 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jói
Hi Ami, I finally got round to getting this working in my config, and there ...
9 years ago (2011-12-08 13:24:37 UTC) #1
Ami GONE FROM CHROMIUM
Welcome to the flymake party! I suspect we can get you up & running without ...
9 years ago (2011-12-08 16:17:01 UTC) #2
Jói
Hi Ami, OK, misunderstood the defadvice thing, will revert that bit. There were two things ...
9 years ago (2011-12-08 16:24:35 UTC) #3
Ami GONE FROM CHROMIUM
I suspect both of your problems stem from the same place. I can't repro the ...
9 years ago (2011-12-08 19:03:03 UTC) #4
Ami GONE FROM CHROMIUM
Now I see the difference - my chromium src lives on local disk but I ...
9 years ago (2011-12-08 19:27:49 UTC) #5
Jói
Thanks Ami. flymake+ninja totally rocks so I'm really happy to have it working now. I've ...
9 years ago (2011-12-08 20:46:16 UTC) #6
Ami GONE FROM CHROMIUM
9 years ago (2011-12-08 20:49:16 UTC) #7
Still LGTM.

http://codereview.chromium.org/8872013/diff/6001/tools/emacs/flymake-chromium.el
File tools/emacs/flymake-chromium.el (right):

http://codereview.chromium.org/8872013/diff/6001/tools/emacs/flymake-chromium...
tools/emacs/flymake-chromium.el:32: (when srcdir (expand-file-name srcdir))))
On 2011/12/08 20:46:16, Jói wrote:
> On 2011/12/08 19:27:49, Ami Fischman wrote:
> > You don't need this when (and thus the above let) b/c
cr-flymake-absbufferpath
> > already has a guard.
> 
> locate-dominating-file is fine with a nil and then returns a nil, but it
returns
> a ~ prefixed path for my config when it's non-nil, so I need expand-file-name
so
> we can do the prefix checking correctly.
> 
> Since expand-file-name errors out if you pass it a nil, I think I still need
the
> guard here.

I was mis-reading the code before (thinking you're passing srcdir to
cr-flymake-absbufferpath).  You're right.

Powered by Google App Engine
This is Rietveld 408576698