unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: lee <lee@yun.yagibdah.de>, help-gnu-emacs@gnu.org
Subject: RE: completing-read
Date: Wed, 28 May 2014 19:17:19 -0700 (PDT)	[thread overview]
Message-ID: <34c219ed-5a1a-42f6-b449-67c37d87e5b5@default> (raw)
In-Reply-To: <87wqd573iq.fsf@yun.yagibdah.de>

> > (completing-read
> >  "Complete a foo: "
> >  '(("foobar1" 1) ("barfoo" 2) ("foobaz" 3) ("foobar2" 4))
> >  nil t "fo")
>
> Shouldn`t that, nowadays, be more like '(("foobar1" . 1) ...'?

("foobar" 2) is the same as ("foobar" . (2)), that is, a cons
whose cdr is the list (2).  Nothing non-nowadays about such a
beast.

> So you cannot create a list like this (anymore)?

'("foobar" 2)
`("foobar" ,(length "ab"))
(list (symbol-name 'foobar) (1+ 1))
...



  reply	other threads:[~2014-05-29  2:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 17:44 completing-read drain
2014-05-28 18:16 ` completing-read Drew Adams
2014-05-29  1:54 ` completing-read lee
2014-05-29  2:17   ` Drew Adams [this message]
2014-05-30  5:12     ` completing-read drain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34c219ed-5a1a-42f6-b449-67c37d87e5b5@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lee@yun.yagibdah.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).