editor.SubscribeChangeEvent

Far Manager Macro System

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 argument Subscribe==false). It is therefore necessary that every event handler containing a call Subscribe==true, contained also a matching call Subscribe==false.

  • Unlike plugins, the EE_CHANGE event could come to an event handler regardless of whether that handler called editor.SubscribeChangeEvent.

  • There is a separate subscription counter for each editor session.