Questions tagged [completing-read]

37 questions
2
votes
1 answer

How can I modify the prompt of another command?

How can I modify the prompt of another interactive command without copy-pasting too much? Can I override only the interactive form?
Joelmob
  • 231
  • 1
  • 4
1
vote
1 answer

Initial input for completing-read

With the following function using "completing-read", how can one add a default initial input to be Convert. What can I do? (defun subset () "Convert or extract subsets of data." (interactive) (let* ( (opts '("Convert" "Split")) (sel…
Dilna
  • 1
  • 3
  • 11
0
votes
1 answer

User input - How to use predefined list

While there are org-templates creating entire bullet points with content, what I am looking for is a simple user query (similar to read-string) where the user can use a pre-defined list of words/phrases to choose from (up/down or left/right arrow…
Phoenix
  • 351
  • 1
  • 9
0
votes
1 answer

Close completing-read dialog before continuing

I've written an elisp script to automate the process of taking screenshots. The script uses maim and imgur.sh. Not really important however. Here is the code: ;;; ../../.local/share/git/dotArch/.config/doom/userconfig/screenshot.el -*-…
0
votes
0 answers

How to include buffer-file-name in completing-read

I can use completing-read to choose from several items like this: (completing-read "Complete a foo: " '(("apple" 1) ("barfoo" 2) ("elk" 3) ("foobar2" 4)) ;; collection of choices nil t ) But the example below does not show the value of…
Kevin Wright
  • 389
  • 1
  • 17