From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id aHFHIC5hwmAvYAAAsNZ9tg (envelope-from ); Thu, 10 Jun 2021 18:59:58 +0000 Received: from out0.migadu.com ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oBBCMCphwmB7cQAAbx9fmQ (envelope-from ); Thu, 10 Jun 2021 18:59:54 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1623351594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NFCHQYWTZ/4RQg+UxitvmUFiMgzRBeVq4+nMlYCcixk=; b=NZhvV/iLXXI8/yq5aBRQ4f1Q0B2mXUYuD39L9gCv00hXVMgl42IkHMCV/41C+036Xi2igd QC1Q2c5C80LlShGYms2Tp3kYpek//ifHA4se7u9WobR4j6+uWkEtAHXiP8pHhKDTcpFklp MnlYYDdcNd1g/Ck2/zDK0Vjlvnm4cPzNd5NQMm/1LAM0HioM6eNJZp9se7Cdgzd/Cwy/AA FZsRC5LSZuVOuN4dnB1fABMlhQNLQILCzLKIQIkJ8EfP5cCnmTgQI0vk9LV8tHOoygjIBv L/oib1eMU0Peq1U5DecS0VztLSspmWGv81z4AC3M5dLuStPusqgUA79gCyvzIg== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 2/4] piem-inbox-coderepo*: Always return coderepo as a directory Date: Thu, 10 Jun 2021 14:59:41 -0400 Message-Id: <20210610185943.14155-3-kyle@kyleam.com> In-Reply-To: <20210610185943.14155-1-kyle@kyleam.com> References: <20210610185943.14155-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com X-TUID: XRFsdOHGe+7n A coderepo is by definition a directory. Append a trailing separator so that callers don't have to worry about normalizing it. --- piem.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piem.el b/piem.el index 0efae9ef..65466150 100644 --- a/piem.el +++ b/piem.el @@ -376,7 +376,7 @@ (defun piem-inbox-get (key &optional 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 @@ (defun piem-inbox-coderepo-maybe-read () (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." -- 2.32.0