I have inconsistencies in ordering of records in my BBDB buffer (which
also translates into the same order inconsistencies when I use
bbdb-print).

Short of sending my entire .bbdb file, I'll give an excerpt (with
contact details changed).  In my BBDB buffer I have:

Kevin Lars -                                    . 5555-5555            (Other)
Jennifer Min - LVMH - DFS                       . (555) 555-5555       (Work)
 - National Rail                                . 55555 555555         (Work)
Alex Target -                                   . 5555-5555            (Home)
Vince Digweed - Group (UK)                      . +55 555 5555-5555    (Work)
Theodore Kay -                                  . (5555) 555-555       (Other)
 - Uhuru Furniture

Clearly the lexical order should be:

Vince Digweed - Group (UK)                      . +55 555 5555-5555    (Work)
Theodore Kay -                                  . (5555) 555-555      (Other)
Kevin Lars -                                    . 5555-5555            (Other)
Jennifer Min - LVMH - DFS                       . (555) 555-5555       (Work)
 - National Rail                                . 55555 555555         (Work)
Alex Target -                                   . 5555-5555            (Home)
 - Uhuru Furniture

The relevant part of my .bbdb is:

["Kevin" "Lars" nil "" (["Other" "5555-5555"] ["Home" "5555-5555"] ["Work" 
"5555-5555"] ["Mobile" "5555 555-555"]) (["Main" ("55 Oxford St") "Inner City" 
"California" "" ""]) ("[EMAIL PROTECTED]") ((pilot-id . "5555555 \"Unfiled\" 
\"Main\"\n  \"Field5:5\" \"phone:Work\"\n  \"Field5:5\" \"phone:Mobile\"\n  
\"Field5:5\" \"phone:Home\"\n  \"Field5:5\" \"phone:Other\"\n  \"Field5:5\" 
\"net:5\"\n  BBDB-Unused: \"note:timestamp\"") (timestamp . "5555-55-55")) nil]
["Jennifer" "Min" nil "LVMH - DFS" (["Work" 555 555 5555 nil] ["Home" 555 555 5555 
nil] ["Mobile" 555 555 5555 nil]) (["Main" ("555 Market St.") "NYC" "UT" "55555" ""]) 
("[EMAIL PROTECTED]" "[EMAIL PROTECTED]") ((pilot-id . "5555555 
\"Unfiled\" \"Main\"\n  \"Field5:5\" \"phone:Work\"\n  \"Field5:5\" \"phone:Mobile\"\n 
 \"Field5:5\" \"net:5\"\n  \"Field5:5\" \"phone:Home\"\n  \"Title\" \"note:title\"\n  
BBDB-Unused: \"note:timestamp\"") (timestamp . "5555-55-55") (title . "Manager, 
Business Process Engineering")) nil]
["" "" nil "National Rail" (["Work" "55555 555555"]) nil nil ((pilot-id . "5555555 
\"Unfiled\" \"-NO-ADDRESS-\"\n  \"Field5:5\" \"phone:Work\"\n  BBDB-Unused: 
\"note:timestamp\"") (timestamp . "5555-55-55")) nil]
["Alex" "Target" nil "" (["Home" "5555-5555"] ["Work" "+55 (5)5 5555-5555"] ["Mobile" 
"5555 555-555"]) (["Main" ("555 Walker St") "North City" "" "" ""]) 
("[EMAIL PROTECTED]") ((pilot-id . "5555555 \"Unfiled\" \"Main\"\n  \"Field5:5\" 
\"phone:Work\"\n  \"Field5:5\" \"phone:Mobile\"\n  \"Field5:5\" \"phone:Home\"\n  
\"Field5:5\" \"net:5\"\n  BBDB-Unused: \"note:timestamp\"") (timestamp . 
"5555-55-55")) nil]
["Vince" "Digweed" nil "Group (UK) " (["Work" "+55 555 5555-5555"] ["Mobile" "5555 
555-5555"]) nil ("[EMAIL PROTECTED]" "[EMAIL PROTECTED]" "[EMAIL PROTECTED]" 
"[EMAIL PROTECTED]") ((pilot-id . "5555555 \"Unfiled\" \"-NO-ADDRESS-\"\n  
\"Field5:5\" \"net:5\"\n  \"Field5:5\" \"phone:Mobile\"\n  \"Field5:5\" 
\"phone:Work\"\n  \"Title\" \"note:title\"\n  BBDB-Unused: \"note:timestamp\"") 
(timestamp . "5555-55-55") (title . "Senior Scientist")) nil]
["Theodore" "Kay" ("Summit") "" (["Other" "(5555) 555-555"] ["Home" "5555-5555"] 
["Work" "5555-5555"]) (["Main" ("5/55 Arthur Street") "North City" "California" "" 
"USA"]) ("[EMAIL PROTECTED]" "[EMAIL PROTECTED]") ((notes . "tel no. for 
Annie?: 555-5555") (pilot-id . "5555555 \"Unfiled\" \"Main\"\n  \"Custom5\" 
\"aka:5\"\n  \"Field5:5\" \"net:5\"\n  \"Field5:5\" \"phone:Work\"\n  \"Field5:5\" 
\"phone:Home\"\n  \"Field5:5\" \"phone:Other\"\n  \"Note\" \"note:notes\"\n  
BBDB-Unused: \"note:timestamp\"") (timestamp . "5555-55-55")) nil]
["" "" nil "Uhuru Furniture" (["Work" 555 555 5555 nil]) (["Main" ("5555 Grand Ave") 
"Oakville" "UT" "" ""]) nil ((notes . "tue - sat 55 am - 5 pm, sun 55 - 5 pm") 
(pilot-id . "5555555 \"Unfiled\" \"Main\"\n  \"Field5:5\" \"phone:Work\"\n  \"Note\" 
\"note:notes\"\n  BBDB-Unused: \"note:timestamp\"") (timestamp . "5555-55-55")) nil]

This matches the order as it appears in the buffer.  This is only a
simple example (I have about 450 records in my full .bbdb), but it's
indicative of weird ordering I get throughout the datebase.  For
example the first 100 or so records are in perfect order, then it
restarts again with more names starting at "A", I get another 40 in
order, then another cycle, and so on...    

One other fact that might be relevant is that I use SyncBBDB sometimes
to enter data on my Palm that is later synchronised to my desktop
.bbdb file.

This ordering problem is maddening because I need to send in my Palm
Pilot for a service, and meanwhile I want to print out my entire BBDB,
so I can carry it around in my old organiser, but the ordering is all
over the place (it mirrors exactly the screwed-up order in the file).

Is there anyway I can "force" a complete re-ordering of my BBDB, to
ensure that it's all in a proper lexical order?  I searched high and
low through the docs, the mailing list and the code, but I can't seem
to find anything, short of delving into the internals of the data
structures within BBDB.

Perhaps this mucks up BBDB internal data structures somehow? (since I
would imagine that BBDB normally assumes that it is the only
application updated the .bbdb file).  If so, there should be a way to
"force" a complete re-ordering of the file so when I do a complete
display of all records (i.e. by starting BBDB and simply pressing
return when it prompts for a search term), the full list is in correct
lexical order.

In any case, if this is a true "bug", I will happily submit a full bug
report using bbdb-submit-bug-report, but for now I just wanted to get
feedback on whether indeed this is a bug or simply some artifact of
using SyncBBDB or of my setup, and to find out if anybody else had had
the same problem.

This is the details of my BBDB setup:

Emacs  : GNU Emacs 21.1.1 (i686-pc-linux-gnu, GNU/LessTif Version 2.0 Release 0.92.32) 
of 2001-10-22 on allele2
Package: BBDB 2.32

Thanks,

Alex
-- 
    Alex Lancaster * [EMAIL PROTECTED] * SourceForge Developer

_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to