summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.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-repl.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-repl.el')
-rw-r--r--elisp/geiser-repl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index dce6143..1a83565 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -15,6 +15,7 @@
(require 'geiser-autodoc)
(require 'geiser-edit)
(require 'geiser-completion)
+(require 'geiser-syntax)
(require 'geiser-impl)
(require 'geiser-eval)
(require 'geiser-connection)
@@ -546,7 +547,8 @@ buffer."
(interactive "p")
(if (>= (point) (geiser-repl--last-prompt-end))
(or (completion-at-point)
- (comint-replace-by-expanded-filename)
+ (and (geiser-syntax--in-string-p)
+ (comint-replace-by-expanded-filename))
(lisp-indent-line))
(compilation-next-error n)))