On Thu, Nov 13, 2008 at 11:44 AM, Nikolaus Demmel demmeln@in.tum.de wrote:
I would like to define commands with gestures (or a gesture to command translator) where the gesture (:select) applies in only one specific pane. I want to specialise this command for T, so it would accept everything as input, which screws up the rest of my application... How can this be done?
Command gestures are implemented behind the scenes as presentation (to command) translators. You can define these yourself explicitly, rather than using the :gesture keyword in define-command. Doing so grants you more flexibility, including the ability to define use the :tester function to programatically decide the applicability of the translator. In this way you can test the pane which the gesture was received in.