Function: minibuffer-contents
minibuffer-contents is a function defined in minibuf.c.
Signature
(minibuffer-contents)
Documentation
Return the user input in a minibuffer as a string.
If the current buffer is not a minibuffer, return its entire contents.
Source Code
// Defined in /usr/src/emacs/src/minibuf.c
{
ptrdiff_t prompt_end = XFIXNUM (Fminibuffer_prompt_end ());
return make_buffer_string (prompt_end, ZV, 1);
}