[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-guile 1421a71 225/284: Guile: find module when curs
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-guile 1421a71 225/284: Guile: find module when cursor is before define-module (#33497) |
Date: |
Sun, 1 Aug 2021 18:29:49 -0400 (EDT) |
branch: elpa/geiser-guile
commit 1421a7172cd41e3660a5f2eab23b32bb652ebaf9
Author: jao <jao@gnu.org>
Commit: jao <jao@gnu.org>
Guile: find module when cursor is before define-module (#33497)
If we didn't find a define-module form after the cursor, or an
enclosing R6RS library form, we search forward for a module
definition. That way, things like C-c C-a work also from the top of
the file.
---
elisp/geiser-guile.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 648c64e..da14b4e 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -162,7 +162,8 @@ This function uses `geiser-guile-init-file' if it exists."
(while (not (zerop (geiser-syntax--nesting-level)))
(backward-up-list)))
(if (or (re-search-backward geiser-guile--module-re nil t)
- (looking-at geiser-guile--library-re))
+ (looking-at geiser-guile--library-re)
+ (re-search-forward geiser-guile--module-re nil t))
(geiser-guile--get-module (match-string-no-properties 1))
:f)))
((listp module) module)
- [nongnu] elpa/geiser-guile b523072 269/284: Use cl-lib instead of cl, (continued)
- [nongnu] elpa/geiser-guile b523072 269/284: Use cl-lib instead of cl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 93ef710 281/284: fix: auto-activate guile implementation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 12a6a2e 089/284: Well, i said that it was better, not that it was perfect., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 2fd5d5b 166/284: Guile: configurable warning level, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 57e3009 191/284: Guile: better meta-command args handling, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile d2d5f62 192/284: Implementation guessing for scripts with #! ... guile, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 9889d29 196/284: Merge branch 'guile-meta' into meta-reconnection, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b5f0316 211/284: Guile: logging initialisation process, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 52e8e12 212/284: Guile: fix for connect-to-guile problems, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 4732e10 214/284: Bug fix: don't intern symbols read by scheme reader, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 1421a71 225/284: Guile: find module when cursor is before define-module (#33497),
Philip Kaludercic <=
- [nongnu] elpa/geiser-guile 6c9efbc 233/284: Guile: Fix subr argument name retrieval for Guile >= 2.0.9., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 3bf45a4 249/284: Clean up indentation rules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 9d0d38a 237/284: Guile: augmenting %load-compiled-path too, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile a1078b9 254/284: Fixing guile 2.2 compatibility, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile ef3fb34 264/284: Really fix #252, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 8bf1a8b 268/284: Fix indentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile ba4c1a9 276/284: adjustments to scheme load path, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 700ac98 282/284: Use new implementation extension declarator., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 5e2c874 139/284: Golfing., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 06d7cf5 144/284: Guile: taking advantage of the patterns property in macro transformers., Philip Kaludercic, 2021/08/01