Skip to content

Commit

Permalink
Exclude verbose method names from completion candidates.
Browse files Browse the repository at this point in the history
Cf. #1039
  • Loading branch information
shirok committed Jun 5, 2024
1 parent fa20d5a commit 74c77ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2024-06-05 Shiro Kawai <shiro@acm.org>

* lib/gauche/interactive/completion.scm (%complete-symbol): Exclude
verbose method names from completion candidates.
Cf. https://github.com/shirok/Gauche/issues/1039

2024-06-02 Shiro Kawai <shiro@acm.org>

* lib/gauche/parseopt.scm (let-args, option-parser-help-string):
Expand Down
3 changes: 2 additions & 1 deletion lib/gauche/interactive/completion.scm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
($ hash-table-for-each (module-table m)
(^[sym _]
(let1 s (symbol->string sym)
(when (matcher s)
(when (and (not (#/\(/ s)) ;heuristics to exclude verbose method names
(matcher s))
(hash-table-put! hits s #t)))))))
(search mod)
(dolist [m (module-imports mod)]
Expand Down

0 comments on commit 74c77ba

Please sign in to comment.