On Mon, Nov 07 2011, Eric Abrahamsen wrote: > Also: see `bbdb-completing-read-mails', it might be enough to replace > `message-read-from-minibuffer' with your own function that uses this.
Thanks! Redefinig `message-read-from-minibuffer' works well: --8<---------------cut here---------------start------------->8--- (defun message-read-from-minibuffer (prompt &optional initial-contents) (bbdb-completing-read-mails prompt initial-contents)) --8<---------------cut here---------------end--------------->8--- But it would be nicer, if this redefinition would be active only for some selected commands, such as `gnus-summary-resend-message', so I tried it with `defadvice', but it does not work: --8<---------------cut here---------------start------------->8--- (defadvice gnus-summary-resend-message (around resend-with-bbdb (address n) activate) "Resend message with bbdb address completion." (flet ((message-read-from-minibuffer (p &optional d) (bbdb-completing-read-mails p d))) ad-do-it)) --8<---------------cut here---------------end--------------->8--- There are no errors, but `bbdb-completing-read-mails' is not called... Why? TIA for any help, -- Peter ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/