From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou Subject: Re: Completing with anything Date: Tue, 24 May 2011 09:33:20 +0200 Message-ID: <87mxicr1rz.fsf@keller.adm.naquadah.org> References: <87r5bhysp6.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> <87y63jpii5.fsf@keller.adm.naquadah.org> <871v0ecwe4.fsf@keller.adm.naquadah.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 "Tue, 24 May 2011 00:14:52 -0300") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sender: 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 Tue, May 24 2011, Stefan Monnier wrote: > I've now added a :exit-function property that > completion-at-point-functions can return which is a function that gets > called when completion is finished. It operates outside of the > completion-table, so has access to the buffer text and can do things > like abbrev-expand. > > It gets a status argument which tells it whether the completion is > `exact' (basically, it's valid according to the completion-table, but > there may be further completions available), `sole' (it's the only > completion), and `finished' (not only it's the sole completion, but the > user is not expected to want to change it). `sole' is used by cycling, > so the :exit-function can call abbrev-expand when the status is > `finished' and it won't interfere with cycling (which simply won't > benefit from abbrev-expansion). That sounds really tremendous Stefan! Just what was needed. Thanks a lot. =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) iQIcBAEBAgAGBQJN219AAAoJEGEbqVCLeKXCpjQP+QHBO+JWCXZLChBt9vX9OOsz IZt+9P5goiNBnNvlwnD7+juoXi9JTpfQ+6ng+e29LqlGFKrGFPOKWi1Lnri41c1T NI5CJVshTaN9cNsb3Su8D3YWagQixtgstdceLLcoCNkMm/PhSuTMyFEKS6TvEecY eyo+8dDhzZFrt28U8FDv+KfhM/LH688BEkg6c+U94YXLOgz3muerhHsFGob32j2T u+OWEtdp26bHsc0EqADCeCNlpFOPtvst8yz+SVHBiIt04xoHI8irvvvZhsN//Pge Sofqf4arg2sgjAs3gwA7KXjmb05lo9kNGfuwkJAwW3fkxgsT8gTwBkfOSyyGAR4Z YVZ4taj9rOHbA4C2EEpLp5sVdXixdZGTOF7zsKd3AD2Jqgf6KT0yCyGZGElV19F5 EIOSL26bsYMpsaIrPtCocMx0makFQQ3fcLSiwlM15KNcZNpLG2MTYpGvXKy/bfPQ 2nc6T7Q7OGJ34fvwisUrQdrRNE8KCJtYzguRNYb4bEfuHByZF/FbTzWVj9ae8RPX /+kKJrOSAyEyd0WODVYK0PbMBUyw4NkuyFAIVaSu9aNSlkYe1YGUWXQpMUD7M1YR AgaXsyL8QSZX5RMPDQ2IjrP2BhuRRTlm4Cxa5q2ZYr8KaCqOUu1uittnDs3s6PEb rFsYibh4ipuaNC9bdJlk =dK7O -----END PGP SIGNATURE----- --=-=-=--