New answers tagged minibuffer
0
votes
Accepted
read-string for making new buffer
Normally you should use one of the predefined argument types rather than calling read-string yourself. Did you read the docstring for interactive? It is long but complete.
(defun db48x/test-workspace (...
0
votes
read-string for making new buffer
Your function has an argument name that would be supplied another way when called from lisp. Example:
(workspace "*foo*")
When called interactively, you need a way for the user to supply ...
3
votes
Accepted
How to preselect initial text in the minibuffer with Elisp?
Use macro minibuffer-with-setup-hook to set the mark at the end of the minibuffer prompt. read-string then inserts the initial text with the mark active, which means that initial text is selected as ...
Top 50 recent answers are included
Related Tags
minibuffer × 197key-bindings × 21
completion × 18
echo-area × 13
ivy × 10
helm × 8
message × 7
buffers × 6
faces × 6
isearch × 6
quitting × 6
prompt × 6
window × 5
frames × 5
commands × 5
find-file × 5
ido × 5
evil × 4
hooks × 4
interactive × 4
input-method × 4
org-mode × 3
spacemacs × 3
debugging × 3
search × 3