Function: with-editor*

with-editor* is a macro defined in with-editor.el.

Signature

(with-editor* ENVVAR BODY...)

Documentation

Use the Emacsclient as the editor while evaluating BODY.

Modify the process-environment for processes started in BODY, instructing them to use the Emacsclient as editor. ENVVAR is the environment variable that is exported to do so, it is evaluated at run-time.

Source Code

;; Defined in ~/.emacs.d/elpa/with-editor-20260301.1317/with-editor.el
(defmacro with-editor* (envvar &rest body)
  "Use the Emacsclient as the editor while evaluating BODY.
Modify the `process-environment' for processes started in BODY,
instructing them to use the Emacsclient as editor.  ENVVAR is the
environment variable that is exported to do so, it is evaluated
at run-time.
\n(fn ENVVAR BODY...)"
  (declare (indent defun) (debug (sexp body)))
  `(let ((with-editor--envvar ,envvar)
         (process-environment process-environment))
     (with-editor--setup)
     ,@body))