From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Completing with anything (was: [Orgmode] Re: Announcing org-contacts, a bbdb-like contact manager for Org) Date: Fri, 18 Mar 2011 16:00:18 +0100 Message-ID: References: <87r5bhysp6.fsf@keller.adm.naquadah.org> <878vxovsym.fsf@keller.adm.naquadah.org> <87k4h7ua23.fsf@member.fsf.org> <87vd0romky.fsf@keller.adm.naquadah.org> <87mxm2na63.fsf@member.fsf.org> <87vd0qfhu3.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1300461378 15312 80.91.229.12 (18 Mar 2011 15:16:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 15:16:18 +0000 (UTC) Cc: Tassilo Horn , emacs-orgmode@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 16:16:13 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0bPL-0004tZ-A6 for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2011 16:16:12 +0100 Original-Received: from localhost ([127.0.0.1]:57391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0bAX-0007n4-1j for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2011 11:00:49 -0400 Original-Received: from [140.186.70.92] (port=58429 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0bAQ-0007lH-IP for emacs-devel@gnu.org; Fri, 18 Mar 2011 11:00:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0bA7-0003zG-5q for emacs-devel@gnu.org; Fri, 18 Mar 2011 11:00:24 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:33285 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0bA6-0003z6-Rl; Fri, 18 Mar 2011 11:00:23 -0400 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 684E65C0F1; Fri, 18 Mar 2011 16:00:21 +0100 (CET) Original-Received: from cigue.easter-eggs.fr (coquelicot-s.easter-eggs.com [213.215.37.94]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 75AED5C0E7; Fri, 18 Mar 2011 16:00:19 +0100 (CET) Mail-Followup-To: Stefan Monnier , Tassilo Horn , emacs-orgmode@gnu.org, emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Fri, 11 Feb 2011 18:08:39 -0500") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.85.154.174 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137402 gmane.emacs.orgmode:39712 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Feb 12 2011, Stefan Monnier wrote: > For more complex cases, there is also the issue of what to do when some > parts of the completion are case-sensitive and other parts aren't > (e.g. completion of case-sensitive envvars in case-insensitive file > names), although this is less important for completion-at-point than > for minibuffer completion since you don't have to return a table that > covers the completion of the whole field (composed of file names and > env-vars, for example), and instead you can just limit the completion to > the particular subfield. There's still something wrong to me in the solution provided by Tassilo. It works fine, but it is returning a function to bypass the usual completion code completion code. Ignoring case, like doing smarter completion (e.g. where the typed prefix does not match the returned choices at all) is something that is very useful. Therefore I wonder if we should either: =2D Edit `completion-at-point-functions' docstring to remove the word "discouraged" in that sentence: "or a function of no argument to perform completion (discouraged),"; =2D Make completing code allows to replace the region being completed with somethig that does not match at all. =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJNg3OCAAoJEGEbqVCLeKXCCPAP/1azwk94wwtlvrbTAXsN6U/I wpblwq9zbd6FhgUKNm74NRu6Vhujr6+euncnUzMBYM2mKiqS63uetpa0do2rqjGu /FozuksUb8IB/DBtPlBEpLg7HAe0r9iEVOrHTk5GPMcMef0gZU1CdyGSVLNlZj76 aM5CfaRdFYW7C0vUtQ17lkxdFjSxPPzYzHpHEXfxxNghSGRcRSzM/ZR3CeRh6+z4 4Z/Zc60qJCSFh+ruIozwnSnFWovTVJO9xcanyvMJ4NE6Hifoi7MRG3vP2mtQ5eWr TJI9P4lPqA5gByiOwP7LtYe2h72p6T+vwu75xHtHQR2q8em5zphyx6buK7+Cu8I5 AVN7O225ZyDkvlOF5R++kMcjkRCao3p/ExJZhsEr+uCGKTcLcjAF7KouoE7gfsxL Oh1m7EOW+hJLftkBZWFROuMjMGQmRB1+1RLbcY7NfubUxcWeY/5p1ar6bnoRTUwH T4A7jtY2gE4GNlgjYcxHd9CLt6yYP7qyuMphKs6h4tFDa2Kl5Ezbad5sSdOiN549 NuvpincnUVB8572Cm892DVDS8OemQgbNOrxwmiE9pAmtlz21IF5UIytE/zRF5V10 GLOd80Xsd9CaICc2UFGzYACBs3W2LxFcgI6cihEwymplg0R1GqdnW7GTaPQ54lTw wXSxjjFdUo0T3mga8pFr =x7gf -----END PGP SIGNATURE----- --=-=-=--