mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 23:00:22 +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)
|
(define-module (ice-9 session)
|
||||||
:use-module (ice-9 documentation)
|
: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)
|
(cond ((symbol? name)
|
||||||
(help-doc name
|
(help-doc name
|
||||||
(string-append "^"
|
(string-append "^"
|
||||||
(symbol->string name)
|
(regexp-quote
|
||||||
|
(symbol->string name))
|
||||||
"$")))
|
"$")))
|
||||||
((string? name)
|
((string? name)
|
||||||
(help-doc name name))
|
(help-doc name name))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue