From 8e5d8aead8ffb2a9f30bf0b779a65d87fd9ad9e6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 10 Jun 2021 14:59:41 -0400 Subject: piem-inbox-coderepo*: Always return coderepo as a directory A coderepo is by definition a directory. Append a trailing separator so that callers don't have to worry about normalizing it. Message-Id: <20210610185943.14155-3-kyle@kyleam.com> --- piem.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piem.el b/piem.el index 0efae9e..6546615 100644 --- a/piem.el +++ b/piem.el @@ -376,7 +376,7 @@ If INBOX is nil, use the inbox returned by `piem-inbox'." (defun piem-inbox-coderepo (&optional inbox) "Return the code repository of current buffer's inbox." (when-let ((repo (piem-inbox-get :coderepo inbox))) - (expand-file-name repo))) + (file-name-as-directory (expand-file-name repo)))) (defun piem-inbox-maildir-directory (&optional inbox) "Return the maildir for INBOX's entry in `piem-inboxes'. @@ -421,7 +421,7 @@ INBOX doesn't have a maildir configured, return the value of (read-directory-name "Git repository: ")))) (if (equal repo "") (user-error "No code repository specified") - repo))) + (file-name-as-directory repo)))) (defun piem-mid () "Return the current buffer's message ID." -- cgit v1.2.3