>>>>> "Robert" == Robert Fenk <[EMAIL PROTECTED]> writes:

    Robert> On Friday, April 20 2001 03:22:36, Martin Schwenke  wrote:

    >> The documentation string for bbdb/vm-update-records says:

    >> A record will be created if bbdb/mail-auto-create-p is non-nil, or
    >> if OFFER-TO-CREATE is true and the user confirms the creation.

    Robert> The variable bbdb/prompt-for-create-p is your friend!

OK, but...

    Robert> (defun bbdb/vm-force-create ()
    Robert>   "Force automatic adding of a bbdb entry for current message."
    Robert>   (interactive)
    Robert>   (let ((bbdb/mail-auto-create-p t)
    Robert>         (bbdb-prompt-for-create nil)
    Robert>         (bbdb-message-caching-enabled nil)
    Robert>         (bbdb/vm-update-records-mode 'annotating))
    Robert>     (save-excursion 
    Robert>       (vm-select-folder-buffer)
    Robert>       (bbdb/vm-update-records))))

I guess you mean:

  (bbdb/prompt-for-create-p nil)

Also, at least in BBDB 2.32:

  (bbdb/vm-update-records-mode 'annotating))

causes grief due to the code:

         (bbdb/vm-update-records-mode
          (if offer-to-create 'annotating
            (eval bbdb/vm-update-records-mode)))
         rec)

...

Signaling: (void-variable annotating)
  eval(annotating)
  bbdb/vm-update-records()
  ...

Do you really mean to eval that variable, or just return its value?

Getting rid of the eval seems to fix the problem...

         (bbdb/vm-update-records-mode
          (if offer-to-create 'annotating
            bbdb/vm-update-records-mode))

... and it makes more sense...  :-)

    >> Seems like I mixed up some things during the new update stuff,
    >> i.e. with *-auto-create-p set to 't you still will be asked for
    >> creation.
    >> 
    >> I will verify this and apply a bug fix soon. 

    Robert> As I see it now there was no bug, so I made no fix.

OK, I'll just argue that the documentation for bbdb/vm-update-records
is ambiguous...  :-)

I'd move the comma in an effort to group things differently:

  A record will be created if bbdb/mail-auto-create-p is non-nil or if
  OFFER-TO-CREATE is true, and the user confirms the creation.

but then my English is occasionally crap...

Considering all of that, things are back to working how I'd expect...
:-)

Thanks...

peace & happiness,
martin

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

Reply via email to