Re: Why V3 (Was: Re: Fwd: BBDB development shifted from sourceforge to savannah)

2012-08-11 Thread Roland Winkler
On Sat Aug 11 2012 Sriram Karra wrote:
 Further, throwing them away could just be stashing the fields
 into the notes list.

Certainly. But if you then decide to give v3 a second try, you will
not get back what you had before.

 Just for the record, can you tell us about all the changes in the
 file format? I know:
 
 - a new field called affix now appears as the third field of the record
 - organizations is a list instead of a ';' delimited string.

The above is correct.

Also, there is one Notes field in each record which usually holds
the list of note fields, which in turn are cons pairs (KEY . VALUE).
Some pieces of BBDB v2 also allowed the Notes field to be a single
string, instead of the list of cons pairs. I do not know whether
this was just a historical thing left over in the code, or whether
this was still a fully supported feature. V3 definitely relies on
having a list of cons pairs (KEY . VALUE) in the Notes field and
bbdb-migrate converts a single Notes string accordingly. Obviously,
going back to a Notes field with a single string would break pretty
much everything.

For the other things, someone could write a function bbdb-unmigrate
to go back to v2 and post it here.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: autoloading failed to define function bbdb-define-all-aliases

2012-08-11 Thread Julien Cubizolles
Roland Winkler wink...@gnu.org writes:


  What are TAB 
 
 bound to message-tab
 
  or C-TAB bound to?
 
 bound to bbdb-complete-mail

 bbdb-complete-mail was never supposed to expand aliases. I believe
 message-tab doesn't do it either. In mail mode I have TAB bound to
 indent-for-tab-command, which I believe is the generic binding for
 TAB in text modes. That expands (any) aliases for me, just like SPC.

I just checked and SPC *does* the expansion I was expecting. I'm not
sure anymore if TAB was doing it with bbdb-2.36 but I'm happy with SPC
as long as I get this feature back. 

Thanks a lot for the time you spent answering my questions regarding
this particular point.

Julien.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Add some BBDB tests

2012-08-11 Thread Leo
On 2012-08-11 00:30 +0800, Roland Winkler wrote:
 On Sat Aug 11 2012 Leo wrote:
 A few weeks ago I upgraded to BBDB git head and experienced some odd
 behaviours that I have to revert to my last working copy which is some
 months old.

 Certainly it would be good if you could post here if anything
 appears to be a true regression.

I'll do so next round.

 BBDB2 has some nice tests to ensure regression doesn't happen as
 often. Would that be a good idea for bbdb3?

 I guess in principle yes - yet setting up such a test suite and
 making sure that it does what it is supposed to do, is by itself a
 significant project, even if there was such a thing for BBDB2.

There were quite some tests in BBDB2. I remembered running them and only
two failures.

 I think it happens for good reasons that the GNU Emacs project (and
 most of its subprojects I am aware of) does not have such test
 suites. There is not enough manpower available to make such a thing
 work effectively.

Emacs maintainers have been fixing same bugs every once in a while so
they have learnt the lesson and started using regression tests. See
test/ in emacs source tree.

BTW,

(bbdb-defstruct record
  firstname lastname affix aka organization phone address mail notes cache)

We should rename `notes' in the above to `ext' (for extensions). `notes'
and `note' are both used in the BBDB and they confuse me every time.

Leo


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/