Next: , Previous: , Up: API  


1.6 (ggg prelude)

1.6.1 Macros

Macro: get-setting x

Get a setting for ggg, from glyph file.

1.6.2 Procedures

Procedure: assoc-ref-or alist key default

Undocumented procedure.

Procedure: delete-directory-tree path

Recursively delete PATH without invoking a shell.

Procedure: ensure-directory path

Create PATH and any missing parents, like mkdir -p.

Procedure: error-detail key args

A short, human-readable description of a caught exception.

Procedure: fail message KEY: #:hint #:details #:exit-code

Report an actionable error message on stderr and exit with EXIT-CODE. Unlike a raw Guile backtrace this points the user at what to change.

Procedure: guard-errors thunk KEY: #:label #:hint

Run THUNK, turning any exception into a clean, actionable error message. Exits (quit) requests are passed through so ggg can shut down normally.

Procedure: log msg . args

Undocumented procedure.

Procedure: log-error msg . args

Undocumented procedure.

Procedure: log-info msg . args

Undocumented procedure.

Procedure: log-message msg . maybe-port

Undocumented procedure.

Procedure: lookup alist key

Like assoc-ref, but never throws on malformed entries.

Procedure: safe-filename? value

True when VALUE can be used as a badge id and therefore as a file name.

Procedure: serialize-style alist

Undocumented procedure.

Procedure: suggest-similar needle candidates KEY: #:max-distance

Return the candidate closest to NEEDLE within MAX-DISTANCE, or #f.

Procedure: syscall cmd

Undocumented procedure.


Next: (ggg style), Previous: (ggg main), Up: API