From: Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Subject: display-completion-list
Date: 30 May 2003 13:53:29 +0200 [thread overview]
Message-ID: <m3brxkodl2.fsf@tfkp07.physik.uni-erlangen.de> (raw)
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?
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
next reply other threads:[~2003-05-30 11:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 11:53 Roland Winkler [this message]
2003-05-30 13:22 ` display-completion-list Kai Großjohann
2003-05-30 16:28 ` display-completion-list Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3brxkodl2.fsf@tfkp07.physik.uni-erlangen.de \
--to=roland.winkler@physik.uni-erlangen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.