Ian Flanigan wrote:
>
> I really need is a way to get the old and the new records so that I
> can find the birthday in the cache with the old record, then update to
> the new record.
>
> Does anyone know of a way to do this?

No, there's no way to do that.  It would be useful for other things, like
regenerating your mail aliases when that field changes.  Right now you need
to call (bbdb-define-all-aliases) by hand, which is a pain.

I think the right model would be something like a field-change-hook,
which would be called with the old and new values of a field (not a whole
record).  Depending on the application, you'd want either a pre-change
or a post-change hook, so there should be both.  It would also be useful for
the pre-change-hook to be able to alter or deny the data, perhaps by acting
as a filter - return either the new data or nil if the change should not
occur. 

Wow.  This sounds almost like... a database system of some kind.

-- 
Jamie Zawinski         [EMAIL PROTECTED]          http://mosaic.mcom.com/people/jwz/
``A unix signature isn't a return address, it's the ASCII equivalent of a black
  velvet clown painting.  It's a rectangle of carets surrounding a quote from a
  literary giant of weeniedom like Heinlein or Dr. Who.'' -- Chris Maeda



Reply via email to