all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* handling of completion table duplicates
@ 2016-04-03 11:53 Ingo Lohmar
  2016-04-03 14:09 ` Stefan Monnier
  2016-04-03 14:34 ` Andreas Schwab
  0 siblings, 2 replies; 7+ messages in thread
From: Ingo Lohmar @ 2016-04-03 11:53 UTC (permalink / raw)
  To: emacs-devel

Hi Everybody,

I recently noticed that ivy-mode (at its very core a completing-read
alternative, just like ido-completing-read is another one) does *not*
eliminate duplicates from the collection it is passed, eg, in form of a
plain list.

(completing-read "Prompt: " '("a" "b" "c" "a" "d"))

Both completing-read as well as ido-completing-read remove such
duplicates, but I could not find that behavior documented in the elisp
info manual or the docstrings.

Is removing duplicates from the collection *expected* from completion
functions, or is the caller of the function responsible for providing a
collection without duplicates?

If I did not just miss the documentation (in which case I apologize),
should this be documented, and where?

Ingo



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

end of thread, other threads:[~2016-04-06 17:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-03 11:53 handling of completion table duplicates Ingo Lohmar
2016-04-03 14:09 ` Stefan Monnier
2016-04-03 14:34 ` Andreas Schwab
2016-04-03 15:55   ` Drew Adams
2016-04-05 20:29     ` Ingo Lohmar
2016-04-05 21:42       ` Drew Adams
2016-04-06 17:28         ` Ingo Lohmar

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.