emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/geiser-guile e1e77ab 067/284: Guile: use the compiler by d


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-guile e1e77ab 067/284: Guile: use the compiler by default to perform evaluations.
Date: Sun, 1 Aug 2021 18:29:17 -0400 (EDT)

branch: elpa/geiser-guile
commit e1e77ab8c5de4d6c257f53c7ece4c94e4522abfd
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>

    Guile: use the compiler by default to perform evaluations.
---
 elisp/geiser-guile.el | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index f7e5540..a34f401 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -49,6 +49,13 @@
   :type 'string
   :group 'geiser-guile)
 
+(defcustom geiser-guile-use-compiler-in-eval t
+  "When enable, always use Guile's compiler to perform evaluation.
+Recommended, since the compiler usually collects better metadata
+than the interpreter."
+  :type 'boolean
+  :group 'geiser-guile)
+
 
 ;;; REPL support:
 
@@ -82,7 +89,11 @@ This function uses `geiser-guile-init-file' if it exists."
   "Translate a bare procedure symbol to one executable in Guile's
 context. Return NULL for unsupported ones; at the very least,
 EVAL, COMPILE, LOAD-FILE and COMPILE-FILE should be supported."
-  (let ((proc (intern (format "ge:%s" proc))))
+  (let ((proc (intern (format "ge:%s"
+                              (if (and geiser-guile-use-compiler-in-eval
+                                       (eq proc 'eval))
+                                  'compile
+                                proc)))))
     `(@ (geiser emacs) ,proc)))
 
 (defconst geiser-guile--module-re



reply via email to

[Prev in Thread] Current Thread [Next in Thread]