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: [O] Re: Completing with anything Date: Wed, 04 May 2011 17:34:27 +0200 Message-ID: <871v0ecwe4.fsf@keller.adm.naquadah.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> <87y63jpii5.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 1304523304 6068 80.91.229.12 (4 May 2011 15:35:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 May 2011 15:35:04 +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 Wed May 04 17:35:00 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 1QHe6M-0003Rk-MN for ged-emacs-devel@m.gmane.org; Wed, 04 May 2011 17:34:58 +0200 Original-Received: from localhost ([::1]:40397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHe6M-0005uT-8Q for ged-emacs-devel@m.gmane.org; Wed, 04 May 2011 11:34:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHe6J-0005uI-82 for emacs-devel@gnu.org; Wed, 04 May 2011 11:34:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHe6I-0005yK-1r for emacs-devel@gnu.org; Wed, 04 May 2011 11:34:55 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:37066 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHe6H-0005tm-TS; Wed, 04 May 2011 11:34:54 -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 48AE65C11A; Wed, 4 May 2011 17:34:51 +0200 (CEST) Mail-Followup-To: Stefan Monnier , Tassilo Horn , emacs-orgmode@gnu.org, emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Wed, 04 May 2011 12:07:23 -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:139108 gmane.emacs.orgmode:41581 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, May 04 2011, Stefan Monnier wrote: > So at least cycling-completion seems fundamentally incompatible with > this idea of abbrev-expansion-after-completion, at least if you want to > allow arbitrarily complex abbrevs like skeletons. Indeed, this is a real problem. > Could you give me an idea of what kind of abbrevs the code should try > to accommodate? IIUC, your nic/nicolas example perfectly fits in. This is what I tried to achieve in message-mode (using org-contacts as the database). Maybe what's needed is a different completion type, which would be a built on top of both completion and abbrev. It would try to complete based on an abbrev list until there's no possible doubt about the alias the users wants, and finally would do the expand-abbrev operation. At least, that sounds like a completion mode we would need in message-mode case. =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) iQIcBAEBAgAGBQJNwXIDAAoJEGEbqVCLeKXCp4YP/RBB2VUQtt0SZ6aqoigl6ofb SM+a8VyCWVLNkklSm2cMso17wHDQFOZOWpD6CHN1FF+XlUTBOnxEmgKKewM2s4Bn M6/r8/gpByzQvetOevHqoAP+2QwKwUQ/NZtrwqln/VjE6H/HLbV4jjPqF6+RalsZ sRnVmb67EWxZIfsspbHTPJiwe5wnrPbiYpUYAzdXZIVNPo9biyRcCSyXRZgzAuef NbLCFlSBg5dbZPxHMxtYqm0IXOK34JPc8Ca5hwALEzSN8ISZQmoRfqqurfwet6CD hdGmKqG1xziWkpfrGIjbyvoOvah9RQnXzG3uWFj7/ui1a0Mpn7E/GfBl1vv6SKKS 1yykFZF2JTVJJVLOY13LRC+PlKSoMLXnaHDEjSMzOiceWygKryWJ4MzWUu7tjIBu xmc2cmRTR4Z+mYqVgzRr2ff5ZrhsyJr+eb3XPlyuSOW0ptlRX79DxHA79vPIqZZk 8XLqK1ukSSnLjZgJzv5iju8HyXwvG1201yWLs9fZhNxg5u61yoj/OtHL6YaI6yzq o6q1HLIfg/sQLGt0wrwa1prmRr+C8+/pjJ+vQcXvV/8CagSX4Vq67qkVM1Z1itWi x3oHORNUxIRl8V2AQSO+EAvLTa7wGXsIrqr5vsoTbANL3VbSO64YasGprL17FQ9z dDGnAD/pdrd6ClHDoyXY =GJMY -----END PGP SIGNATURE----- --=-=-=--