all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* completing-read
@ 2007-02-19 16:53 John J Foerch
  2007-02-19 17:46 ` completing-read Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: John J Foerch @ 2007-02-19 16:53 UTC (permalink / raw)
  To: bug-gnu-emacs

Hello,

The following code exhibits a behavior of completing-read that I would call a
bug.  Or am I missing something?

(let ((table '((foo . "you selected foo")
               (foobar . "you selected foobar"))))
  (completing-read "Symbol: " table nil 'require-match))

The unexpected behavior is that it is impossible to select `foo'.

Thanks,
John Foerch

^ permalink raw reply	[flat|nested] 7+ messages in thread
* completing-read
@ 2014-05-28 17:44 drain
  2014-05-28 18:16 ` completing-read Drew Adams
  2014-05-29  1:54 ` completing-read lee
  0 siblings, 2 replies; 7+ messages in thread
From: drain @ 2014-05-28 17:44 UTC (permalink / raw)
  To: Help-gnu-emacs

I'm curious what the numbers passed to the completing-read function are
used for. Here is the example I found 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.



--
View this message in context: http://emacs.1067599.n5.nabble.com/completing-read-tp323117.html
Sent from the Emacs - Help mailing list archive at Nabble.com.



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

end of thread, other threads:[~2014-05-30  5:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-19 16:53 completing-read John J Foerch
2007-02-19 17:46 ` completing-read Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
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   ` completing-read Drew Adams
2014-05-30  5:12     ` completing-read drain

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.