summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-03 03:29:08 +0000
committerjao <jao@gnu.org>2021-12-03 03:29:08 +0000
commit8c2fcf6b8a072f6fe896178747119766c6609dd0 (patch)
tree3fd19b2eccb0aa871f72f387ecb153c7a2b6ceea
parent2d6f41685be7591137a47f22937969cc2b607c9a (diff)
downloadgeiser-8c2fcf6b8a072f6fe896178747119766c6609dd0.tar.gz
geiser-8c2fcf6b8a072f6fe896178747119766c6609dd0.tar.bz2
Fix for filename completion inside scheme strings
It seems we were abusing comint-dynamic-complete-filename when there's the perfectly fine comint-filename-completion.
-rw-r--r--elisp/geiser-completion.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index c479972..3a2943d 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -1,6 +1,6 @@
;;; geiser-completion.el -- tab completion
-;; Copyright (C) 2009, 2010, 2011, 2012, 2018, 2020 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2018, 2020, 2021 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
@@ -157,7 +157,7 @@ we're looking for a module name.")
(defun geiser-completion--for-filename ()
(when (geiser-syntax--in-string-p)
(let ((comint-completion-addsuffix "\""))
- (comint-dynamic-complete-filename))))
+ (ignore-errors (comint-filename-completion)))))
(defun geiser-completion--setup (enable)
(set (make-local-variable 'completion-at-point-functions)