From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Re: Completing with anything Date: Tue, 22 Mar 2011 12:57:52 +0100 Message-ID: <874o6v2wqn.fsf@member.fsf.org> 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> <87lj08fxge.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: (aankhen@gmail.com's message of "Tue, 22 Mar 2011 15:30:58 +0530") 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: Aankhen Cc: Julien Danjou , emacs-orgmode@gnu.org, Stefan Monnier , emacs-devel@gnu.org List-Id: emacs-orgmode.gnu.org Aankhen writes: Hi Aankhen, >> Or maybe an upper layer mixing abbrev and completion? Trying one at >> first, the other one after. This could be useful for message-mode for >> example, since you probably wants to use both. > > Isn=E2=80=99t this what hippie-expand does? Oh, yes, it seems so. For example, there is the possible expansion (not completion) function: ,----[ C-h f try-expand-all-abbrevs RET ] | try-expand-all-abbrevs is a compiled Lisp function in `hippie-exp.el'. |=20 | (try-expand-all-abbrevs OLD) |=20 | Try to expand word before point according to all abbrev tables. | The argument OLD has to be nil the first call of this function, and t | for subsequent calls (for further possible expansions of the same | string). It returns t if a new expansion is found, nil otherwise. `---- The OLD arg in hippie-expansion functions also handles the case of cycling thru possible expansions, where an expansion erases the text that was expanded. So Julien, maybe you want a `try-expand-org-contact' function, and add that to `hippie-expand-try-functions-list', and bind `hippie-expand' to some key. Bye, Tassilo