summaryrefslogtreecommitdiff
path: root/elisp/geiser-guile.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-08 01:48:52 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-08 01:48:52 +0200
commit4eeb06824b74d3392b699935ef5ea7d9d2c95560 (patch)
treee38c7c0218f616edb5f151505af99e70773aec24 /elisp/geiser-guile.el
parente1e77ab8c5de4d6c257f53c7ece4c94e4522abfd (diff)
downloadgeiser-guile-4eeb06824b74d3392b699935ef5ea7d9d2c95560.tar.gz
geiser-guile-4eeb06824b74d3392b699935ef5ea7d9d2c95560.tar.bz2
Module completion generalized and implemented for PLT.
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r--elisp/geiser-guile.el6
1 files changed, 6 insertions, 0 deletions
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: