From: Jani Nikula Date: Thu, 1 May 2014 12:35:11 +0000 (+0300) Subject: emacs: allow functions in notmuch-show-stash-mlarchive-link-alist X-Git-Tag: 0.19_rc1~169 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=ecef282a168019e03424bddf0a56053e1dd9a6fe;hp=ecef282a168019e03424bddf0a56053e1dd9a6fe;p=notmuch emacs: allow functions in notmuch-show-stash-mlarchive-link-alist Some archives may use a more complicated scheme for referring to messages than just concatenated url and message-id. In particular, patchwork requires a query to translate message-id to a patchwork patch id. Allow functions in notmuch-show-stash-mlarchive-link-alist to facilitate this. For example, one could use something like this for patchwork. (lambda (message-id) (concat "http://patchwork.example.com/patch/" (nth 0 (split-string (car (last (process-lines "pwclient" "search" "-n" "1" "-m" (concat "<" message-id ">")))))))) ---