From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.devel Subject: Re: completion discrepancy between default completion and helm/ivy completions Date: Sun, 13 Nov 2016 14:05:08 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1479042391 21700 195.159.176.226 (13 Nov 2016 13:06:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2016 13:06:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 13 14:06:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c5uU6-0003L9-QV for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2016 14:06:10 +0100 Original-Received: from localhost ([::1]:33751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5uU9-0006Gp-MC for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2016 08:06:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5uTF-0006FR-0G for emacs-devel@gnu.org; Sun, 13 Nov 2016 08:05:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5uTB-0007r5-S5 for emacs-devel@gnu.org; Sun, 13 Nov 2016 08:05:16 -0500 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:31691) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c5uTB-0007qt-HC for emacs-devel@gnu.org; Sun, 13 Nov 2016 08:05:13 -0500 X-IronPort-AV: E=Sophos;i="5.31,485,1473112800"; d="asc'?scan'208";a="200170705" Original-Received: from cbg35-2-78-242-14-140.fbx.proxad.net (HELO top.local) ([78.242.14.140]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 13 Nov 2016 14:05:09 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 10 Nov 2016 15:35:41 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.104 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:209372 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Stefan, On 2016-11-10 15:35, Stefan Monnier writes: >> (let ((completion (try-completion beforepoint table pred))) >> (if (not (stringp completion)) >> completion > > This case is for when `completion` is t (when means that `beforepoint` > is a valid candidate and there is no further completion possible). I see. >> I would like to fix org-contacts so that it works well all the time. >> Should it directly return a cons of the string and its length? > > No, returning such a cons would be a bug and I'm pretty sure it would > break the default completion code at least. OK, but I do not know how to proceed then. Is it correct to register as a completion something that returns a string? Because it is what org-contacts does, but although it works with the default completion code, it breaks ivy or helm style completions. I'm trying to understand if the bug lies within org-contacts or within iyv/helm. Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2016-10: 401.57, 2015-10: = 398.29 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYKGUFAAoJEAQNCjtO0uXHfg8H/ihG1fP0rEfFCm3zErzOjvrc GMVaIceQb8tmptJhdPUFhl2fByu7M3ATBz4EZpjcSDeF+8qS7zGElAiwYCD9bdG5 FZ95fvaphqHAPRX5wh/J+xbplFmv98wR7nRw/7OCkokMfPcrVLZ2JTIMmM/qafAY 7fFZKTqOKcZ9tLbH5Egqk8TQUnSAKVZUjeL1R9quk/Ph71Lq2N7ghyYaPppTPW6F RKkcK8lBOFwI+Tq8IZJKwBB4P3cAetZwlM2XLGjlXUkWldh8buxCRJWWi9y07vYg TOwnhRmXvg+roVB7xWp5YJfKGulOEiQDeD5Ckpn9RHDXE2pU7mSfKPY/2ETHg4M= =VUbV -----END PGP SIGNATURE----- --=-=-=--