I'm playing around with putting a stacktrace in a log file. I probably want to include the script file name. Example stacktrace is
<SNR>31_Baz[1]
<SNR>31_Bar[1]
function <SNR>31_Foo[1]
script /home/err/play/xxx.vim[27]
I tried
expand("<SNR>31")
I see ":scriptnames", and I just found
scriptnames-dictionary, so I guess that's the route to take. I
suppose if I encounter a <SNR> that's not in cached
dictionary, I should run it again. Unless of course there's some
builtin support since scriptnames-dictionary was written that I
can't find.
Is a patch to eval.txt of interest to use
a vim9 function instead?
-ernie