From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou Subject: Re: 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> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: In-Reply-To: (Julien Danjou's message of "Mon, 21 Mar 2011 16:54:58 +0100") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 To: Stefan Monnier Cc: Tassilo Horn , emacs-orgmode@gnu.org, emacs-devel@gnu.org List-Id: emacs-orgmode.gnu.org --=-=-= 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----- --=-=-=--