From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.help Subject: display-completion-list Date: 30 May 2003 13:53:29 +0200 Organization: FAU Erlangen-Nuernberg Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054295740 15380 80.91.224.249 (30 May 2003 11:55:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 May 2003 11:55:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 30 13:55:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LiTy-0003zs-00 for ; Fri, 30 May 2003 13:55:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LiTl-0007e8-DS for gnu-help-gnu-emacs@m.gmane.org; Fri, 30 May 2003 07:55:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!newsfeed.stueberl.de!newsfeed.r-kom.de!news-nue1.dfn.de!uni-erlangen.de!news.uni-erlangen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: tfkp07.physik.uni-erlangen.de Original-X-Trace: rznews2.rrze.uni-erlangen.de 1054295610 3116 131.188.164.207 (30 May 2003 11:53:30 GMT) Original-X-Complaints-To: news@uni-erlangen.de Original-NNTP-Posting-Date: 30 May 2003 11:53:30 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:113879 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10373 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 on a completion, the selection will be inserted in the active buffer at the position of point. How does the insertion happen in detail? After the selection has been inserted in the active buffer I would like to execute a function that takes as arguments, say, the buffer positions of beginning and end of the text that was inserted. How can I do that? Is there something like a display-completion-post-insertion-hook? Thanks a lot, Roland