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

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

[nongnu] elpa/geiser-guile 6b31cd5 179/284: Guile: really support R6RS l


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-guile 6b31cd5 179/284: Guile: really support R6RS libs
Date: Sun, 1 Aug 2021 18:29:40 -0400 (EDT)

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

    Guile: really support R6RS libs
---
 elisp/geiser-guile.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 51de947..c406d88 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -134,7 +134,10 @@ This function uses `geiser-guile-init-file' if it exists."
     (t (format "ge:%s %s" proc (geiser-guile--linearize-args args)))))
 
 (defconst geiser-guile--module-re
-  "(\\(?:define-module\\|library\\) +\\(([^)]+)\\)")
+  "(define-module +\\(([^)]+)\\)")
+
+(defconst geiser-guile--library-re
+  "(library +\\(([^)]+)\\)")
 
 (defun geiser-guile--get-module (&optional module)
   (cond ((null module)
@@ -142,7 +145,8 @@ This function uses `geiser-guile-init-file' if it exists."
            (ignore-errors
              (while (not (zerop (geiser-syntax--nesting-level)))
                (backward-up-list)))
-           (if (re-search-backward geiser-guile--module-re nil t)
+           (if (or (re-search-backward geiser-guile--module-re nil t)
+                   (looking-at geiser-guile--library-re))
                (geiser-guile--get-module (match-string-no-properties 1))
              :f)))
         ((listp module) module)



reply via email to

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