On Tue Dec 3 2013 Vincent Geddes wrote: > One idea would be for `bbdb-create-internal' to accept an `nil' > name as long as either the org, mail, phone, address, or other > important xfields are passed. let me know what you think,
Actually, I do not know whether I want to advertise at all the usage of bbdb-create-internal. I think it is really just a left-over from bbdb 2, which (to the best of my knowledge) was not used then either. This function promises to perform "a fair amount of error-checking on the passed in values, so it is safe to call this from other programs." But when is this really helpful? I cannot imagine any reasonably clean code calling this function that would need such a feature and benefit from it. I suggest instead the following: Start with (copied from bbdb-snarf) (let ((record (make-vector bbdb-record-length nil))) (bbdb-record-set-cache record (make-vector bbdb-cache-length nil)) Then call bbdb-record-set-field on the fields you want to populate. (Even the optional arg CHECK of bbdb-record-set-field should really be needed only during code development.) Indeed: as bbdb-create-internal does not call bbdb-record-set-field this is really bogus anyway. I think I'll remove bbdb-create-internal from BBDB 3, unless someone else comes up with really strong arguments to keep it. > Also, does the `affix' field in a bbdb record refer to both > prefixes and suffixes for a name, or just suffixes? I'm working on > adding support for bbdb affixes too. So far, the affix field in BBDB 3 does not have a detailed meaning. Its value is a list of strings. So I guess it can stand for all kinds of prefixes, suffixes, academic titles, and what else. But depending on a user's cultural background, the details may vary quite a bit what he or she wants to store in this field and I don't know whether it would make much sense if BBDB tried to establish some universal rules here. I don't know how vcards handle such things. Is it possible to map vcard affixes (one to one) on some general list of affixes as used by BBDB? Roland ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/