help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-completion-list


From: Kevin Rodgers
Subject: Re: display-completion-list
Date: Fri, 30 May 2003 10:28:17 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Kai Großjohann wrote:

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!

In Emacs 21.3 I get

        Describe variable: choos [No match]

But there's always

        (defadvice choose-completion (after ...) ...)

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]