The scmel_export_object method trigger client side object creation through scmel-make method. This is the minimal protocol but you might enhance it as much as you wish. Indeed you can trigger any method you wish on client object provided client object implements it (see 1.1.) Simply remember that client object represented by the elisp variable scmel–object.
A modification have been done here. The elisp variable this is no longer accessible in elisp code due to almost mandatory lexical-binding. In fact since emacs version 29 cl-generic implementation requires that cl-defmethod is used in lexical binding. Hence the scmel–object elisp variable should be used here instead of ‘this’ thanks to a let wrapping in client side filter method (see 1.2.)
Copyright (©) 2009 -- 2024 | Pierre L. Nageoire |