* tab completion for a custom function.
@ 2009-02-03 12:02 Nurullah Akkaya
2009-02-03 15:09 ` Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: Nurullah Akkaya @ 2009-02-03 12:02 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Hi,
i have a custom function that gets input a project name then it opens
projects main file
and two terminal's in to project directories. i get the input using
(interactive "sProject: ")
i want to use tab completion for project names. instead of typing the whole
name.
can i supply a list of names to the interactive function?
thanks.
Nurullah
[-- Attachment #2: Type: text/html, Size: 413 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: tab completion for a custom function.
2009-02-03 12:02 tab completion for a custom function Nurullah Akkaya
@ 2009-02-03 15:09 ` Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2009-02-03 15:09 UTC (permalink / raw)
To: 'Nurullah Akkaya', help-gnu-emacs
> i have a custom function that gets input a project name then
> it opens projects main file and two terminal's in to project
> directories. i get the input using (interactive "sProject: ")
> i want to use tab completion for project names. instead of
> typing the whole name. can i supply a list of names to the
> interactive function?
No. But you can use Lisp code other than a string in the argument to
`interactive'. The code should return the list of the arguments. The code can
call `completing-read' to read user input with completion.
(interactive
(list (completing-read "Project: " (my-list-of-projects) ...)))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-03 15:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 12:02 tab completion for a custom function Nurullah Akkaya
2009-02-03 15:09 ` Drew Adams
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.