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

Issue 5298012: Expand the file name match so that the match end can be used to limit path character substitution. (Closed)

Created:
10 years ago by Scott Byer
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Expand the file name match so that the match end can be used to limit path character substitution. BUG=none TEST=Run on trybot-windows.txt, \base\ remains that way in the first warning. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67911

Patch Set 1 #

Patch Set 2 : Add in path case correct, fix the RE. #

Total comments: 1

Patch Set 3 : Make the extra backslash for testing more obvious what it's for. #

Total comments: 5

Patch Set 4 : Fix a bad habit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -7 lines) Patch
M tools/emacs/trybot.el View 1 2 3 2 chunks +35 lines, -6 lines 0 comments Download
M tools/emacs/trybot-windows.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Scott Byer
Being part of the crowd; needed something fun to tweak at the end of a ...
10 years ago (2010-12-01 01:38:25 UTC) #1
Evan Martin
LGTM
10 years ago (2010-12-01 02:44:38 UTC) #2
Scott Byer
Take another look - I had this mostly done before I left last night; adds ...
10 years ago (2010-12-01 18:11:15 UTC) #3
evanm
+erg for more complex elisp review -- he's way better at it than I am ...
10 years ago (2010-12-01 18:59:57 UTC) #4
Evan Martin
This LGTM again, I wouldn't wait on Elliot. One q about backslashes. http://codereview.chromium.org/5298012/diff/10001/tools/emacs/trybot.el File tools/emacs/trybot.el ...
10 years ago (2010-12-01 22:00:49 UTC) #5
Scott Byer
http://codereview.chromium.org/5298012/diff/10001/tools/emacs/trybot.el File tools/emacs/trybot.el (right): http://codereview.chromium.org/5298012/diff/10001/tools/emacs/trybot.el#newcode58 tools/emacs/trybot.el:58: (while (re-search-forward "\\\(^.:\\\\.*\\\\src\\\\\\\)\\\(.*?\\\)[(:]" nil t) On 2010/12/01 22:00:49, Evan ...
10 years ago (2010-12-01 22:31:05 UTC) #6
Evan Martin
10 years ago (2010-12-01 22:42:08 UTC) #7
http://codereview.chromium.org/5298012/diff/10001/tools/emacs/trybot.el
File tools/emacs/trybot.el (right):

http://codereview.chromium.org/5298012/diff/10001/tools/emacs/trybot.el#newco...
tools/emacs/trybot.el:59: (replace-match "" nil t nil 1)
On 2010/12/01 22:31:05, Scott Byer wrote:
> Easy enough to put the cursor on the function name and hit C-h f <ret> to get
> the documentation for it, so I typically don't document parameter usage.

Fair enough.  In this case, I was about to say 'you are clobbering the filename
because your above regex matches a bunch of text and here you replace it with
""', and the 1 is pretty subtle, but it doesn't matter much.  :)

Powered by Google App Engine
This is Rietveld 408576698