Open akashpal-21 opened 2 weeks ago
i have this problem too sorry for delay. haven't looked into yet. will do next couple of days. this is a bit complex so will take some time to look into.
No problem Xah, please take your time -- the temporary advice hack works good enough for me in the meantime --
I do the advice within the xah-fly-mode -- but we should avoid using advice whenever possible, but as a temporary solution it is good enough for now to work around the problem for me.
If command-mode is active - and the user evaluates an expression that results in the backtrace being called - the debugger-mode will silently clear the transient map - meaning although the command mode is active -- none of the keybindings is currently active - this failure is not resolved when the debugger mode is exited.
This will require from the user to call the command mode to reestablish parity of keybinding with the xah-fly-mode currently active.
The procedure shown above is an example of how to work around it. Since the command mode binding is disregarded by debug mode, there is no reason to keep it - during backtrace the switch is made from command-mode to insert-mode and when the backtrace window has been killed using
q
orc
(quit or continue), the command mode is restarted if required.How to reproduce:
(xyz)
this will cause a failure and call the backtrace.xah-fly-command-mode-active
to re-establish parity.