0> In article <20091012072551.m72...@porzhiz.org>,
0> 白い熊 <URL:mailto:bbdb-info_lists.sourceforge....@sumou.com> ("白い熊") wrote:

白い熊> I want to be able in BBDB to get the phone number that the point
白い熊> is on currently. I.e., let's say that there is a record in BBDB
白い熊> which has three phone numbers. With:
白い熊> 
白い熊> (bbdb-record-phones (bbdb-current-record))
白い熊> 
白い熊> I get:
白い熊> 
白い熊> (["ロシアの携帯" "+xxxxxxxxxxx"] ["チェコの携帯" "+xx-xxx-xxx"] ["チェコの携帯" 
"+xx-xxx-xxxx"])
白い熊> 
白い熊> and the cursor is currently on the second line, i.e. the middle
白い熊> entry. How do I get just the second phone record's phone value?
白い熊> Better still, stripped of the leading + and any '-' and spaces
白い熊> in it?  I'm just learning elisp, so it's very hard for me?  I'm
白い熊> exporimenting, but so far haven't figured out how to get the
白い熊> value...

(bbdb-current-field) should give you something like (phone ["チェコの携
帯" "+xx-xxx-xxx"]), from which you can first check that you're on a
'phone' field, and secondly extract the location and number.  You'll
have to strip out the punctuation yourself, but that's a very simple
task.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to