[Top][All Lists]

[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: Gecko/20020406 Netscape6/6.2.2

Kai Gro├čjohann wrote:

Roland Winkler <address@hidden> writes:

Suppose I have the function

(defun foo ()
 (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;;";>Kevin Rodgers</a>

reply via email to

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