I got this patch for adding records to bbdb inside w3 but it freaks
out when there is already a record in place. Is there a better way to
simply add a www field to an existing record?
Bill Perry gave me some code to try to guess the owner of a page from
the mailto: tag, I'll put it in place when I can get the first part to
work.
(defun bbdb-grab-www-homepage (record)
"Grab the current URL and store it in the bbdb database"
(interactive (list (bbdb-completing-read-record "Add WWW homepage for: ")))
;; ideally, try to figure out a username here
(if (null record)
((setq record (bbdb-read-new-record))
(bbdb-invoke-hook 'bbdb-create-hook record))
;; I don't get it.... what should go here?
nil)
(bbdb-insert-new-field "www" (w3-view-this-url t))
(bbdb-change-record record t)
(bbdb-display-records (list record)))
-Jon