[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 30 May 2003 10:28:17 -0600
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 <address@hidden> writes:
Suppose I have the function
(defun foo ()
(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:<email@example.com>">Kevin Rodgers</a>