> * Sam Steingold <f...@tah.bet> [2011-12-27 13:19:50 -0500]:
>
>>> 2. I want to avoid putting the email uid into the first name slot.
>>>    I.e., when creating a record for "f...@bar.com", I want the names to
>>>    be void, not "foo" "".
>>>    As a first step, I tried to find all such records I have:
>>>
>>> (defun address-name (address)
>>>   (if (string-match "@" address)
>>>       (substring address 0 (match-beginning 0))
>>>       address))
>>>
>>> (with-current-buffer (find-file-noselect bbdb-file)
>>>   (dolist (rec bbdb-records)
>>>     (when (and (equal (bbdb-record-lastname rec) "")
>>>                (find (bbdb-record-firstname rec) (bbdb-record-mail rec)
>>>                      :key 'address-name :test 'equal))
>>>       (print rec))))
>>>
>>>    Now, my question is: how do I modify these records?
>>>
>>>       (setf (bbdb-record-lastname rec) nil
>>>             (bbdb-record-firstname rec) nil)
>>>
>>>   does not work.
>>>   Thanks.
>>
>> The setters are:
>>
>> bbdb-record-set-lastname
>> bbdb-record-set-firstname
>
> Will using them propagate to bbdb-file when I do bbdb-save?
> Presumably, yes, I am just trying to make sure...

nope.
so, how do transfer the changes effected by bbdb-record-set-firstname et
al into the bbdb-file?

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://ffii.org http://memri.org http://honestreporting.com
http://thereligionofpeace.com http://www.memritv.org http://palestinefacts.org
We are born naked, wet, and hungry.  Then things get worse.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to