diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 20:43:02 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 20:43:02 +0000 |
commit | 0917cf354c488db47f16145285b9e8c4ddb5384d (patch) | |
tree | db44e448bdc83cb6e236a42a0446b55bd7d6df67 /tools/emacs | |
parent | 5ddd1eaaaaa5512ee780789bfb0164a97bca933d (diff) | |
download | chromium_src-0917cf354c488db47f16145285b9e8c4ddb5384d.zip chromium_src-0917cf354c488db47f16145285b9e8c4ddb5384d.tar.gz chromium_src-0917cf354c488db47f16145285b9e8c4ddb5384d.tar.bz2 |
emacs: fix HTML urls to automatically load plain text
When the URL ends in /stdio, tack on /text after it.
Review URL: http://codereview.chromium.org/5826002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/emacs')
-rw-r--r-- | tools/emacs/trybot.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/emacs/trybot.el b/tools/emacs/trybot.el index b3820df..6bc966f 100644 --- a/tools/emacs/trybot.el +++ b/tools/emacs/trybot.el @@ -149,7 +149,10 @@ (clipboard-yank) (setq url (buffer-string)))) - ;; TODO: fixup URL to append /text if necessary. + ;; Append /text to the URL to get plain text output in the common + ;; case of getting a URL to the HTML build log. + (when (equal "stdio" (car (last (split-string url "/")))) + (setq url (concat url "/text"))) (let ((type-hint (cond ((string-match "/win/" url) 'win) ((string-match "/mac/" url) 'mac) |