On Tue, 28 Sep 2010 18:10:09 -0500
"Roland Winkler" <[email protected]> wrote:
> > When I try to add a new record using M-x bbdb-create, after filling
> > the fields in the minibuffer, I get the following error:
> >
> > bbdb-record-sortkey: Wrong type argument: arrayp, nil
> >
> > Am I doing something wrong ?
>
> ...I guess your BBDB database is still completely empty. In this
> case I get the same error message. (I never tested the new code
> under these conditions.) I'll send you another email once this
> problem is fixed on savannah.
Indeed it's empty. I get the following backtrace:
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
bbdb-record-cache(nil)
bbdb-record-sortkey(nil)
bbdb-insert-record-internal(["Nicolas" "Martyanoff" nil nil ("Intersec") nil
nil nil ((creation-date . "2010-09-29 05:57:25") (timestamp . "2010-09-29
05:57:25")) [nil nil "martyanoffnicolasintersec" #<marker in no buffer> nil]])
bbdb-change-record(["Nicolas" "Martyanoff" nil nil ("Intersec") nil nil nil
((creation-date . "2010-09-29 05:57:25") (timestamp . "2010-09-29 05:57:25"))
[nil nil "martyanoffnicolasintersec" #<marker in no buffer> nil]] t t)
bbdb-create(["Nicolas" "Martyanoff" nil nil ("Intersec") nil nil nil
((creation-date . "2010-09-29 05:57:25") (timestamp . "2010-09-29 05:57:25"))
[nil nil "martyanoffnicolasintersec" #<marker in no buffer> nil]])
call-interactively(bbdb-create t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
The problem seems to be in bbdb-insert-record-internal, when
calling car on bbdb-records which is nil. I fixed the problem;
I'm not sure if that's the better solution, but it works for me.
I created a git repository on github (http://github.com/galdor/bbdb)
and commited the patch.
Thank you for helping :)
Regards,
--
Nicolas Martyanoff
http://codemore.org
[email protected]
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
[email protected]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/