summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-06 17:55:53 +0000
committerjao <jao@gnu.org>2022-03-06 17:55:53 +0000
commit2add7137ec813137fec044c3bae6e74bfb983669 (patch)
tree1b9d92e6e7ac9bb81203683f2a7a9766e1f192da
parenta996559ac34fe93ce9a448b23b7a9fbc23c002eb (diff)
downloadgeiser-2add7137ec813137fec044c3bae6e74bfb983669.tar.gz
geiser-2add7137ec813137fec044c3bae6e74bfb983669.tar.bz2
Depend on project 0.8.1, for users of emacs < 28
Fixes issue #37.
-rw-r--r--elisp/geiser-repl.el10
-rw-r--r--news.org4
2 files changed, 8 insertions, 6 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index bb91d7a..2156ff6 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -29,6 +29,7 @@
(require 'compile)
(require 'scheme)
(require 'font-lock)
+(require 'project)
;;; Customization:
@@ -55,9 +56,8 @@ used to discover a buffer's project."
(declare project-current "project.el")
(defun geiser-repl-project-root ()
- "Use project.el, when available, to determine a buffer's project root."
- (when (featurep 'project)
- (when-let (p (project-current)) (project-root p))))
+ "Use project.el, to determine a buffer's project root."
+ (when-let (p (project-current)) (project-root p)))
(geiser-custom--defcustom geiser-repl-current-project-function
#'geiser-repl-project-root
@@ -65,8 +65,8 @@ used to discover a buffer's project."
The function is called from both source and REPL buffers, and
should return a value which uniquely identifies the project."
:type '(choice (function-item :tag "Ignore projects" ignore)
- (function-item :tag "Use Project.el" geiser-repl-project-root)
- (function-item :tag "Use Projectile" projectile-project-root)
+ (function-item :tag "Use project.el" geiser-repl-project-root)
+ (function-item :tag "Use projectile" projectile-project-root)
(function :tag "Other function")))
(geiser-custom--defcustom geiser-repl-use-other-window t
diff --git a/news.org b/news.org
index 638634a..79a0be7 100644
--- a/news.org
+++ b/news.org
@@ -1,7 +1,9 @@
* Version 0.23 (unreleased)
- - Set REPL's default directory to project's root
+ - Set REPL's default directory to project's root.
+ - Depending on ELPA's project 0.8.1 to ensure compatibility
+ with emacs < 28.
* Version 0.22.2 (February, 2022)