On my mail machine I replaced a lot of packages, including bringing
emacs to 22.3 from 22.1.  This morning I started up gnus (head from gnus
cvs) and bbdb threw errors and left my .bbdb munged.  I had recent
compiled elisp of gnus (but from 22.1) and compiled elisp of ancient cvs
bbdb from I'm not sure when.  So, I went to get up to date, found the
new repo, checked out the latest bbdb and built it.

The problem was that in the .bbdb buffer after trying to do any bbdb ops
I'd have an extra ( at beginning of the file and ) at end, instead of
the single pair I am used to, and the buffer was marked modified.

I suspected a bbdb-needs-code-change-for-22.3 bug, I didn't find
evidence of anyone else having this problem.

So, I found a backup of .bbdb, and diffed it with my current file.  The
backup did not have the problem.  I then did binary search applying the
hunks, and found this one that caused bbdb to blow up with the extra ():

(M-% of real name to John Doe, but otherwise accurate)

@@ -783 +783 @@
-["John USNUNK" "Doe" nil nil nil nil ("[EMAIL PROTECTED]") ((creation-date . 
"2004-12-15") (timestamp . "2004-12-15")) nil]
+["John USNUNK" "Doe" nil nil nil nil ("[EMAIL PROTECTED]") ((creation-date . 
"2004-12-15G) (timestamp . "2004-12-15")) nil]

So obviously something wrote G over " somehow, and it could have been
me.  I'm not sure if bbdb really should be able to protect against this
sort of malformed s-expression, but it seems that it shouldn't modify
the buffer in such cases.

I'm posting in case someone else has similar lossage.

Attachment: pgp4Fd9xnnRep.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to