From: Vince Darley (vince@santafe.edu)
Date: 9 Mar 01, 04:30 EST
From: Vince Darley <vince@santafe.edu>
Subject: Re: Twiddle?
On Fri, 9 Mar 2001, Masatsugu Nagata wrote:
> I'd rather have a bug-free version. The "all in 1" proc you suggested
> would execute:
>
> set char2 [lookAt -1]
> replaceText -1 [pos::math $first +1] "${char1}${char2}"
>
> when $pos == 0.
I think you need to read more carefully Mark. The first couple of lines
of the procedure were:
set pos [getPos]
if {[pos::compare $pos == [minPos]]} {return}
So, if pos = 0, the procedure returns, and never gets to the code above.
Perhaps you could *actually test* the code before saying it has bugs?
> > So, you're adding yet another user-preference to our list of i,ii,iii?
> > How does it relate to the other preferences?
> >
> No, I'm not.
Really. First you suggested keeping the cursor position fixed, and then
you presented a procedure which moved it (with the convenient option for
the user to edit the procedure if they wanted a different behaviour)!
That strikes me as adding another preference (or shall we have no
preferences at all and simply tell all users to 'edit procedures').
Vince.
damn, I thought I was dropping out of this thread.
_______________________________________________
AlphaTcl-developers mailing list
AlphaTcl-developers@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/alphatcl-developers