We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cbe54e + 1b0d11a commit 5da1bb6Copy full SHA for 5da1bb6
src/top/utop.el
@@ -604,11 +604,10 @@ it is started."
604
(dolist (prefix utop-completion-prefixes)
605
;; We need to handle specially prefixes like "List.m" as
606
;; the responses from utop don't include the module prefix.
607
- (let ((prefix (if (string-match-p "\\." prefix)
608
- (cadr (split-string prefix "\\."))
609
- prefix)))
610
- (when (string-prefix-p prefix argument)
611
- (push argument utop-completion)
+ (let* ((pos (string-match "[^.]*$" prefix))
+ (module-prefix (substring prefix 0 pos)))
+ (when (string-prefix-p (substring prefix pos) argument)
+ (push (concat module-prefix argument) utop-completion)
612
(throw 'done t))))))
613
;; End of completion
614
("completion-stop"
0 commit comments