summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2015-08-21 10:53:21 +0300
committerJani Nikula <jani@nikula.org>2015-08-21 10:53:21 +0300
commit19698baecd270e3ca4e7fcc735c6d9cfc3255152 (patch)
treee2418bbf07c54c8c6c83c1150f06b7d9d838bf96
parent1705ac358c39eb780b5cf77fd00c0e65b7876bdb (diff)
whitespace fix
-rw-r--r--emacstips.mdwn46
1 files changed, 23 insertions, 23 deletions
diff --git a/emacstips.mdwn b/emacstips.mdwn
index 03bb5b6..95157e7 100644
--- a/emacstips.mdwn
+++ b/emacstips.mdwn
@@ -673,14 +673,14 @@ notmuch-show-stash-mlarchive-link-alist RET`.
Add a new entry with "Function returning the URL:" set to:
- (lambda (message-id)
- (concat "http://patchwork.example.com/patch/"
- (nth 0
- (process-lines "/path/to/pwclient" "search"
- "-p" "the-project"
- "-m" (concat "<" message-id ">")
- "-n" "1"
- "-f" "%{id}"))))
+ (lambda (message-id)
+ (concat "http://patchwork.example.com/patch/"
+ (nth 0
+ (process-lines "/path/to/pwclient" "search"
+ "-p" "the-project"
+ "-m" (concat "<" message-id ">")
+ "-n" "1"
+ "-f" "%{id}"))))
Replacing `http://patchwork.example.com/patch/`, `/path/to/pwclient`, and
`the-project` appropiately. You should now be able to stash the Patchwork URL
@@ -689,22 +689,22 @@ using `c l`.
Going further, if the patch has been committed, you can get the commit hash with
this:
- (lambda (message-id)
- (nth 0
- (process-lines "/path/to/pwclient" "search"
- "-p" "the-project"
- "-m" (concat "<" message-id ">")
- "-n" "1"
- "-f" "%{commit_ref}")))
+ (lambda (message-id)
+ (nth 0
+ (process-lines "/path/to/pwclient" "search"
+ "-p" "the-project"
+ "-m" (concat "<" message-id ">")
+ "-n" "1"
+ "-f" "%{commit_ref}")))
And finally, if the project has a web interface to its source repository, you
can turn the commit hash into a URL pointing there, for example:
- (lambda (message-id)
- (concat "http://cgit.example.com/the-project/commit/?id="
- (nth 0
- (process-lines "/path/to/pwclient" "search"
- "-p" "the-project"
- "-m" (concat "<" message-id ">")
- "-n" "1"
- "-f" "%{commit_ref}"))))
+ (lambda (message-id)
+ (concat "http://cgit.example.com/the-project/commit/?id="
+ (nth 0
+ (process-lines "/path/to/pwclient" "search"
+ "-p" "the-project"
+ "-m" (concat "<" message-id ">")
+ "-n" "1"
+ "-f" "%{commit_ref}"))))