From mboxrd@z Thu Jan 1 00:00:00 1970 From: 42 147 Subject: completing-read question Date: Wed, 28 May 2014 01:05:09 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133b730a718df04fa6ec192 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpW35-0008GW-Aq for emacs-orgmode@gnu.org; Wed, 28 May 2014 01:05:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpW34-00087i-C5 for emacs-orgmode@gnu.org; Wed, 28 May 2014 01:05:11 -0400 Received: from mail-vc0-x234.google.com ([2607:f8b0:400c:c03::234]:53848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpW34-00087W-8H for emacs-orgmode@gnu.org; Wed, 28 May 2014 01:05:10 -0400 Received: by mail-vc0-f180.google.com with SMTP id hy4so11710033vcb.39 for ; Tue, 27 May 2014 22:05:09 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --001a1133b730a718df04fa6ec192 Content-Type: text/plain; charset=UTF-8 Hey everyone, My init stabilized about a year ago and therefore I've actually been spending more time working in org-mode than customizing it! But that comes at a cost. My Emacs Lisp has become quite rusty. Recently I started customizing again, and I wanted to use the completing-read function -- but I am curious what the numbers in these lists are used for. This is an example I found in one of the tutorials online: (completing-read "Complete a foo: " '(("foobar1" 1) ("barfoo" 2) ("foobaz" 3) ("foobar2" 4)) nil t "fo") This function appears to work fine without the 1, 2, 3, 4. If this is outside the scope of this particular mailing list, I will gladly be directed elsewhere. --001a1133b730a718df04fa6ec192 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey everyone,

My init stabilized about a year ago a= nd therefore I've actually been
spending more time working in org-mo= de than customizing it!

But that comes at a cost. My Emacs Lisp has = become quite rusty. Recently I
started customizing again, and I wanted to use the completing-read function=
-- but I am curious what the numbers in these lists are used for.
<= br>This is an example I found in one of the tutorials online:

(compl= eting-read
=C2=A0"Complete a foo: "
=C2=A0'(("foobar1" 1) (= "barfoo" 2) ("foobaz" 3) ("foobar2" 4))
= =C2=A0nil t "fo")

This function appears to work fine witho= ut the 1, 2, 3, 4.

If this is outside the scope of this particular mailing list, I will gl= adly
be directed elsewhere.

--001a1133b730a718df04fa6ec192--