You are looking at historical revision 31499 of this page. It may differ significantly from its current revision.
impromptu
Spawn $EDITOR to update an association list for CLI scripts.
Overview
[procedure] (edit-properties alist)Formats alist to a temporary file and spawns $EDITOR on it (or "vi" if $EDITOR is not set).
If the editor exits with a zero error level, the file is parsed back into a new association list having keywords for keys and returned.
If the editor exits with a non-zero error, edit-properties returns #f.
Format
'((User: . "joeblack")
(Description: . "Joe Black, an old friend of the family, is\na short, stocky fellow with greased black hair."))
Produces the following file:
:User: joefabetes :Description: Joe Fabetes, an old friend of the family, is a short, stocky fellow with greased black hair.
Version History
- 0.1.3
- Fix handling of newlines