X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=emacstips.mdwn;h=95157e7d13f996c47a9e97334be6a8724d5d54a9;hb=19698baecd270e3ca4e7fcc735c6d9cfc3255152;hp=03bb5b60d6b9ffa185b66b8add8b3362ff973dce;hpb=1705ac358c39eb780b5cf77fd00c0e65b7876bdb;p=notmuch-wiki 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}"))))