From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ingo Lohmar Newsgroups: gmane.emacs.devel Subject: handling of completion table duplicates Date: Sun, 03 Apr 2016 13:53:24 +0200 Message-ID: <87h9fiewnf.fsf@acer.localhost.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459684432 14166 80.91.229.3 (3 Apr 2016 11:53:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2016 11:53:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 03 13:53:52 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1amgbH-00084r-4C for ged-emacs-devel@m.gmane.org; Sun, 03 Apr 2016 13:53:51 +0200 Original-Received: from localhost ([::1]:52977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amgbD-00010Z-Bd for ged-emacs-devel@m.gmane.org; Sun, 03 Apr 2016 07:53:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amgaw-0000zQ-K9 for emacs-devel@gnu.org; Sun, 03 Apr 2016 07:53:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amgat-00081V-CI for emacs-devel@gnu.org; Sun, 03 Apr 2016 07:53:30 -0400 Original-Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:36551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amgat-00081R-37 for emacs-devel@gnu.org; Sun, 03 Apr 2016 07:53:27 -0400 Original-Received: by mail-lb0-x22c.google.com with SMTP id qe11so121745810lbc.3 for ; Sun, 03 Apr 2016 04:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version; bh=ntZAcGr2Oz0uv55mkM40S8NN89MAEFPbsDImDvmXloA=; b=nezQKa1UaudH3irx7LrCUkitszvQRaLqggAV7owOTZe8hQePJ/nM5QEwQdPytmb0DM 1GqMnWpcgYm7POTxI5o64cSJkZWLoZ60sFHaWzC4wkHjoCB6Ydfa/XKT0+TY/3qvUYQM MMLUBMe7h5pD464rkyuPmjx2vJFQmOy9jwNv5pjGcn2x4aujqjhZhl5DxZve2gpnwFhS loPt0LY4BXN4HgyfZumfxfrgTCrRB7hg+0lP4jhoaL/gpa+VS4G6cCSmhskt55KDm6ro YHUQXGT4y1hHA/7jTZpprfd8zFgN6tNsuCJ+iaEps1DuoklNhIuQpVNw/h85t15ptoZd Pztg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version; bh=ntZAcGr2Oz0uv55mkM40S8NN89MAEFPbsDImDvmXloA=; b=C2jB/vtiQW/pxTeZg6Fkn9Y8GFa24GPve0I1gboviNuTep3vL5Cg9tANm7lKiRfZPF 1eXxucZaoloTlMNzNWIHru7RSfoOmHoPAd99qeS5Q1+ipfGMziaI3HFHbnPVmDUR/kF3 oT/XKokNROFI//XfrLB4lhhXNxtrBkSSjcurpopnUqY3EpsBvAMug4DkqSHsA+KjboTd Uh95IKF52K9l7hMzDVo0CmAX8IAHPewZz7zmHdSoWAIKfIv+tYcToItlJGsOtaRNEP8v oavpet8H4WHQUn8Rk5/tLtPeTOP5urcDDahELHkRLgMioAHmQSnmY6XcZ2VbwmSXHpQv Zb/Q== X-Gm-Message-State: AD7BkJKowqW+lCsTUMkJP4ZoTVilXxlfUx6Xi5DPmF0H3I8sCsb89xUjFFL5RGj1p6X97w== X-Received: by 10.28.73.66 with SMTP id w63mr7251404wma.53.1459684406062; Sun, 03 Apr 2016 04:53:26 -0700 (PDT) Original-Received: from localhost (xdsl-87-79-226-7.netcologne.de. [87.79.226.7]) by smtp.gmail.com with ESMTPSA id t4sm8330345wmf.8.2016.04.03.04.53.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Apr 2016 04:53:25 -0700 (PDT) User-Agent: Notmuch/0.20.2+113~g6332e6e (http://notmuchmail.org) Emacs/25.0.90.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202615 Archived-At: 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