diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-06-06 21:45:29 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-06-07 01:14:07 -0400 |
commit | df480c9d52416c6a8cbacd7ed7abbdacc43be4a9 (patch) | |
tree | a50273c9bd430ef3bbfd19187fcc0dbaa04b63ab | |
parent | d3a0857a8fc110893bbb3cdf14489603c4dad23d (diff) | |
download | piem-df480c9d52416c6a8cbacd7ed7abbdacc43be4a9.tar.gz |
Add function for accessing inbox's URL
-rw-r--r-- | piem.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -259,6 +259,11 @@ the following information about the patch series: (repo (plist-get (cdr (assoc p piem-inboxes)) :coderepo))) (expand-file-name repo))) +(defun piem-inbox-url () + "Return the URL of current buffer's inbox." + (when-let ((p (piem-inbox))) + (plist-get (cdr (assoc p piem-inboxes)) :url))) + (defun piem-inbox-coderepo-maybe-read () "Like `piem-inbox-coderepo', but fall back to reading the repo." (or (piem-inbox-coderepo) |