Function: with-editor-read-envvar
with-editor-read-envvar is a byte-compiled function defined in
with-editor.el.
Signature
(with-editor-read-envvar &optional (PROMPT "Set environment variable") (DEFAULT "EDITOR"))
Source Code
;; Defined in ~/.emacs.d/elpa/with-editor-20260301.1317/with-editor.el
(cl-defun with-editor-read-envvar
(&optional (prompt "Set environment variable")
(default "EDITOR"))
(let ((reply (completing-read (if default
(format "%s (%s): " prompt default)
(concat prompt ": "))
with-editor-envvars nil nil nil nil default)))
(if (string= reply "") (user-error "Nothing selected") reply)))