Re: bbdb-record-set-field, strings, and 'eq

2015-03-11 Thread Eric Abrahamsen
"Roland Winkler" writes: > On Wed Mar 11 2015 Eric Abrahamsen wrote: >> For this issue, this patch ought to do it. > > The optional arg COMPARE-FN of add-to-list defaults to equal. So it does! Here's another. >From 49be4b2f1e22075eb41c29a6e9e3e37fe23dc255 Mon Sep 17 00:00:00 2001 From: Eric Abr

Re: bbdb-record-set-field, strings, and 'eq

2015-03-11 Thread Roland Winkler
On Wed Mar 11 2015 Eric Abrahamsen wrote: > For this issue, this patch ought to do it. The optional arg COMPARE-FN of add-to-list defaults to equal. Roland -- Dive into the World of Parallel Programming The Go Parallel W

Re: bbdb-record-set-field, strings, and 'eq

2015-03-11 Thread Eric Abrahamsen
Eric Abrahamsen writes: > "Roland Winkler" writes: > >> On Tue Mar 10 2015 Eric Abrahamsen wrote: >>> When `bbdb-record-set-field' is setting a phone or address field, it >>> adds the new label to the list of existing labels like this: >>> >>> (add-to-list 'bbdb-phone-label-list (bbdb-phone-lab

Re: bbdb-record-set-field, strings, and 'eq

2015-03-10 Thread Eric Abrahamsen
"Roland Winkler" writes: > On Tue Mar 10 2015 Eric Abrahamsen wrote: >> When `bbdb-record-set-field' is setting a phone or address field, it >> adds the new label to the list of existing labels like this: >> >> (add-to-list 'bbdb-phone-label-list (bbdb-phone-label phone) nil 'eq) >> >> The labe

Re: bbdb-record-set-field, strings, and 'eq

2015-03-10 Thread Roland Winkler
On Tue Mar 10 2015 Eric Abrahamsen wrote: > When `bbdb-record-set-field' is setting a phone or address field, it > adds the new label to the list of existing labels like this: > > (add-to-list 'bbdb-phone-label-list (bbdb-phone-label phone) nil 'eq) > > The labels are strings, and 'eq comparison

bbdb-record-set-field, strings, and 'eq

2015-03-09 Thread Eric Abrahamsen
When `bbdb-record-set-field' is setting a phone or address field, it adds the new label to the list of existing labels like this: (add-to-list 'bbdb-phone-label-list (bbdb-phone-label phone) nil 'eq) The labels are strings, and 'eq comparison means they're never equal, so duplicate strings are ad