in reply to Re^2: Need help to remove AutoLoader in Tx::Text::SuperText
in thread Need help to remove AutoLoader in Tx::Text::SuperText

I would suspect that something is different in the way the parameters get passed to focusPrev between the "with AutoLoader" and the "no AutoLoader" version. If $w contains $self (as would be customary), then $self->focusPrev will call itself forever (or until the memory is exhausted).

Maybe output a dump of @_ on each call to focusPrev to see the difference between the AutoLoader version and the other one.

Of course, this assumes that the widget isn't broken and the problem does not happen with the unmodified widget either :).

Update: Thinking more about it, I wonder how this could work with the AutoLoader version at all. Removing the two subroutines should still keep focus switching working in both versions of the module.

Replies are listed 'Best First'.
Re^4: Need help to remove AutoLoader in Tx::Text::SuperText
by capfan (Sexton) on Feb 23, 2016 at 18:10 UTC

    I tried to identify a difference in the with and without Autoloader method, but I did not find any.

    So I removed the 2 methods.

    Now, shift + tab does not decrease indent anymore. But the rest works (I guess). I also put up a GitHub repo.