The info node Basic Searching says:
You can list the contents of the database with the command
`M-x bbdb'. You will be prompted for a regular expression, and all
records which match that regexp in the name, company, network address,
or any notes fields will be displayed.
But when I try M-x bbdb <ret> john <ret> (for instance) I get the
error:
bbdb: cannot access the name field this way
A stack trace shows:
Signaling: (error "bbdb: cannot access the name field this way")
signal(error ("bbdb: cannot access the name field this way"))
error("bbdb: cannot access the %s field this way" name)
bbdb-record-getprop(["Doug" "Adamson" ("Douglas Adamson") nil (["office" 0 0 0
121]) nil ("[EMAIL PROTECTED]") ((creation-date . "2001-05-11") (timestamp .
"2001-05-22")) ["Doug Adamson" nil #<marker at 75 in .bbdb> nil]] name)
bbdb("john" nil)
call-interactively(bbdb)
execute-extended-command(nil)
call-interactively(execute-extended-command)
A look at the bbdb-record-getprop function shows:
;; this works on the 'company field as well.
(defun bbdb-record-getprop (record property)
(if (memq property '(name address addresses phone phones net aka AKA))
(error "bbdb: cannot access the %s field this way" property))
(if (eq property 'company)
(bbdb-record-company record)
(if (consp (bbdb-record-raw-notes record))
(cdr (assq property (bbdb-record-raw-notes record)))
(if (and (eq property 'notes)
(stringp (bbdb-record-raw-notes record)))
(bbdb-record-raw-notes record)
nil))))
It seems to me that the first if precludes using this function to find
by name or address, etc. I must admit that looking at the bbdb-search
macro is giving me a headache. ;-) Any clues?
Thanks,
--
Robert
_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/