summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-10-24 05:17:34 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-10-24 05:17:34 +0200
commit0c2c66c68e0c43e55eb0ba0da74ee97508bf1fad (patch)
tree72a3553b6218f7509f32e28c18f995c7ee0dea1a /elisp/geiser-syntax.el
parent956ebbe3e14c3080dc5fc7440e2eef33d2c69a74 (diff)
downloadgeiser-0c2c66c68e0c43e55eb0ba0da74ee97508bf1fad.tar.gz
geiser-0c2c66c68e0c43e55eb0ba0da74ee97508bf1fad.tar.bz2
Completing file names at the REPL, but only in string contexts
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r--elisp/geiser-syntax.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 46ee350..46374a2 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -241,6 +241,9 @@ implementation-specific entries for font-lock-keywords.")
(defsubst geiser-syntax--nesting-level ()
(or (nth 0 (syntax-ppss)) 0))
+(defsubst geiser-syntax--in-string-p ()
+ (nth 3 (syntax-ppss)))
+
(defsubst geiser-syntax--pair-length (p)
(if (cdr (last p)) (1+ (safe-length p)) (length p)))