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: Sat, 09 Apr 2011 17:11:14 +0200 Message-ID: <87y63jpii5.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> 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 1302361903 26054 80.91.229.12 (9 Apr 2011 15:11:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2011 15:11:43 +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 Sat Apr 09 17:11:38 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 1Q8Zp3-0000Eu-RB for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2011 17:11:38 +0200 Original-Received: from localhost ([127.0.0.1]:49391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Zp3-0007rO-6A for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2011 11:11:37 -0400 Original-Received: from [140.186.70.92] (port=38094 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Zox-0007rD-TJ for emacs-devel@gnu.org; Sat, 09 Apr 2011 11:11:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8Zow-0007ZP-LT for emacs-devel@gnu.org; Sat, 09 Apr 2011 11:11:31 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:34885 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8Zow-0007YV-Cg; Sat, 09 Apr 2011 11:11:30 -0400 Original-Received: from keller.adm.naquadah.org (unknown [62.160.23.122]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 2ECC85C1A6; Sat, 9 Apr 2011 17:11:28 +0200 (CEST) Mail-Followup-To: Stefan Monnier , Tassilo Horn , emacs-orgmode@gnu.org, emacs-devel@gnu.org In-Reply-To: (Julien Danjou's message of "Mon, 21 Mar 2011 16:54:58 +0100") User-Agent: Gnus/5.110016 (No Gnus v0.16) 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.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:138328 gmane.emacs.orgmode:40734 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Mar 21 2011, Julien Danjou wrote: > I see, that makes sense. I think that completion is not what I want to > use as Tassilo suggested. I've been that way just because this is what > is used in `message.el'. Maybe it requires a change too to turn towards > an `abbrev' use. :) Actually, it does not require any change, but there is an issue I'm not sure how to resolve. On , message-mode calls `completion-at-point-function', which calls first my `org-contacts-message-complete-function' and then `message-completion-function'. If you type someone's nickname, `org-contacts-message-complete-function' will not return any match. So I hacked it to return only the nickname, like 'j' would return 'jd'. Then, using the abbrev table, I manage to make jd expand to my name+email but I have to press space. If I press , the completion kicks in, and re-complete 'jd' to 'jd', and `expand-abbrev' is never called. I need to press 'space', which is not very handy. It seems that completion and abbrev are (too much) orthogonal: you cannot easily complete an item from the abbrev table using completion. So now, I wonder: wouldn't it be a good idea to add a call to `expand-abbrev' just after `completion-at-point' is being called? =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) iQIcBAEBAgAGBQJNoHcSAAoJEGEbqVCLeKXCT/8P/RXlhENkzvM0/d4Xbqc7u5RS jf2kb8ROAcccEgvs9fIj8vDh+0AEnkXJSlk9D7mH7x2oST6Rlf9wsd6jD8kLG6eM d1iqWdhxYERRQerSygyeToGP1YIBgnqV7EI0jc8setvzIy4lCOT+gAnDaiDS5DCF lR14tlzDc5yikeivbKv80ophIufAnKOYEkROIYrIyRxEjU9gjwyOozhOyqIUYw+3 NWkYicBrzNgncJ7EE/+crufRdh3QWCYdhBRO1QJrLxY651dekbRBzcR0eoMnHZ1y s9ReqYEeHgoPYZ/1CNV9vgehYw9Y7dkJmtksZS4yxn+RjKRsVesWHnL6RRIFZFX4 MJKOLZZx27nm7dh3XJwkmVQUou7IQ5QEhz5JNrZbTjvco8JgKSgVBX6fD7oWkA0v 7BahA7AXxxYHRblmTQa6OHcDFF0A2c5XahOCPWoWV4Lak/14uxJ4y8j/Nb/ARoPK xoyQdh6MTWWwShPgf1ncoSeVr94/9F2RaJ3bD1djyjvXTGtBAkxVxbNcvydXu7+T 8YxjSeWW7Y9MqLxcNXglyQllw7s0/RqswwjAe4AXS/2TV3Z5jec7Ri0nrXKjrDxN ea7Bjjs0dnhgei15Uj9CmrpM8GrwW+MHwynHlfB3cMtNy+0i3PyEC85BBGknBz2l TUUmUwS+RnTk5iGztsuV =BP3/ -----END PGP SIGNATURE----- --=-=-=--