summaryrefslogtreecommitdiff
path: root/devdocs/elisp/minibuffer-contents.html
blob: a305ca8cb0ab808329f7f7140717872ab367913a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 <h3 class="section">Minibuffer Contents</h3>   <p>These functions access the minibuffer prompt and contents. </p> <dl> <dt id="minibuffer-prompt">Function: <strong>minibuffer-prompt</strong>
</dt> <dd><p>This function returns the prompt string of the currently active minibuffer. If no minibuffer is active, it returns <code>nil</code>. </p></dd>
</dl> <dl> <dt id="minibuffer-prompt-end">Function: <strong>minibuffer-prompt-end</strong>
</dt> <dd><p>This function returns the current position of the end of the minibuffer prompt, if a minibuffer is current. Otherwise, it returns the minimum valid buffer position. </p></dd>
</dl> <dl> <dt id="minibuffer-prompt-width">Function: <strong>minibuffer-prompt-width</strong>
</dt> <dd><p>This function returns the current display-width of the minibuffer prompt, if a minibuffer is current. Otherwise, it returns zero. </p></dd>
</dl> <dl> <dt id="minibuffer-contents">Function: <strong>minibuffer-contents</strong>
</dt> <dd><p>This function returns the editable contents of the minibuffer (that is, everything except the prompt) as a string, if a minibuffer is current. Otherwise, it returns the entire contents of the current buffer. </p></dd>
</dl> <dl> <dt id="minibuffer-contents-no-properties">Function: <strong>minibuffer-contents-no-properties</strong>
</dt> <dd><p>This is like <code>minibuffer-contents</code>, except that it does not copy text properties, just the characters themselves. See <a href="text-properties">Text Properties</a>. </p></dd>
</dl> <dl> <dt id="delete-minibuffer-contents">Command: <strong>delete-minibuffer-contents</strong>
</dt> <dd><p>This command erases the editable contents of the minibuffer (that is, everything except the prompt), if a minibuffer is current. Otherwise, it erases the entire current buffer. </p></dd>
</dl><div class="_attribution">
  <p class="_attribution-p">
    Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
    <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Minibuffer-Contents.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Minibuffer-Contents.html</a>
  </p>
</div>