From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou 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> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: In-Reply-To: (Stefan Monnier's message of "Fri, 11 Feb 2011 18:08:39 -0500") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 To: Stefan Monnier Cc: Tassilo Horn , emacs-orgmode@gnu.org, emacs-devel@gnu.org List-Id: emacs-orgmode.gnu.org --=-=-= 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----- --=-=-=--