Here's another patch to 1.49 that just missed the release. This is *not*
MH specific. It's rather subtle: if you try to search for information
that appears in a user-defined field before the database has been parsed
for the first time, BBDB won't find it.

I previously made another bug fix to bbdb-com.el, in the function
bbdb-redisplay-records, where I had to change (mark) to (mark t). The
new release doesn't include this change, but I'm not going to make it
again unless I start getting bugs. I think the change from (mark) to
(mark t) became superfluous after the MH patches.

*** bbdb/bbdb-com.el.orig       Wed Dec  1 10:45:24 1993
--- bbdb/bbdb-com.el    Thu Dec  2 10:44:52 1993
***************
*** 112,124 ****
                                (or (bbdb-record-company record) "")))
               clauses)))
  
!     (` (let ((matches '())
!            (all-fields (cons 'notes
!                              (mapcar (function (lambda (x) (intern (car x))))
!                                      (bbdb-propnames))))
!            (case-fold-search bbdb-case-fold-search)
!            (records (, records))
!            record)
         (while records
           (setq record (car records))
           (if (or (,@ clauses))
--- 112,128 ----
                                (or (bbdb-record-company record) "")))
               clauses)))
  
!     (` (let* ((matches '())
!             ;; records must be set before all-fields; otherwise, the
!             ;; call to bbdb-propnames can happen before the database
!             ;; has been initially parsed.  knabe
!             (records (, records))
!             (all-fields (cons 'notes
!                               (mapcar (function (lambda (x)
!                                                   (intern (car x))))
!                                       (bbdb-propnames))))
!             (case-fold-search bbdb-case-fold-search)
!             record)
         (while records
           (setq record (car records))
           (if (or (,@ clauses))

Reply via email to