On Saturday, February 15, 2003 at 02:19:23, Dan Debertin wrote: > Hello, > > When using MH-E and setting bbdb/mail-auto-create-p to something > that isn't t (one of the hooks or nil), two successive invocations > of bbdb/mh-update-record (e.g., by pressing 'i' twice) will cause > the error "wrong type argument: arrayp, nil". > > Here's the backtrace: > #[(record) "<bytecode>" [record invalid 8 3 t] 2](nil) > mapc(#[(record) "<bytecode>" [record invalid 8 3 t] 2] (nil)) > bbdb-message-cache-lookup(11637628) > bbdb/mh-update-record(nil) > bbdb/mh-pop-up-bbdb-buffer(nil) > bbdb/mh-update-record() > run-hooks(mh-show-hook) > mh-show-msg(nil) > mh-show() > mh-inc-folder(nil) > call-interactively(mh-inc-folder) > > The problem seems to be that bbdb-encache-message doesn't check for > an empty record and caches it after the first call: > > ELISP> bbdb-message-cache > ((11637628 nil)) > > which causes the error to occur the second time. The fix: > > --- bbdb.el 2003-02-12 14:47:21.683889000 -0600 > +++ bbdb.el.new 2003-02-15 02:16:36.114025000 -0600 > @@ -2933,6 +2933,7 @@ > "Cache the BBDB-RECORDS for a message identified by MESSAGE-KEY > and > return them." > (and bbdb-message-caching-enabled > + (car bbdb-records) (add-to-list 'bbdb-message-cache (cons > message-key bbdb-records)) (notice-buffer-with-cache > (current-buffer))) > bbdb-records)
Your fix is in CVS now. Robert. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/