[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small change to message-tab to allow completion of mail aliases
From: |
Stephen Eglen |
Subject: |
Small change to message-tab to allow completion of mail aliases |
Date: |
Thu, 29 May 2008 18:28:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Would it be worth making the following small change to
message-expand-name, so that TAB on a To: field will allow for
completion of mail aliases, rather than just expansion of complete mail
aliases. All that has changed is expand-abbrev has been changed to
mail-abbrev-complete-alias
(e.g. if you have the alias "moderator", and no other alias starting
"mo", then "mo TAB" would complete to moderator)
(defun message-expand-name ()
(cond ((and (memq 'eudc message-expand-name-databases)
(boundp 'eudc-protocol)
eudc-protocol)
(eudc-expand-inline))
((and (memq 'bbdb message-expand-name-databases)
(fboundp 'bbdb-complete-name))
(bbdb-complete-name))
(t
(mail-abbrev-complete-alias))))
;;(expand-abbrev))))
Stephen
(emacs-version)
"GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.10.4)
of 2008-04-24 on notch.damtp.cam.ac.uk"
(gnus-version)
"Gnus v5.13"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Small change to message-tab to allow completion of mail aliases,
Stephen Eglen <=