On Wednesday, June 25, 2008 at 09:24:30, Tom Shannon wrote:
> So I'm looking at the structure of the bbdb database and I have a
> couple questions.
>
> 1) The very last field (the ninth) is always nil.  What is this
>    field used for?
> 2) I've been adding notes fields and have accumulated quite a few.
> Wold it damage the database to add extra fields to the database
> after the notes field for my own use?  I suppose I could just try it
> myself but there may be subtle, untoward effects that I wouldn't
> immediately notice (poor sorting, poor performance, etc...)

It (field/slot 9) is used for caching at runtime but it is
not written to the file.

See the comment in `bbdb-insert-record-internal' and the
definition of the record slot access function in bbdb.el.

,----[ This defines macros for accessing the fields/slots of the record ]
| (bbdb-defstruct bbdb-record-
|   firstname lastname aka company
|   phones addresses net raw-notes
|   cache
|   )
`----

IMHO it is best to us the existing mechanism for user
defined fields.  Otherwise you might also need to care
for correct record creation in other parts of the code.

Robert

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to