EmacsEnv

High-level wrapper type for emacs_env;

Members

Functions

defAlias
emacs_value defAlias(string elispName, string doc, void* data)

Type-safe emacs lisp "defalias".

eq
bool eq(emacs_value a, emacs_value b)

Returns true if two emacs_values are equal.

freeGlobalRef
void freeGlobalRef(emacs_value reference)
Undocumented in source. Be warned that the author may not have intended to support it.
funcall
emacs_value funcall(string funcName, Args args)

Calls emacs lisp function with the given args.

intern
emacs_value intern(string name)

Returns emacs lisp symbol by the given name.

isNotNil
bool isNotNil(emacs_value value)

Returns true if the given emacs value is not nil.

isTypeOf
bool isTypeOf(emacs_value value, string type)

Returns true if value is the given type in emacs lisp.

makeFunction
emacs_value makeFunction(const(char)[] doc, void* data)

Wraps emacs_env.make_function with auto-detected arity. WARNING: func overload is not supported.

makeGlobalRef
emacs_value makeGlobalRef(emacs_value reference)

Memory management. TODO(karita): Test.

nonLocalExit
NonLocalExit nonLocalExit()
Undocumented in source. Be warned that the author may not have intended to support it.
nonLocalExitCheck
emacs_funcall_exit nonLocalExitCheck()

Non-local exit handling.

nonLocalExitClear
void nonLocalExitClear()
Undocumented in source. Be warned that the author may not have intended to support it.
nonLocalExitSignal
void nonLocalExitSignal(emacs_value symbol, emacs_value data)
Undocumented in source. Be warned that the author may not have intended to support it.
nonLocalExitThrow
void nonLocalExitThrow(emacs_value tag, emacs_value value)
Undocumented in source. Be warned that the author may not have intended to support it.
ok
bool ok()

Checks if payload is compatible.

typeOf
emacs_value typeOf(emacs_value value)

Returns type of the given value in emacs lisp.

vecGet
T vecGet(emacs_value vec, ptrdiff_t i)

Vector functions.

vecSet
void vecSet(emacs_value vec, ptrdiff_t i, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
vecSize
ptrdiff_t vecSize(emacs_value vec)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta