List nothing instead of everything in (apropos-list "")
This commit is contained in:
parent
05c43c716c
commit
2d89603691
File diff suppressed because it is too large
Load Diff
|
@ -1106,10 +1106,13 @@
|
||||||
(cond ((string? key) key)
|
(cond ((string? key) key)
|
||||||
((symbol? key) (symbol->string key))
|
((symbol? key) (symbol->string key))
|
||||||
(else (error "Please give a string or symbol key"))))))
|
(else (error "Please give a string or symbol key"))))))
|
||||||
|
(if (= 0 (string-length key))
|
||||||
|
'()
|
||||||
(sort (filter (λ (sym)
|
(sort (filter (λ (sym)
|
||||||
(string.find (string-downcase (symbol->string sym)) key))
|
(string.find
|
||||||
|
(string-downcase (symbol->string sym)) key))
|
||||||
(environment))
|
(environment))
|
||||||
string<? symbol->string)))
|
string<? symbol->string))))
|
||||||
|
|
||||||
(define (apropos . args)
|
(define (apropos . args)
|
||||||
(for-each (λ (sym)
|
(for-each (λ (sym)
|
||||||
|
|
Loading…
Reference in New Issue