mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
* session.scm: Use module (ice-9 regex).
(help): Regexp-quote a name given as a symbol.
This commit is contained in:
parent
7b2d4664de
commit
3510b48476
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
(define-module (ice-9 session)
|
||||
:use-module (ice-9 documentation)
|
||||
:use-module (ice-9 regex)
|
||||
)
|
||||
|
||||
|
||||
|
@ -40,7 +41,8 @@ You don't seem to have regular expressions installed.\n"))
|
|||
(cond ((symbol? name)
|
||||
(help-doc name
|
||||
(string-append "^"
|
||||
(symbol->string name)
|
||||
(regexp-quote
|
||||
(symbol->string name))
|
||||
"$")))
|
||||
((string? name)
|
||||
(help-doc name name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue