unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Learners doubt in LISP
@ 2004-01-08 19:31 Rajsekar Manokaran
  2004-01-08  9:22 ` Joakim Hove
  2004-01-08 10:27 ` Ganesh Swami
  0 siblings, 2 replies; 3+ messages in thread
From: Rajsekar Manokaran @ 2004-01-08 19:31 UTC (permalink / raw)





I have just started learning lisp.
I use emacs (which was my motivation to learn LISP) to compile things.

There is a function in emacs called completing-read which when passed some
strings allows the user to select one string out of the many passed. I want to
allow the user select a string and then use the data associated with the
string.

eg.

(completing-read "Input: " '(("hai" 10) ("bye" 20)) nil t nil)

reads allowing completions hai and bye.

the nil t nil are insignificant (t - only allow things on the list).

Now this thing seems to return "bye" or "hai"
How do I access the 10 or 20 that comes together with it?

Thanks in advance.

M Rajsekar

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

end of thread, other threads:[~2004-01-08 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-08 19:31 Learners doubt in LISP Rajsekar Manokaran
2004-01-08  9:22 ` Joakim Hove
2004-01-08 10:27 ` Ganesh Swami

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).