New answers tagged

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 (...
user avatar
  • 11.8k
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 ...
user avatar
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 ...
user avatar
  • 69.7k

Top 50 recent answers are included