"Roland Winkler" <roland.wink...@physik.uni-erlangen.de> writes:

>> Where did you put the defun of bbdb-record-notes ? It's gone from
>> bbdb.el, yet is still used by bbdb-record-note etc.
>
> The old BBDB distinguished between "notes" and "raw-notes". This
> distinction does not exist anymore in my code. So bbdb-record-notes
> is directly defined by the macro bbdb-defstruct.

Hi Roland:

I'm not an advanced coder in Elisp, but I'm trying. I've put together,
through intense trial and error, the bbdb-nokia-n900.el package:
http://sumoudou.org/%E7%9B%B8%E6%92%B2%E5%A4%96%EF%BC%9AMake%20phonecalls%20and%20send%20SMSes%20from%20GNU%20Emacs.html
which interfaces to the old version of BBDB, prior to your changes.

It is used to make calls and send SMSes from BBDB on a Nokia N900 GNU
mobile phone.

I'd like to update it to interface to your version, but am having
problems. You seem to be well-versed in Elisp, could you help me bring
it up to date?

The bbdb-nokia-n900 still works with your BBDB, in so far as it makes
calls and sends SMSes (haven't tried the SMS, but assume it does) it
gets stuck at the end of the bbdb-nokia-n900-call function where it is
written to automatically add the date, time, number called etc. info to
the beginning of the BBDB contact's note field, I get arrayp errors
etc. which I can't fix.

Specifically, I thought within the function, changing the part:

          (bbdb-record-putprop bbdb-record
                               'contact
                               (concat date " " start-time " - " end-time ": 
Phone call: " name  "\n"
                                       (or (bbdb-record-getprop bbdb-record 
'contact)))))

to:

          (bbdb-record-set-note bbdb-record
                               'contact
                               (concat date " " start-time " - " end-time ": 
Phone call: " name  "\n"
                                       (or (bbdb-record-note bbdb-record 
'contact)))))

would do the trick, and similarly so for the SMS sending function, but I
fail.

Basically I need to properly retrieve the note part of the contact's
record, concat it to the call time, date etc. and write it back.

Could you or any other programming wiz tell me how to do this?

Thanks a lot.
-- 
JJ

------------------------------------------------------------------------------

_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to