Page
Library
Module
Module type
Parameter
Class
Class type
Source
Down.SessionManage sessions.
See the manual.
The type for session names. Use "" to denote the last_name session.
last_name () is the last session name that was used with any of the functions of this module; if any and still existing. Persisted accross ocaml invocations.
val load : ?silent:bool -> name -> unitload s loads and executes session s. If silent is true the result of phrases is not printed out (defaults to false).
val edit : name -> unitedit s edits session s in your editor. A session is created if s does not exist.
val of_file : ?replace:bool -> file:string -> name -> unitof_file ~replace ~file s takes the contents of file file and stores it session s. The function errors if s exists; unless replace is true (defaults to false).
val delete : name -> unitdelete s deletes session s.
Note. Unsaved recorded phrases are persisted across ocaml sessions.
val save : ?replace:bool -> name -> unitsave s saves recorded phrases to s, stops recording and clears the recorded phrases. The function errors and the recorded phrases are kept intact if s exists; unless replace is true (defaults to false). See also append.
val append : name -> unitappend s is like save except it appends to s or creates it if it does not exist.
val steps : name -> unitsteps () loads a session for stepping through manually via shift-{up,down} (or C-x C-{p,n}).
next_step () moves to the next step of the stepped session. Usually you do this via shift-down or C-x C-n.