Mats Löfdahl <[EMAIL PROTECTED]> writes:
> BBDB does not accept an empty zip code field when I'm entering an
> address. Because of this, if I don't know the zip code I can't enter
> the address at all.
Oops, you are right.
You can either set bbdb-check-zip-codes-p to nil (that should disable
checking), or you can add the empty string to bbdb-legal-zip-codes.
Ronan, the following might be appropriate:
Index: bbdb-com.el
===================================================================
RCS file: /home/cvsroot/emacs/bbdb2/lisp/bbdb-com.el,v
retrieving revision 1.7
diff -c -r1.7 bbdb-com.el
*** bbdb-com.el 2000/11/07 23:59:07 1.7
--- bbdb-com.el 2001/01/30 22:43:34
***************
*** 338,344 ****
`bbdb-legal-zip-codes'.")
(defvar bbdb-legal-zip-codes
! '(;; Matches 1 to 6 digits.
"^[ \t\n]*[0-9][0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[ \t\n]*$"
;; Matches 5 digits and 3 or 4 digits.
"^[ \t\n]*\\([0-9][0-9][0-9][0-9][0-9]\\)[ \t\n]*-?[
\t\n]*\\([0-9][0-9][0-9][0-9]?\\)[ \t\n]*$"
--- 338,346 ----
`bbdb-legal-zip-codes'.")
(defvar bbdb-legal-zip-codes
! '(;; The empty string
! "^$"
! ;; Matches 1 to 6 digits.
"^[ \t\n]*[0-9][0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[ \t\n]*$"
;; Matches 5 digits and 3 or 4 digits.
"^[ \t\n]*\\([0-9][0-9][0-9][0-9][0-9]\\)[ \t\n]*-?[
\t\n]*\\([0-9][0-9][0-9][0-9]?\\)[ \t\n]*$"
Alex.
--
http://www.geocities.com/kensanata/emacs.html
"gnu.emacs.help is for GNU Emacs, comp.emacs.xemacs is for XEmacs."
_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/