Lance A. Brown <[EMAIL PROTECTED]> writes:
> I would like to do some processing on a user defined notes field, but
> am having problems deriving code to do this.  Specifically I want to
> select records with a particular user-defined note field and apply a
> lisp function to each record.

(defun bbdb-notes-records (which string)
  "Display all entries in BBDB matching STRING in the named notes field."
  (let ((notes (cons which string)))
    (bbdb-search (bbdb-records) nil nil nil notes)))

I just stripped this from 'bbdb-notes in bbdb-com.el.  Note that you
need to use the 'let clause because bbdb-search is a macro.  That got
me for a while when I was writing something else once.

-- 
        Colin Rafferty, Lehman Brothers <[EMAIL PROTECTED]>
GCS d++(-) -p+(---) c++(++++) !l u++ e++ m-- s++/- n+ h-- f+ !g w+ t++@ r- y++
 PGP-keyID: C4A60B; fingerprint: 91FED077 BD5588B6 30B372D2 F9172162
                   Don't know what pgp is?  Ask me!

Reply via email to