[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-racket 2e9ecf7 005/191: Racket: off-by-one bug in m
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-racket 2e9ecf7 005/191: Racket: off-by-one bug in module name completions |
Date: |
Sun, 1 Aug 2021 18:31:49 -0400 (EDT) |
branch: elpa/geiser-racket
commit 2e9ecf71b5b68b052a4bd5ecb23903c8590cb4cf
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Racket: off-by-one bug in module name completions
---
geiser/modules.rkt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/geiser/modules.rkt b/geiser/modules.rkt
index 0de316c..95219ed 100644
--- a/geiser/modules.rkt
+++ b/geiser/modules.rkt
@@ -90,8 +90,9 @@
(let ((ext (filename-extension path)))
(and ext
(or (bytes=? ext #"rkt") (bytes=? ext #"ss"))
- (let ((path (path->string path)))
- (substring path 0 (- (string-length path) 3))))))
+ (let* ((path (path->string path))
+ (len (- (string-length path) (bytes-length ext) 1)))
+ (substring path 0 len)))))
(define (visit-module-path path kind acc)
(case kind
- [nongnu] elpa/geiser-racket 8bcbc3d 144/191: racket: struggling with submodules, (continued)
- [nongnu] elpa/geiser-racket 8bcbc3d 144/191: racket: struggling with submodules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 1f298f0 147/191: Another indentation rule: match-let-values, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 74711fb 143/191: racket: new , geiser-load command in REPL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket d2636a7 145/191: racket: , cd accepting also non-quoted paths, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 26f17a3 167/191: Keeping the elisp compiler happy, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket db2b68b 158/191: Racket: no more re-enter notifications (issue #25), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 3bb3877 168/191: Use OS-specific quotes when asking for versions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 1d47f25 172/191: Automatically enable racket for .rktd and .rktl files., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 88cc6d9 178/191: Use cl-lib instead of cl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 3bd216f 182/191: license, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2e9ecf7 005/191: Racket: off-by-one bug in module name completions,
Philip Kaludercic <=
- [nongnu] elpa/geiser-racket cfc494d 007/191: Racket: fix for kwargs display., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket f017126 001/191: Racket: PLT implementation renamed to Racket., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket d1b6da7 049/191: Racket: remote REPLs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 32ae602 052/191: Elisp support for inferior schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fa2f509 099/191: Merge branch 'master' of git.sv.gnu.org:/srv/git/geiser, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket ed810eb 072/191: Revert "Bug fix: don't intern symbols read by scheme reader", Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket d8fd4cc 073/191: A couple of uses of intern replaced by make-symbol, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 0f063c5 087/191: ,cd for Racket REPL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket cf3e1bd 092/191: Racket: configurable image cache directory, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2d5e638 078/191: Racket: ', enter "foo"' as a synonym of ', enter (file "foo")', Philip Kaludercic, 2021/08/01