From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60967 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: mc-expand-mail-abbrev Date: Sun, 18 Sep 2005 12:42:51 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1127049405 8013 80.91.229.2 (18 Sep 2005 13:16:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2005 13:16:45 +0000 (UTC) Original-X-From: ding-owner+m9499@lists.math.uh.edu Sun Sep 18 15:16:42 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGz1M-0006Rw-WC for ding-account@gmane.org; Sun, 18 Sep 2005 15:15:53 +0200 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 1EGz1D-0007kJ-00; Sun, 18 Sep 2005 08:15:43 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EGyvW-0007kE-00 for ding@lists.math.uh.edu; Sun, 18 Sep 2005 08:09:50 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EGyvP-0006ei-If for ding@lists.math.uh.edu; Sun, 18 Sep 2005 08:09:50 -0500 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 1EGyvN-0007FJ-00 for ; Sun, 18 Sep 2005 15:09:41 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EGyuG-00057P-IU for ding@gnus.org; Sun, 18 Sep 2005 15:08:32 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Sep 2005 15:08:32 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Sep 2005 15:08:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od On Sat, Sep 17 2005, Michael Cook wrote: >> when using S D r (gnus-summary-resend-message), it'd be nice to be >> able to expand mail aliases and to complete via bbdb. ACK >> so, i took a stab at it. i think my solution is not quite right >> yet, but it seems to be close. any thoughts? [...] > (defun mc-expand-mail-abbrev (arg) > "Expand the mail abbreviation before point." > (interactive "P") > ;; See what is between point and the preceding newline, colon or comma. > ;; If it's a single word, then attempt to expand it using "mail-abbrev". [...] > ;; Now try BBDB completion. > (bbdb-complete-name arg)) > (define-key minibuffer-local-map "\M-," 'mc-expand-mail-abbrev) > (define-key message-mode-map "\M-," 'mc-expand-mail-abbrev) Wouldn't it be better to hook `message-expand-name' into `message-minibuffer-local-map'? See `message-read-from-minibuffer'. (I didn't try, so maybe this is nonsense.) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/