all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Question to completion
@ 2003-11-08 12:52 Klaus Berndl
  2003-11-08 14:14 ` Klaus Berndl
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Klaus Berndl @ 2003-11-08 12:52 UTC (permalink / raw)



Suppose i have s command like follows:

(defun offer-some-choices ()
  (interactive)
  (completing-read "Select a name: " '(("Klaus" . t) ("Berndl" . t))))

Then this displays in the minibuffer "Select a name: " and then wait for input
from the user.

How can i achieve that always - *without* the user has to hit TAB - the
possible completions are displayed immediately?
Or with other words: How to simulate that the user has already pressed TAB as
often as necessary to display all possible completions? Best would be if the
longest common substring of all possible completions is displayed immediately
in the minibuffer (OK, this i could precompute with `try-completion' and then
insert as argument INITIAL-INPUT - but AFAIK this is deprecated?!).

But most important is that the user has not to hit any key to see all possible
completions. How to do this with completing-read - or is there a better way to
do this?

What i want is to (mis?)use the completion-feature of Emacs to offer the user
some choices which he can select either via mouse or via keyboard from the
minibuffer.

Thanks a lot in advance!
Klaus

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Carl-Wery-Str. 42, 81739 Muenchen, Germany
Tel +49 89 63812-392, Fax -220

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-10 16:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-08 12:52 Question to completion Klaus Berndl
2003-11-08 14:14 ` Klaus Berndl
2003-11-09 14:36 ` Ehud Karni
     [not found] ` <mailman.73.1068392321.2005.help-gnu-emacs@gnu.org>
2003-11-09 17:21   ` Klaus Berndl
2003-11-10 16:20   ` Stefan Monnier
2003-11-09 19:04 ` jan

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.