From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id wdZKFNNoGGCKdQAAsNZ9tg (envelope-from ) for ; Mon, 01 Feb 2021 20:47:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yFa+CdFoGGDkQgAAB5/wlQ (envelope-from ) for ; Mon, 01 Feb 2021 20:47:13 +0000 Received: from mail.yoctocell.xyz (h87-96-130-155.cust.a3fiber.se [87.96.130.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7A4199402C2 for ; Mon, 1 Feb 2021 20:47:09 +0000 (UTC) From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1612212427; bh=kyuYdLOC6lpPqXXROaF9gsSVz/yPKXUT/CoFLAQFwG4=; h=From:To:Subject:Date; b=ZnN4ku7I4ncvnwbq8KcdnyfbeUUlUC5Dcj7W2MFf3mDtjhUWUQh+vpaOe4nhQOYny TtF41hgknT8KQLSSKvlqOTpw+raUSXoRY26BzMzgkSadkavIlkIbEGE/VLiky+q2La ChYxjq41BR7za6SmjkvKegVT8RonUs1z1XQcNr4k= To: piem@inbox.kyleam.com Subject: [PATCH] Support reading directory using project.el Message-Id: <3c67863e03e49c3ae3ac0bb3e86f021e00a23255.1612212167.git.public@yoctocell.xyz> Date: Mon, 01 Feb 2021 21:47:06 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1612212432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=R/dYW9ayuRRvFAc4zyRcQb3Jh7WCiHBjzZ3rYY+IPs0=; b=XCLrTnhJvak3XXAFXjTDuz4503Knhe4mjUVXpIawmondLRdwXxg+6VMya9GQ/HWYBPkwVv kVrwNCSXXNhmvOZLSW0qt2WX0kOISyGnS8UeSRrx6oITivkvhS1RFCCPrTu3n5kh2WdApQ 5heLqGIf8WsdRpEIyiTicvJFmuy95b7y++yHkVnqkxbHXZyNH50KoJJSn0z9GsyFOs6R0U 3sla5Md4T116KZKWuZxJ+XZdywwwQZMbO+X9zCLDziq35SB+Oz49MCAqRg41qgf39b8AzF n/s6l8mjovjF5XToKiltnpVT0MJqYiDj6eTXPn1VAmBjImw41TCeEvR4JHP3nA== ARC-Seal: i=1; s=key1; d=kyleam.com; t=1612212432; a=rsa-sha256; cv=none; b=IDCIhke/HR0nbBaa4/659ICrw0UgiaPiQBy6fZ1S3nV3P1HpYSKDBOUBqd2Yez1MEX868+ ROdjnCz0YOBCscyKx/1ds00Kn0cLXIu0WhNoHUU4nDb4UWPOMnm7ho68Oq/MHF4QivPCDx u7quF8GqzEZ+CrPoBcZN55VzHo7TJTYclI1PH48twvaleTBgGp7QKwVxig4tJNjZrmkKk8 5knvv1dfFoEzsoG1m5Kfc/7jkpxxmJUPQdsK3uHxMJixeqZAhjQys1K1+jeVRA7cT/z84R rHjwxsO9gH9yIp1quJjfPrs02jcNwAdK8qSvOGmSFSE912n/9Zd5I1GwbpDRvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yoctocell.xyz header.s=mail header.b=ZnN4ku7I; spf=pass (aspmx1.migadu.com: domain of public@yoctocell.xyz designates 87.96.130.155 as permitted sender) smtp.mailfrom=public@yoctocell.xyz X-Migadu-Spam-Score: 0.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yoctocell.xyz header.s=mail header.b=ZnN4ku7I; dmarc=pass (policy=none) header.from=yoctocell.xyz; spf=pass (aspmx1.migadu.com: domain of public@yoctocell.xyz designates 87.96.130.155 as permitted sender) smtp.mailfrom=public@yoctocell.xyz X-Migadu-Queue-Id: 7A4199402C2 X-Spam-Score: 0.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8Pgr2m+8rk+W Since Emacs 28, project.el is built-in package that offers similar functionality to projectile. It is also available on GNU ELPA. * piem.el (piem-inbox-coderepo-maybe-read): Add support for reading directory using project.el. --- piem.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/piem.el b/piem.el index 7b198d1..f6458f9 100644 --- a/piem.el +++ b/piem.el @@ -372,6 +372,9 @@ (defun piem-inbox-coderepo-maybe-read () (when-let ((current (and (fboundp 'projectile-project-root) (projectile-project-root)))) (abbreviate-file-name current))))) + (and (bound-and-true-p project--list) + (expand-file-name + (project-prompt-project-dir))) (and piem-use-magit (fboundp 'magit-read-repository) (magit-read-repository)) base-commit: 656625e1f9628673c285e3357329aaa6f6e48843 -- 2.29.2