From 6e0811c75d13c3c8488e7a11a018e1ea2ae3288a Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 27 Dec 2023 15:12:56 +0000 Subject: better detection of completion prefixes for module names Fixes issue #38 (use-modules not completed at buffers) by excluding trailing parens from module name completion prefixes. Things could be better if geiser detected that in, say (use-modules (ice-9 and| one is still completing a module name (right now, it notices that `and' can be completed as a procedure/macro name), but that has always been above module name completion's paycheck. --- src/geiser/completion.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/geiser/completion.scm b/src/geiser/completion.scm index d69859b..330f50e 100644 --- a/src/geiser/completion.scm +++ b/src/geiser/completion.scm @@ -1,6 +1,6 @@ ;;; completion.scm -- completing known symbols and module names -;; Copyright (C) 2009, 2012 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2012, 2023 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -21,7 +21,8 @@ (sort! (map symbol->string (apropos-internal prefix)) string