scm: update example with time->string
Example was still using the obsolete name. Fixes #2891
This commit is contained in:
@ -232,7 +232,7 @@ Connect to mu's scm (guile) interface through Geiser."
|
|||||||
:name "*mu-scm-repl*"
|
:name "*mu-scm-repl*"
|
||||||
:command `("sh" "-c" ,mu-scm-listen-command)
|
:command `("sh" "-c" ,mu-scm-listen-command)
|
||||||
:filter (lambda (_proc chunk)
|
:filter (lambda (_proc chunk)
|
||||||
(when (stringng-match "^\\(mu-scm.*\\.sock\\)$" chunk)
|
(when (string-match "^\\(mu-scm.*\\.sock\\)$" chunk)
|
||||||
(geiser-connect-local 'guile (match-string 1 chunk))))))
|
(geiser-connect-local 'guile (match-string 1 chunk))))))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ Thus, an example script might look like:
|
|||||||
(for-each
|
(for-each
|
||||||
(lambda (msg)
|
(lambda (msg)
|
||||||
(format #t "~a ~a\n"
|
(format #t "~a ~a\n"
|
||||||
(time-t->iso-date (date msg))
|
(time->string (date msg))
|
||||||
(or (subject msg) "No subject")))
|
(or (subject msg) "No subject")))
|
||||||
(mfind "hello AND date:2015.." #:max-results 5)))
|
(mfind "hello AND date:2015.." #:max-results 5)))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|||||||
Reference in New Issue
Block a user