From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63922 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.gnus.general Subject: Re: How does one use ecomplete? Date: Wed, 01 Nov 2006 08:09:37 +0900 Message-ID: <874ptk13ri.fsf@catnip.gol.com> References: <87odrx6724.fsf@glaurung.internal.golden-gryphon.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162337070 32471 80.91.229.2 (31 Oct 2006 23:24:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 23:24:30 +0000 (UTC) Original-X-From: ding-owner+m12449@lists.math.uh.edu Wed Nov 01 00:24:25 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gf2y0-0006b3-Ah for ding-account@gmane.org; Wed, 01 Nov 2006 00:24:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Gf2x9-0000dA-00; Tue, 31 Oct 2006 17:23:31 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Gf2kK-0000d5-00 for ding@lists.math.uh.edu; Tue, 31 Oct 2006 17:10:16 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gf2kF-0005AX-U0 for ding@lists.math.uh.edu; Tue, 31 Oct 2006 17:10:16 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gf2k6-0004pD-00 for ; Wed, 01 Nov 2006 00:10:02 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gf2jx-0003mY-Ep for ding@gnus.org; Wed, 01 Nov 2006 00:09:53 +0100 Original-Received: from 203-216-96-133.dsl.gol.ne.jp ([203.216.96.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Nov 2006 00:09:53 +0100 Original-Received: from miles by 203-216-96-133.dsl.gol.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Nov 2006 00:09:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203-216-96-133.dsl.gol.ne.jp System-Type: i686-pc-linux-gnu Cancel-Lock: sha1:8o5GsMHTrIn/aWwsxGKBgcIhcIw= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63922 Archived-At: Katsumi Yamaoka writes: > Well, I don't know how I use TAB for ecomplete (it might be > because I don't use message-x). I use neither EUDC nor BBDB, > but use mail-abbrevs[1] (of which database is ~/.mailrc) and TAB in message-mode is bound to `message-tab', which for a To: header by default ends up calling `message-expand-name'. I think maybe message-expand-name should complete mail aliases (e.g., by calling `mail-complete'), but it doesn't. This is it's current definition: (defun message-expand-name () (if (fboundp 'bbdb-complete-name) (bbdb-complete-name) (expand-abbrev))) Changing it to: (defun message-expand-name () (if (fboundp 'bbdb-complete-name) (bbdb-complete-name) (and (mail-complete nil) (expand-abbrev)))) Seems to make it work more naturally for me, but I don't know if it's really the right thing to do... The "(and (mail-complete nil) (expand-abbrev))" makes it call expand-abbrev if the preceeding word is a valid alias and was not expanded by mail-complete -- so hitting TAB once on a unique prefix of some alias will complete it to the full alias name, and hitting TAB again (or any other abbrev-expanding key) will then actually expand that alias. This seems pretty reasonable behavior to me. -Miles -- Americans are broad-minded people. They'll accept the fact that a person can be an alcoholic, a dope fiend, a wife beater, and even a newspaperman, but if a man doesn't drive, there is something wrong with him. -- Art Buchwald