Uwe Brauer wrote: > The following primitive hack adds a www address to my bbdb
> (defun my-bbdb-add-www () ...) > Does anybody have an idea about a cleaner solution? You really shouldn't use knowledge of the format of the .bbdb file to do this. A better solution might be based along the lines of how bbdb-ftp.el works. This is the main entry point: (defun bbdb-create-ftp-site (record) "Add a new ftp-site entry to the bbdb database; prompts for all relevant info using the echo area, inserts the new record in the db, sorted alphabetically." (interactive (list (bbdb-read-new-ftp-site-record))) (bbdb-invoke-hook 'bbdb-create-hook record) (bbdb-change-record record t) (bbdb-display-records (list record))) The function `bbdb-read-new-ftp-site-record' generates a valid bbdb record, while `bbdb-create-ftp-site' inserts it into the database. -- Colin ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/