On Thu, 2008-11-13 at 07:50 -0800, Xah wrote:
if you want to write elisp to call some other script and process the
result, it's fairly easy. If you can be specific about what command
you want to call and how you want to parse the result, we can help
better.
here's my second question:
given a list like this
'(
"matt@mdke.org Matthew East"
"matt.price@utoronto.ca Matt Price
"matthias.doerries@gersulp.u-strasbg.fr Matthias Dörries"
"matthewreedy@yahoo.com matthewreedy"
)
how to i tell emacs i want to use the list elements as choices for
tab-completion in an interactive function? so if i have a function like
this:
(defun query-python-addressbook (name)
(setq cmd-name "python /home/matt/evo-query.py")
;; imagine sh-output generates a list -- see my last email in this
thread
(setq sh-output (shell-command-to-string (concat cmd-name " " name)))
)
can I write another couple of lines that presents the items in the list
as choices to the user, who then picks one? that'd be really great.
that's about as far as i can get so far. thanks again!
matt