Function: eval-minibuffer

eval-minibuffer is a byte-compiled function defined in simple.el.gz.

Signature

(eval-minibuffer PROMPT &optional INITIAL-CONTENTS)

Documentation

Return value of Lisp expression read using the minibuffer.

Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS is a string to insert in the minibuffer before reading.
(INITIAL-CONTENTS can also be a cons of a string and an integer.
Such arguments are used as in read-from-minibuffer.)

Probably introduced at or before Emacs version 16.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun eval-minibuffer (prompt &optional initial-contents)
  "Return value of Lisp expression read using the minibuffer.
Prompt with PROMPT.  If non-nil, optional second arg INITIAL-CONTENTS
is a string to insert in the minibuffer before reading.
\(INITIAL-CONTENTS can also be a cons of a string and an integer.
Such arguments are used as in `read-from-minibuffer'.)"
  ;; Used for interactive spec `X'.
  (eval (read--expression prompt initial-contents)))