Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: mc-expand-mail-abbrev
Date: Sun, 18 Sep 2005 12:42:51 +0200	[thread overview]
Message-ID: <v9hdci4pxw.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m3wtlf8roo.fsf@pigpen.waxrat.com>

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/




  reply	other threads:[~2005-09-18 10:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-10  1:12 mc-expand-mail-abbrev Michael Cook
2005-09-17 18:39 ` mc-expand-mail-abbrev Michael Cook
2005-09-18 10:42   ` Reiner Steib [this message]
2005-09-18 22:04     ` mc-expand-mail-abbrev Michael Cook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9hdci4pxw.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).