aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-06-10 14:59:40 -0400
committerKyle Meyer <kyle@kyleam.com>2021-06-11 13:36:54 -0400
commita4daee07bef2c9e4bd230da132605a59c8dbd2f0 (patch)
treeeda2fd2a1d0c8ed7de98f90c20735a187a3adfd1
parent668646dec3a29ff0c75dbacacb09e03960308ee8 (diff)
downloadpiem-a4daee07bef2c9e4bd230da132605a59c8dbd2f0.tar.gz
piem-inbox-coderepo-maybe-read: Avoid confusing "inbox" references
piem-inbox-coderepo-maybe-read deals with a code repository but confusingly calls it "inbox". Message-Id: <20210610185943.14155-2-kyle@kyleam.com>
-rw-r--r--piem.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/piem.el b/piem.el
index 0b39efb..0efae9e 100644
--- a/piem.el
+++ b/piem.el
@@ -400,7 +400,7 @@ INBOX doesn't have a maildir configured, return the value of
(defun piem-inbox-coderepo-maybe-read ()
"Like `piem-inbox-coderepo', but fall back to reading the repo."
- (let ((inbox
+ (let ((repo
(or (piem-inbox-coderepo)
(and (bound-and-true-p projectile-known-projects)
(expand-file-name
@@ -419,9 +419,9 @@ INBOX doesn't have a maildir configured, return the value of
(fboundp 'magit-read-repository)
(magit-read-repository))
(read-directory-name "Git repository: "))))
- (if (equal inbox "")
- (user-error "No inbox specified")
- inbox)))
+ (if (equal repo "")
+ (user-error "No code repository specified")
+ repo)))
(defun piem-mid ()
"Return the current buffer's message ID."