Function: embark--eval-prep

embark--eval-prep is a byte-compiled function defined in embark.el.

Signature

(embark--eval-prep &key TYPE &allow-other-keys)

Documentation

If target's TYPE is variable, skip edit; if function, wrap in ().

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(cl-defun embark--eval-prep (&key type &allow-other-keys)
  "If target's TYPE is variable, skip edit; if function, wrap in ()."
  (when (memq type '(command function))
    (embark--allow-edit)
    (goto-char (minibuffer-prompt-end))
    (insert "(")
    (goto-char (point-max))
    (insert ")")
    (backward-char)))