I have a problem: I need to pass « any » caller-session trace into a user command… Was trying with:
command WantToKnowWhosCalling call Impl("\<SID>", \ expand("<SID>"), eval('expand("<SID>")'), \ expand('<sfile>'))
all methods were failing —
<SID> because it's fixed-straight (it's almost like if Bram was brushing some potential security issues…) to point to the «command-defining» session.
<sfile> was ·almost· there, however… It returns the script-file path (a very good ID…) only at the time of the
:source, later, when expanded from the script-defined functions, it's ≈
Has someone any more ideas? I need to: « identify the command-caller », basically… It can be a random-ID, but stable-assigned and unique. The goal is to know that it's a « client script-A returning », i.e.: recognized and associated with its previous calls to the custom