From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: Completing with anything Date: Mon, 21 Mar 2011 12:27:23 -0400 Message-ID: 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 X-Trace: dough.gmane.org 1300724863 25755 80.91.229.12 (21 Mar 2011 16:27:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 16:27:43 +0000 (UTC) Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 17:27:39 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 1Q1hxC-0007PV-15 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 17:27:38 +0100 Original-Received: from localhost ([127.0.0.1]:37238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1hxA-0002io-Tv for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 12:27:37 -0400 Original-Received: from [140.186.70.92] (port=55669 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1hx2-0002Zj-4o for emacs-devel@gnu.org; Mon, 21 Mar 2011 12:27:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1hwz-000394-GR for emacs-devel@gnu.org; Mon, 21 Mar 2011 12:27:26 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:5085 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1hwz-00038q-8l; Mon, 21 Mar 2011 12:27:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKoZh01Ld/X5/2dsb2JhbACldHiITbhZhWMElWk X-IronPort-AV: E=Sophos;i="4.63,220,1299474000"; d="scan'208";a="97425744" Original-Received: from 75-119-245-249.dsl.teksavvy.com (HELO pastel.home) ([75.119.245.249]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Mar 2011 12:27:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B4B18590B0; Mon, 21 Mar 2011 12:27:23 -0400 (EDT) In-Reply-To: (Julien Danjou's message of "Mon, 21 Mar 2011 14:36:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:137484 gmane.emacs.orgmode:39886 Archived-At: > What I'd like to do is that if the user enters: > doc > is that it can be completed to > "Emmett Brown " In a BBDB discussion, I suggested to complete the above to "Emmett Brown \"doc\" ", but it's true that you may prefer to keep the nickname private. In that case it's really not a completion (tho the completion code may help you complete "do" to "doc" as a first step). As Tassilo mentions, maybe we could have a post-completion step that can perform some kind of expansion/replacement/cleanup once a valid completion is selected. I'm not sure what that would look like in terms of code and API, but if someone wants to try it out a propose a patch to start a discussion, maybe we could add such a thing. Stefan