From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [O] 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300795097 2596 80.91.229.12 (22 Mar 2011 11:58:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 11:58:17 +0000 (UTC) Cc: Julien Danjou , emacs-orgmode@gnu.org, Stefan Monnier , emacs-devel@gnu.org To: Aankhen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 12:58:09 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 1Q20Dv-0006WC-NX for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2011 12:58:07 +0100 Original-Received: from localhost ([127.0.0.1]:34064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q20Du-0002Af-IR for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2011 07:58:06 -0400 Original-Received: from [140.186.70.92] (port=47219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q20Dj-00028O-OU for emacs-devel@gnu.org; Tue, 22 Mar 2011 07:57:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q20Di-0003ZA-P6 for emacs-devel@gnu.org; Tue, 22 Mar 2011 07:57:55 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:2286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q20Di-0003Yj-HH; Tue, 22 Mar 2011 07:57:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 315A87816F8F; Tue, 22 Mar 2011 12:57:53 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09315-07-2; Tue, 22 Mar 2011 12:57:52 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D68827816F91; Tue, 22 Mar 2011 12:57:51 +0100 (CET) In-Reply-To: (aankhen@gmail.com's message of "Tue, 22 Mar 2011 15:30:58 +0530") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 141.26.64.15 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:137522 gmane.emacs.orgmode:39922 Archived-At: 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