Module Ecaml_test_helpers

module Buffer_helper : sig ... end
module Env : sig ... end

Functions in Env modify both the Emacs environment and the Unix environment.

val press : ?and_show:bool -> ?show_point:bool -> string -> unit Async.Deferred.t

Run the given key sequence, and then display the current buffer.

val press_and_show_minibuffer : ?show_contents:bool -> string -> unit Async.Deferred.t

Run the given key sequence, and then show the following:

  • minibuffer prompt
  • minibuffer contents, unless show_contents = false
  • *Completions* buffer, if any
val show : ?show_point:bool -> unit -> unit

Display the current buffer.

val eval : string -> unit Async.Deferred.t

Evaluate an elisp expression and display the resulting value.

val set_tmpdir_temporarily : string -> f:(unit -> unit Async.Deferred.t) -> unit Async.Deferred.t

Set $TMPDIR and temporary-file-directory to the provided path for the duration of f.