Show list of options in elisp

Hi

I have the following problem:

The provided list of values ​​and the use of the formatting function passed as an argument displays all its elements in the auxiliary buffer. Then the user selects one of them using the arrow keys. The return value must be selected.

If you've ever used reftex to insert quotes or browse-kill-ring, you know what I'm talking about. These two examples use custom code to achieve the desired results, but perhaps there is a library that can do this.

+5
source share
1 answer
(with-output-to-temp-buffer "*Name of buffer*"
  (display-completion-list '("foo" "bar" "baz" "qux")))
+10
source

All Articles