package ecaml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ecaml.SystemSource

(Info-goto-node "(elisp)System Environment")

Emacs maintains its own copy of the path and environment which is not visible to OCaml. Therefore, Async.Process.create will not give the same path and environment as Ecaml.Process.create, and Ecaml.System.setenv ~var:"PATH" does not affect the behavior of Async.Process.create (or Ecaml.Process.create!).

Sourceval getenv : var:string -> string option

(describe-function 'getenv) (Info-goto-node "(elisp)System Environment")

Sourceval setenv : var:string -> value:string option -> unit

(describe-function 'setenv) (Info-goto-node "(elisp)System Environment")

Sourceval process_environment : string list Var.t

(describe-variable 'process-environment) (Info-goto-node "(elisp)System Environment")

Sourceval noninteractive : bool Var.t

(describe-variable 'noninteractive) (Info-goto-node "(elisp)Batch Mode")

Sourceval is_interactive : unit -> bool

is_interactive () = not (Current_buffer.value_exn noninteractive)

Sourceval hostname : unit -> string
Sourceval exec_path : string list Customization.t

(describe-variable 'exec-path)

Sourcemodule Var_and_value : sig ... end
Sourceval setenv_temporarily : (_, 'a) Sync_or_async.t -> Var_and_value.t list -> f:(unit -> 'a) -> 'a
OCaml

Innovation. Community. Security.