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"))))))
|
||||||
(sort (filter (λ (sym)
|
(if (= 0 (string-length key))
|
||||||
(string.find (string-downcase (symbol->string sym)) key))
|
'()
|
||||||
(environment))
|
(sort (filter (λ (sym)
|
||||||
string<? symbol->string)))
|
(string.find
|
||||||
|
(string-downcase (symbol->string sym)) key))
|
||||||
|
(environment))
|
||||||
|
string<? symbol->string))))
|
||||||
|
|
||||||
(define (apropos . args)
|
(define (apropos . args)
|
||||||
(for-each (λ (sym)
|
(for-each (λ (sym)
|
||||||
|
|
Loading…
Reference in New Issue