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 added each time:

(length bbdb-phone-label-list) -> 197

(length (delete-dups bbdb-phone-label-list)) -> 7

I'm assuming it should just be using 'equal instead -- is there any
reason for the duplication?

Eric


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to