From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rajsekar Manokaran Newsgroups: gmane.emacs.help Subject: Learners doubt in LISP Date: Thu, 08 Jan 2004 14:31:39 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073553702 11608 80.91.224.253 (8 Jan 2004 09:21:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 09:21:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 08 10:21:36 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeWMC-00067r-00 for ; Thu, 08 Jan 2004 10:21:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeXEc-0001Ev-0k for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2004 05:17:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: proxy1.iitm.ac.in Original-X-Trace: quimby.gnus.org 1073552414 28113 203.199.213.3 (8 Jan 2004 09:00:14 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Thu, 8 Jan 2004 09:00:14 +0000 (UTC) User-Agent: Gnus/5.1005 (Gnus v5.10.5) Emacs/21.2.93 (gnu/linux) Cancel-Lock: sha1:v5SbsAqyBqNm2bjjiNkZbm1W/ho= Original-Xref: shelby.stanford.edu gnu.emacs.help:119863 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15806 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15806 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