From a4daee07bef2c9e4bd230da132605a59c8dbd2f0 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 10 Jun 2021 14:59:40 -0400 Subject: 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> --- piem.el | 8 ++++---- 1 file 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." -- cgit v1.2.3