Leo <sdl....@gmail.com> writes:

> On 2011-04-04 10:31 +0800, Matt Lundin wrote:
>>> When my updates of BBDB were in a pre-alpha stage and I did not yet
>>> have a detailed roadmap where they would take me, I thought that
>>> there was really not much of a point trying to continuously (at each
>>> intermediate stage) preserve backward compatibility when it would
>>> have been possible.
>>
>> I appreciate all the work you have done to freshen up bbdb!
>>
>> I, too, have some reservations about the extent of some of the name
>> changes. For instance, the new bbdb breaks org-mode's bbdb module, which
>> is part of GNU Emacs.
>
> I personally think it would be far more productive to worry about
> backward compatibility later on. For example, we could add a new
> org-bbdb3 module to org mode and leave the old as it is.

First, let me thank Roland again for the new bbdb; it is a great
improvement, and the code has been cleaned up a lot!

I do think it can be productive right now, while development is moving
quickly, to ask whether some of the changes, such as reversing the
parameters of bbdb-split, are necessary, since they are easier to fix
now than they will be later. I imagine "later on" is relative to when
the bbdb 3.x series will be officially released. I just joined this
list, so I am not yet aware of a development roadmap.

In the meantime, if anyone is interested, I found that the following
hacks help to make org-bbdb.el work with the new bbdb:

--8<---------------cut here---------------start------------->8---
(defalias 'bbdb-company 'bbdb-search-organization)
(defalias 'bbdb-name 'bbdb-search-name)

(defun bbdb-record-getprop (record label)
  (and (eq label 'company)
       (setq label 'organization))
  (if (memq label '(name degree organization address phone mail aka))
    (funcall
     (intern 
      (concat "bbdb-record-" (symbol-name label))) 
     record)
    (bbdb-record-note record label)))

(defadvice bbdb-split (around my-bbdb-split activate)
  (when (or (string= string "\n") (string= string "-"))
    (let ((sep string))
      (setq string separator
            separator sep)))
  ad-do-it)
--8<---------------cut here---------------end--------------->8---

Best,
Matt


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to