On Sun Oct 6 2013 Gijs Hillenius wrote:
> ,----
> | (defun bbdb/pgp-get-pgp (name address)
> |   "Look up user NAME and ADDRESS in BBDB and return the PGP preference."
> |   (let* ((record (bbdb-search-simple name address))
> |      (pgp (and record
> |            (bbdb-record-getprop record bbdb/pgp-field))))
> |     pgp))
> `----
> 
> 
> bbdb-search-simple (from Bbdb version 2) can be replaced by
> bbdb-message-search (from Bbdb version 3).

Correct.

> but I have not figured out how to replace bbdb-record-getprop
> 
> I've tried replacing it with bbdb-record-field and, when that failed,
> tried bbdb-record-xfield (both from Bbdb version 3). 
> 
> The problem seems to be that where bbdb-record-getprop returns the desired
> value stored the .bbdb, both bbdb-record-field and bbdb-record-xfield
> return "nil".

That's strange.  bbdb-record-field should work here.  Do the records
you are trying to use have custom fields (aka "xfields") with a key
corresponding to the value of bbdb/pgp-field?

Roland

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to