editor.SubscribeChangeEvent
LuaFAR library contains the function editor.SubscribeChangeEvent. This function is redefined by LuaMacro plugin for use by event handlers:
The original function is called only when the internal subscription counter changes from 0 to 1 (if argument
Subscribe==true), or from 1 to 0 (if argumentSubscribe==false). It is therefore necessary that every event handler containing a callSubscribe==true, contained also a matching callSubscribe==false.Unlike plugins, the
EE_CHANGEevent could come to an event handler regardless of whether that handler callededitor.SubscribeChangeEvent.There is a separate subscription counter for each editor session.