List nothing instead of everything in (apropos-list "")

This commit is contained in:
Lassi Kortela 2019-08-28 18:13:14 +03:00
parent 05c43c716c
commit 2d89603691
2 changed files with 2659 additions and 2654 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1106,10 +1106,13 @@
(cond ((string? key) key)
((symbol? key) (symbol->string key))
(else (error "Please give a string or symbol key"))))))
(if (= 0 (string-length key))
'()
(sort (filter (λ (sym)
(string.find (string-downcase (symbol->string sym)) key))
(string.find
(string-downcase (symbol->string sym)) key))
(environment))
string<? symbol->string)))
string<? symbol->string))))
(define (apropos . args)
(for-each (λ (sym)