mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
fixed repl command ,describe to also handle syntax
This commit is contained in:
parent
5e33d0aa37
commit
e1fb0e811b
1 changed files with 6 additions and 1 deletions
|
@ -342,7 +342,12 @@ Find bindings/modules/packages."
|
|||
(define-meta-command (describe repl (form))
|
||||
"describe OBJ
|
||||
Show description/documentation."
|
||||
(display (object-documentation (repl-eval repl (repl-parse repl form))))
|
||||
(display
|
||||
(object-documentation
|
||||
(let ((input (repl-parse repl form)))
|
||||
(if (symbol? input)
|
||||
(module-ref (current-module) input)
|
||||
(repl-eval repl input)))))
|
||||
(newline))
|
||||
|
||||
(define-meta-command (option repl . args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue