mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-13 17:20:21 +02:00
fix `(help)'
* ice-9/session.scm (help): Return valid scheme forms in the no-arg and no-regex cases.
This commit is contained in:
parent
1a38597553
commit
2588eccdf4
1 changed files with 4 additions and 2 deletions
|
@ -32,10 +32,12 @@
|
||||||
"(help [NAME])
|
"(help [NAME])
|
||||||
Prints useful information. Try `(help)'."
|
Prints useful information. Try `(help)'."
|
||||||
(cond ((not (= (length exp) 1))
|
(cond ((not (= (length exp) 1))
|
||||||
(help-usage))
|
(help-usage)
|
||||||
|
'(begin))
|
||||||
((not (provided? 'regex))
|
((not (provided? 'regex))
|
||||||
(display "`help' depends on the `regex' feature.
|
(display "`help' depends on the `regex' feature.
|
||||||
You don't seem to have regular expressions installed.\n"))
|
You don't seem to have regular expressions installed.\n")
|
||||||
|
'(begin))
|
||||||
(else
|
(else
|
||||||
(let ((name (car exp))
|
(let ((name (car exp))
|
||||||
(not-found (lambda (type x)
|
(not-found (lambda (type x)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue