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: 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> 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 1306222460 22528 80.91.229.12 (24 May 2011 07:34:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 07:34:20 +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 Tue May 24 09:34:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOm87-00006H-LM for ged-emacs-devel@m.gmane.org; Tue, 24 May 2011 09:34:15 +0200 Original-Received: from localhost ([::1]:49397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOm87-0005Dm-0I for ged-emacs-devel@m.gmane.org; Tue, 24 May 2011 03:34:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOm84-0005DT-Dq for emacs-devel@gnu.org; Tue, 24 May 2011 03:34:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOm83-0000Pb-9p for emacs-devel@gnu.org; Tue, 24 May 2011 03:34:12 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:44107 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOm83-0000PS-5T; Tue, 24 May 2011 03:34:11 -0400 Original-Received: from keller.adm.naquadah.org (keller.adm.naquadah.org [192.168.2.16]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 8708B5C09E; Tue, 24 May 2011 09:34:08 +0200 (CEST) Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org, Tassilo Horn , emacs-orgmode@gnu.org In-Reply-To: (Stefan Monnier's message of "Tue, 24 May 2011 00:14:52 -0300") User-Agent: Gnus/5.110018 (No Gnus v0.18) 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.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:139673 gmane.emacs.orgmode:42164 Archived-At: --=-=-= 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----- --=-=-=--