From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dimitri Fontaine Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: Completing with anything Date: Mon, 21 Mar 2011 17:55:14 +0100 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 1300726537 4200 80.91.229.12 (21 Mar 2011 16:55:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 16:55:37 +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 Mon Mar 21 17:55:33 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 1Q1iOB-0004pF-CJ for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 17:55:32 +0100 Original-Received: from localhost ([127.0.0.1]:52752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1iOA-0006TP-GL for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 12:55:30 -0400 Original-Received: from [140.186.70.92] (port=46825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1iO3-0006QJ-J8 for emacs-devel@gnu.org; Mon, 21 Mar 2011 12:55:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1iO1-0002Wb-S0 for emacs-devel@gnu.org; Mon, 21 Mar 2011 12:55:23 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:55698 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1iO1-0002Vl-NV; Mon, 21 Mar 2011 12:55:21 -0400 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 34AAC5C235; Mon, 21 Mar 2011 17:55:19 +0100 (CET) Original-Received: from DimIMac.local (89-159-58-5.rev.dartybox.com [89.159.58.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 957355C15C; Mon, 21 Mar 2011 17:55:16 +0100 (CET) Original-Received: by DimIMac.local (Postfix, from userid 501) id 4B29D1C1E901; Mon, 21 Mar 2011 17:55:14 +0100 (CET) User-Mail-Address: dim@tapoueh.org In-Reply-To: (Stefan Monnier's message of "Mon, 21 Mar 2011 12:27:23 -0400") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (darwin) 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.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:137487 gmane.emacs.orgmode:39888 Archived-At: Stefan Monnier writes: > 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. That looks a lot like (info "(emacs) Mail Aliases"). In particular see mailabbrev.el and the functions mail-abbrev-insert-alias and mail-abbrev-complete-alias. Also (add-hook 'message-mode-hook 'mail-abbrevs-setup). Regards, -- dim