Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> writes:
Suppose I have the function
(defun foo ()
(interactive)
(with-output-to-temp-buffer "*Completions*"
(display-completion-list '("a" "b" "d"))))
This will open a completion buffer. If I select a completion in this
buffer by clicking <mouse-2> on a completion, the selection will be
inserted in the active buffer at the position of point. How does the
insertion happen in detail?
I don't know. Here is how I find out:
I run the code. I position point on one of the completions and do
C-h k RET. It tells me that it runs the command choose-completions.
I have a wild hunch that there might be a variable with a similar
name, so I type C-h v choos TAB... Bingo!