Next: , Previous: , Up: Back-Ends   [Contents]


7.2.3 Dummy back-end

The dummy back-end is a very simple implementation of the API for standoff mode back-ends. We recommend using the JSON file back-end, because with the dummy implementation, you can easily loose data. Annotations are stored in memory, bot in a buffer visiting a file. So when you quit Emacs, everything is lost, unless you dumped it before quitting. So do not forget the following command:

Command: standoff-dump-elisp FILENAME

(u) (‘Stand-Off->Dump to file (SAVE)’) Save the annotations as s-expressions in a Emacs lisp file. You will be prompted for a FILENAME. It defaults to the file name of the source document, plus the suffix .dump.el, since that’s the name of the file that is automatically loaded on activation.

Command: standoff-dummy-load-dumped FILENAME

Load annotations from a Emacs lisp file with dumped annotations. You will be prompted for a FILENAME. It defaults to the file name of the source document, plus the suffix .dump.el.

Configuration options for the dummy backend:

User Option: standoff-dummy-create-id-function

Pointer to the function (actually the function symbol) for creating ids used in the dummy backend. Defaults to 'standoff-util/create-uuid, which creates a universally unique id.

User Option: standoff-dummy-user-logging

Whether or not to log time and user meta data when creating markup. You can keep out big brother by setting this to nil. Defaults to t.