From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id sNF8KT+AOV8yNwAAsNZ9tg (envelope-from ) for ; Sun, 16 Aug 2020 18:51:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4GknJT+AOV+gVAAAbx9fmQ (envelope-from ) for ; Sun, 16 Aug 2020 18:51:43 +0000 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 15E329403EE for ; Sun, 16 Aug 2020 18:51:43 +0000 (UTC) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id BFE2EF5954; Sun, 16 Aug 2020 14:51:41 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=VdAR4EzC52w2p8z5/Aa18Ep39 fI=; b=GYXliHcXQ24V6iNvtBhBcpskJaX8Qb/hN0CdwP9WraikN5RwVMWcZknqV E4vbYF9RbImbizKz8yPbumJMx5VK/lsOCUnWYyCik/hHpF9quX5TBJQQqtdM/R5a 8AoblNCs77AR9l/j+xhTyrEw/acF5wSuw5r2bDcnBp5Z6EMIG4= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id B900CF5953; Sun, 16 Aug 2020 14:51:41 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=mesmtp; bh=ZJayaJlBHsPXiAL5SxDs4hs1AHXRBhHBwFY5I5q7I4Y=; b=VyIZyZ3vmNwlNirydEbo4kBrqXsA6YsJWOwrnJb9j0laG8/oPEF8qS85rxHOwVdIy5SXiZmwnAdeKHD2/jYivPsAvqHhNa20E3K36yu/PYkiQtiHqLdwEZNTZIa3c/+18CsZTKI3SNionJxZ/6xfqHceB0HkXIq1WN6jOWvXszI= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 2D4E7F5952; Sun, 16 Aug 2020 14:51:39 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH v2 2/4] piem-inbox-coderepo-maybe-read: Require projectile project match Date: Sun, 16 Aug 2020 14:51:28 -0400 Message-Id: <20200816185130.32703-2-kyle@kyleam.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <877dty4eme.fsf@kyleam.com> References: <877dty4eme.fsf@kyleam.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 848A7F90-DFF1-11EA-B53E-843F439F7C89-24757444!pb-smtp21.pobox.com Content-Transfer-Encoding: quoted-printable X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=GYXliHcX; dkim=fail (body hash did not verify) header.d=kyleam.com header.s=mesmtp header.b=VyIZyZ3v; dmarc=none; spf=pass (aspmx1.migadu.com: domain of kyle@kyleam.com designates 173.228.157.53 as permitted sender) smtp.mailfrom=kyle@kyleam.com X-Spam-Score: 2.50 X-TUID: jAkjd/VcCm2O While it's possible that the caller wants to specify a path for a repo that isn't yet registered as a project, it should be quite rare, and disabling it decreases the chances of invalid input. --- piem.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piem.el b/piem.el index 55915f6..de298a1 100644 --- a/piem.el +++ b/piem.el @@ -297,7 +297,8 @@ (defun piem-inbox-coderepo-maybe-read () (and (fboundp 'projectile-relevant-known-projects) (completing-read "Project: " - (projectile-relevant-known-projects))) + (projectile-relevant-known-projects) + nil t)) (and piem-use-magit (fboundp 'magit-read-repository) (magit-read-repository)) --=20 2.28.0