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

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

[nongnu] elpa/geiser-guile 4eeb068 071/284: Module completion generalize


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-guile 4eeb068 071/284: Module completion generalized and implemented for PLT.
Date: Sun, 1 Aug 2021 18:29:18 -0400 (EDT)

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

    Module completion generalized and implemented for PLT.
---
 elisp/geiser-guile.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index a34f401..bfdca31 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -112,6 +112,12 @@ If MODULE is provided, transform it to such a datum."
         ((stringp module) (or (ignore-errors (car (read-from-string module))) 
:f))
         (t :f)))
 
+(defun geiser-guile-symbol-begin (module)
+  (if module
+      (max (save-excursion (beginning-of-line) (point))
+           (save-excursion (skip-syntax-backward "^(>") (1- (point))))
+    (save-excursion (skip-syntax-backward "^-()>") (point))))
+
 
 ;;; Trying to ascertain whether a buffer is Guile Scheme:
 



reply via email to

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