From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id uEKYNSxhwmC4BQAAsNZ9tg (envelope-from ); Thu, 10 Jun 2021 18:59:56 +0000 Received: from out0.migadu.com ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AO5DCilhwmAodgAA1q6Kng (envelope-from ); Thu, 10 Jun 2021 18:59:53 +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=1623351593; 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=vuC7886X10xhWbMVZesfWfXJH2uonmmFTMGJKlAvQPU=; b=gcc+GE9Nk7jnehK0QM7Ijod/as1xS52l5WlojcwNYWh73ZxiurCYAlcFI+7DRMF9CJPrYi hQ6ieN6LW6qdWNWEH07d3pTdCtvecuai50cI//E2BT2NHNLlIPf91S7qO+tQMajYekal3I Px51LRyvRzzbqOe9pl03cjrYungxt+Hts5BcDT9/w9L3OvMRcRcn3Xb7QonHUCw09LeYVX UYvaBthtLq4FKiTEjPQykUYzd+ytK0UY+lbOCWIw5Kl7dQalS05UEZe0hTDWGTSW3gVJcS kGbNXQqeeXCWm0UJ8Scw4v9m4OJKySVYHcX0g+C9HFnz+3G8ogDWfbcUYp/0+g== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 1/4] piem-inbox-coderepo-maybe-read: Avoid confusing "inbox" references Date: Thu, 10 Jun 2021 14:59:40 -0400 Message-Id: <20210610185943.14155-2-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: EhN1T1xIWQ5L piem-inbox-coderepo-maybe-read deals with a code repository but confusingly calls it "inbox". --- piem.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/piem.el b/piem.el index 0b39efb4..0efae9ef 100644 --- a/piem.el +++ b/piem.el @@ -400,7 +400,7 @@ (defun piem-inbox-by-url-match (url) (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 @@ (defun piem-inbox-coderepo-maybe-read () (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." -- 2.32.0