I'm using the prerelease version of the BBDB package, XEmacs
package
version 1.18.
I was in a Summary buffer in Oort Gnus 0.06. I typed ";" to add the
current sender to the BBDB, and I got this backtrace:
....
XEmacs 21.1.14 "Cuyahoga Valley" configured for
`i686-pc-linux'.
Just to confirm that there isn't something bizarre in my setup that is
triggering this error, I am able to invoke the problem with the
following:
* Move your ~/.bbdb off to the side
* Invoke xemacs -vanilla
* Run M-x bbdb RET and press RET when it asks you for a regexp
* Run M-x toggle-debug-on-error RET
* In the *scratch* buffer, evaluate
(bbdb-update-records '((recipients "To" ("foo(a)bar.com"))) nil
t)
* Press y to confirm you want to add this record to the BBDB
* See the backtrace:
Signaling: (void-function bbdb-event-to-character)
bbdb-event-to-character(#<keypress-event y>)
bbdb-prompt-for-create()
apply(bbdb-prompt-for-create nil)
bbdb-invoke-hook-for-value(bbdb-prompt-for-create)
bbdb-annotate-message-sender(("foo(a)REMOVEME.bar.com") t t
bbdb-prompt-for-create)
byte-code("..." [bbdb-update-records-mode processed-addresses matches
rest-of-nets done records annotating bbdb-annotate-message-sender t bbdb-prompt-for-create
searching "^" regexp-quote "$" nil 6 string-match "" quit 0
5 format "Hit C-g to stop BBDB from %s. %d of %d addresses processed." featurep
xemacs bbdb-display-message progress message sit-for net record mess bbdb-address
bbdb-case-fold-search offer-to-create auto-create-p bbdb-records case-fold-search hits
bbdb-silent-running bbdb-gag-messages bbdb-offer-to-create addrslen] 6)
bbdb-update-records(((recipients "To" ("foo(a)REMOVEME.bar.com"))) nil
t)
eval((bbdb-update-records (quote (...)) nil t))
eval-interactive((bbdb-update-records (quote (...)) nil t))
eval-last-sexp(t)
#<compiled-function nil "...(20)" [standard-output terpri eval-last-sexp t]
2 904467 nil>()
call-interactively(eval-print-last-sexp)
The problem seems to be that in bbdb-com.el bbdb-event-to-character is
being fset to event-to-character in an eval-when-compile form. That
form is not evaluated when the bbdb-com.elc file is loaded, so
bbdb-event-to-character is a void function.
I guess this is more of a BBDB problem, but it seems serious enough
IMO that v1.18 of the XEmacs BBDB package should not be released.
-Mark