I found that the problem was (I think) that you don't get a hash
(bbdb-gethash) if the string passed ends in a blank, and that is what
you get from bbdb-divide-name if there is just a last name.  It also
gives you a problem if the lastname ends with a blank.  Shoud it be
fixed in bbdb-gethash?  

Below a patch for the bbdb-divide-name that does not give an empty
string if there is just one name (firs or last).  Is it the right
way or am I totally out?

/Micce

--- /usr/local/lib/xemacs/xemacs-packages/lisp/bbdb/bbdb.el     Sat Nov 27 21:49:44 
1999
+++ lisp/bbdb.el        Fri May 19 16:44:59 2000
@@ -2174,7 +2174,7 @@
              (concat
               (substring str (match-beginning 1))
               (or gubbish "")))
-      (list string ""))))
+      (list string))))
 
 (defun bbdb-check-alternate-name (possible-name record)
   (let (aka)



--- /usr/local/lib/xemacs/xemacs-packages/lisp/bbdb/bbdb.el     Sat Nov 27 21:49:44 
1999
+++ lisp/bbdb.el        Fri May 19 16:36:02 2000
@@ -2174,7 +2174,8 @@
              (concat
               (substring str (match-beginning 1))
               (or gubbish "")))
-      (list string ""))))
+;      (list string ""))))
+      (list string))))
 
 (defun bbdb-check-alternate-name (possible-name record)
   (let (aka)



-- 
Mikael Hedin                    +46 (0)980 79176
Institutet f�r rymdfysik        +46 (0)980 73547 (home)
Box 812, 981 28 KIRUNA, Sweden  +46 (0)980 79050 (fax)


_______________________________________________
bbdb-info mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/bbdb-info

Reply via email to