Re: bbdb3
Rob Walker <[email protected]> Sat, 10 Feb 2018 21:54:35 -0800
| Newsgroups | gmane.mail.wanderlust.general |
|---|---|
| Message-ID | <84zi4gxe90.wl-rob__21966.7247533382$1518328484$gmane$org@ladle.net> |
Randy,
List,
I also have the goal of getting BBDB + WL to be as awesome as I know
it can be.
I think I know why you are getting this error:
> > Error occured in running wl-message-redisplay-hook, (BBDB: MUA ‘mime-view-mode’ not supported)
Please look in your ~/.emacs.d/elpa/bbdb-*/bbdb-mua.el file for a
constant.
(defconst bbdb-mua-mode-alist
...
(wl wl-summary-mode wl-draft-mode)
Correct?
Well, the problem is that when we read emails with WL, we are in
mime-view-mode, so BBDB cannot handle that. Here is where my defconst
ended up going.
(defconst bbdb-mua-mode-alist
'(
(wl wl-summary-mode wl-draft-mode mime-view-mode)
(vm vm-mode vm-virtual-mode vm-summary-mode vm-presentation-mode)
(gnus gnus-summary-mode gnus-article-mode gnus-tree-mode)
(rmail rmail-mode rmail-summary-mode)
(mh mhe-mode mhe-summary-mode mh-folder-mode)
(mu4e mu4e-view-mode) ; Tackle `mu4e-headers-mode' later
(message message-mode mu4e-compose-mode notmuch-message-mode)
(mail mail-mode)
)
"Alist of MUA modes supported by BBDB.
Each element is of the form (MUA MODE MODE ...), where MODEs are used by MUA.")
You can see that I moved 'wl' to the top of it, because it makes
single stepping through the emacs elisp debugger faster if this
evaluates sooner, rather than later.
It has been a while since I was working on this, but I think I was
getting pretty close at one point.
I'd be glad to work more with you on this. Feel free to contact me
off-list.
Thanks,
Rob
On Sat, 03 Feb 2018 16:51:11 -0800,
Randy Bush wrote:
>
> >> have bbdb3 installed, easy peasy, using package, thanks ken.
> >>
> >> but my old bbdb2 elisp is completely monstrous, cruft of decades and i
> >> do not know what 10% of it does.
> >>
> >> on a new machine, i need something simple to
> >> save-the-from-address-in-this-message and tab completion when composing.
> >
> > emacswiki, https://www.emacswiki.org/emacs/BBDBV3-Wl, tempts me with
> >
> > when you read an e-mail you find a new buffer below with the
> > sender’s information in the BBDB. If the sender’s information
> > doesn’t exists in the database, it will request if you like to add
> > it.
> >
> > but when i read a message, i get
> >
> > Error occured in running wl-message-redisplay-hook, (BBDB: MUA ‘mime-view-mode’ not supported)
> >
> > this is what i have for bbdb3 in .wl
> >
> > (setq bbdb-file "~/.bbdb")
> > (require 'bbdb)
> > (bbdb-initialize 'wl)
> > (bbdb-mua-auto-update-init 'wl)
> > (setq bbdb-update-records-p 'create)
> > (setq bbdb-pop-up-window-size 5)
>
> you have entered a dark room. you have waited a week and still no one
> else is there. as far as you can tell from the echoes, no one else has
> ever been there. you feel very lonely. you wonder if you should leave
> and go back to the other room.
>
> randy
>