On Sun Aug 5 2012 Stephen Leake wrote:
> "Roland Winkler" <wink...@gnu.org> writes:
> 
> > On Sun Aug 5 2012 Stephen Leake wrote:
> >> I've traced thru several executions of bbdb-complete-mail, with various
> >> patterns, and various settings of bbdb-completion-list. It appears there
> >> is no way to get to the line ";; Consider cycling" with 'done' set to
> >> nil, so there is no way to get cycling. I hope I'm wrong!
> >
> > I cannot quite reproduce this. DONE is initially let-bound to nil.
> 
> Yes.
> 
> > Only if DONE did not get bound to something else before reaching the
> > line ";;consider cycling" the code should perform cycling.
> 
> Yes.
> 
> > So can you check the non-nil value of DONE at this point?
> 
> I could not create the initial conditions that would cause it to be
> non-nil.

Non-nil or nil? What value of bbdb-completion-list do you use?

-- In any case, at this point of the code DONE is non-nil if the
code performed some completion (or bbdb-complete-mail-allow-cycling
is nil)

> > This should give some hint where the code decided to fork in some way
> > you do not want it to go.
> 
> No, in all the cases I've tried, it does exactly what I want, when
> ignoring done in consider cycling.

???

Either at this point of the code DONE has a non-nil value you are
unhappy about so that you could tell us what it was. Or the value of
DONE is nil. Then you get cycling. What am I mising here?

> Can you describe a set of initial conditions that result in done being
> nil at that point?

Exactly what we discussed previously on this list

Say you have a record

Johnathan Smith
       phone (home): (123) 456-7890
               mail: sm...@example.com, sm...@foo.com,
                     Joe Smith <j...@bar.com>

Then you type in the "To" header

  To: Johna

The first time you execute bbdb-complete-mail (and "Johna" doesn't
match any other record), this completes to

  To: Johnathan Smith <sm...@example.com>

Subsequent calls of bbdb-complete-mail (with
bbdb-complete-mail-allow-cycling non-nil) give you

  To: Johnathan Smith <sm...@foo.com>

and

  To: Joe Smith <j...@bar.com>

That's what I get, and it's also my understanding of what the code is
supposed to do. What do you get?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to