[Geany] Calling info() from inside a plugin

Jeff Pohlmeyer yetanothergeek at xxxxx
Sat Jul 21 10:19:22 UTC 2007


The demo plugin calls the global function info() to try and
get its own name. This worked fine before the classbuilder
plugin was added, but now the demo plugin says:

  "Hello World! (From the Class Builder plugin)"

Apparently because the global info() function gets bound to
the first (alphabetically) loaded plugin.

The simple solution is to not call info() from inside a plugin.
The attached patch offers another (somewhat ugly) solution...

 - Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pluginfo.diff
Type: text/x-patch
Size: 1393 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070721/e0658741/attachment.bin>


More information about the Users mailing list