So I was looking for how to run a macro over a bunch of files.
Which lead me to the filemanager - which I've never used before.
So I started looking at repeat_command (but it requires that your macro know how to select the buffer)...
Anyways, I found that Slick would hang when I jumped to fileman_replace in fileman.e from Macro->GotoSlickCDefinition.
It has done this twice - using the macro break key, I get this stack:
Break key pressed. Macro halted
stdcmds.ex 46618 _isdiffed(4) p_window_id: 610 p_object: OI_EDITOR p_name:
mouse.ex 3833 mou_click(,,0,0) p_window_id: 610 p_object: OI_EDITOR p_name:
I've not made any changes to fileman.e, I was just looking to see what it does.
So, I attached the SlickC debugger, reproed the hang again. I clicked pause in the debugger.
The stack in the debugger is:
isalpha() sc.lang.modules.stdprocs
isalnum() sc.lang.modules.stdprocs
nextsym() sc.lang.modules.math
unary_exp() sc.lang.modules.math
exp() sc.lang.modules.math
eval_exp() sc.lang.modules.math
eval_exp() sc.lang.modules.math
EvaluateMouseExpression() sc.lang.modules.debugpkg
debug_get_mouse_expr() sc.lang.modules.debugpkg
_mouse_move() sc.lang.modules.mouse
I set a break at line976 of C:\Program Files\SlickEdit Pro 21.0.0 Beta3\macros\math.e -- never reached -- so that loop in exp() seems to never complete.
In eval, the loop doesn't make progress. The locals:
sym **Symbol not found in this scope**
prec_tab (21 items)
- "14"
- "13"
[|] "6"
[-] "13"
[&&] "4"
[/] "14"
[:+] "11"
[>=] "10"
[^] "7"
[>>] "12"
[<] "10"
[<<] "12"
[<=] "10"
[>] "10"
[||] "3"
[!=] "9"
- "15"
[$] "0"
[==] "9"
[%] "14"
[&] "8"
op_stack (2 items)
- "$"
[1] "+"
orig_sym 0
vtop 1
< add >