hi patrick, this problem bothered me also for a while. you could advise flyspell-auto-correct-word:
(defadvice flyspell-auto-correct-word (around rather-bbdb-complete-name activate) (when (and (interactive-p) (eq major-mode 'message-mode) (<= (point) (mail-header-end))) (bbdb-complete-name))) this advice is a little crude. you probably want to auto-correct words in the field 'subject' ... tomy "Patrick Finerty Jr." <[EMAIL PROTECTED]> writes: > Hi Folks, > > I just tried to get flyspell working in my mail composition buffer but > noticed that it subsumes the M-TAB key for spelling purposes. As we > know, M-TAB is usually how BBDB name completion is done in the mail > composition buffer. > > I found a snippet of code on usenet but it failed to rectify this > problem. If anyone has a solution to this problem, I would love to > hear it. Ideally M-TAB would still work for both BBDB and flyspell but > would depend on if I was in the message header (where M-TAB should do > the BBDB name completion) or the message section (where M-TAB should > do spelling correction). > > Cheers, > > patrick > -- no signature ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/