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

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

Re: docstring of display-completion-list


From: Kevin Rodgers
Subject: Re: docstring of display-completion-list
Date: Mon, 18 Mar 2002 14:10:46 -0700

[Followup-To: gnu.emacs.help]

Roland Winkler wrote:
> 
> Attached below is the code of a function my-complete-symbol. Most of
> the code I borrowed from lisp-complete-symbol. The function works
> completely as expected. However, according to the docstring of
> display-completion-list used at the end of this function there is
> one thing I do not understand at all:
> 
> If I choose a completion from the `*Completions*' buffer, why is the
> text inserted in the buffer from where I called my-complete-symbol?
> 
> According to the docstring of display-completion-list it runs the
> hook completion-setup-hook which (I think by default) calls the
> undocumented function completion-setup-function. Is the latter
> inserting the completion in the buffer from where I called
> my-complete-symbol?

No, I think it's this bit in my-complete-symbol itself:

...

>           ((not (string= pattern completion))
>            (delete-region beg end)
>            (insert completion))

-- 
Kevin Rodgers <address@hidden>



reply via email to

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