[squeak-dev] Re: Is there a preference setting to block automatic parentheses?

Bert Freudenberg bert at freudenbergs.de
Wed Feb 25 22:04:18 UTC 2015


On 25.02.2015, at 12:52, Chris Muller <asqueaker at gmail.com> wrote:

> Just keep typing ) until you get there and it'll start adding.

Please tell me you're kidding.

> Bert, the way this went down was:  1) you complained with only
> emotion, 2) I asked for concrete clarification, 3) you clarified, 4) I
> went and (tried to) fix to your specification, 5) you complain about a
> new (non)problem.

No. My specification was (and I quote): "skip over the auto-inserted part". Not "always ignore a typed paren if there happens to be one at the cursor".

> I'm trying to help here, but what is not helpful is to block any and
> all progress with these complaints about how these non-real-world
> use-cases aren't solved, and then to top it off, offering no guidance
> about what it SHOULD do.

Marcel and I tried to tell you exactly what it should do. And I pointed you repeatedly to an example of the right behavior. Which you continue to ignore.

> It's clear this is more about you wanting to complicate the
> implementation

Nonsense. It's about not breaking fundamental invariants of typing behavior in the editor. 

> with a stack.

If you can make the editor keep track of what it auto-inserted by something else than a stack, yay, go for it. The point is that it needs to be able to distinguish between automatically inserted parts and user-typed parts *somehow*.

>  If you have time for that go for it.  I
> won't do it because when I analyze the use-cases, it's clear that
> implementation is way overkill.  Not worth the effort nor the extra
> complexity.

Then the only solution right now is to turn off the feature by default. Which is what I was suggesting back at the beginning of this discussion. It's a reasonable fix until someone does it right.

- Bert -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4115 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150225/32373edc/smime.bin


More information about the Squeak-dev mailing list