Hello, Everyone -
I just uploaded another new version of the Lua plugin.
This release contains lots of new features, including:
* A new API for creating your own custom dialogs. * Several new filesystem functions. * Ability to invoke Geany's builtin menu commands. * Event handlers for project open/save/close events. * GKeyFile support. * Improved Windows installation. * Several new example scripts.
( See ChangeLog for a complete list of changes. )
Also, the plugin build process now uses autotools.
Enjoy, and Happy New Year!
- Jeff
On Jan 1, 2008 3:03 PM, Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Lua plugin 0.5.0 released
Err, let's make that 0.5.1 - fixed to compile against Geany SVN 2145...
http://yetanothergeek.justfree.com/geanylua/
- Jeff
On Wed, 2 Jan 2008 17:21:03 -0600, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Jan 1, 2008 3:03 PM, Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Lua plugin 0.5.0 released
Err, let's make that 0.5.1 - fixed to compile against Geany SVN 2145...
Sorry, I didn't want to break your plugin. I guess you had to change something which was called "filetype". This will probably change again soon. Sorry. There are problems with conflicting names of preprocessor macros, field names and types. I will rename something to solve this.
Regards, Enrico
On Jan 3, 2008 11:51 AM, Enrico Tröger enrico.troeger@uvena.de wrote:
Sorry, I didn't want to break your plugin. I guess you had to change something which was called "filetype".
The problem was with the order of the include files, e.g.
this works: #include "filetypes.h" #include "pluginmacros.h"
but not this: #include "pluginmacros.h" #include "filetypes.h"
This will probably change again soon. Sorry. There are problems with conflicting names of preprocessor macros, field names and types. I will rename something to solve this.
IMO, the names from pluginmacros.h should be all uppercase. I know this will break all of the existing plugins, but I think it is much better in the long run, it makes the code more readable, at least for me.
- Jeff
On Thu, 3 Jan 2008 12:31:06 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
IMO, the names from pluginmacros.h should be all uppercase. I know this will break all of the existing plugins, but I think it is much better in the long run, it makes the code more readable, at least for me.
I think if we're going to break compatibility it would be good to use CamelCase for the document and filetype type names, like we do for all other types - e.g. Document, Filetype.
If we do this we could phase it in - e.g. in the next release provide typedef aliases for document and filetype, and encourage everyone to port their plugin code over to that. Then after the release we can remove the current typenames.
For now I would suggest just removing the filetype macro from pluginmacros.h, and add it after the 0.13 release.
Regards, Nick
P.S. Consistency is my main reason for wanting to do this, but also I'm not keen on all uppercase macros in this case. They have to be used a lot, and are to save typing. Typing uppercase for me would probably make me just go back to using the full geany_data->utils->...
On Fri, 4 Jan 2008 12:55:39 +0000, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Thu, 3 Jan 2008 12:31:06 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
IMO, the names from pluginmacros.h should be all uppercase. I know this will break all of the existing plugins, but I think it is much better in the long run, it makes the code more readable, at least for me.
I think if we're going to break compatibility it would be good to use CamelCase for the document and filetype type names, like we do for all other types - e.g. Document, Filetype.
If we do this we could phase it in - e.g. in the next release provide typedef aliases for document and filetype, and encourage everyone to port their plugin code over to that. Then after the release we can remove the current typenames.
Sounds good.
For now I would suggest just removing the filetype macro from pluginmacros.h, and add it after the 0.13 release.
Done, probably the best for the moment.
P.S. Consistency is my main reason for wanting to do this, but also I'm not keen on all uppercase macros in this case. They have to be used a lot, and are to save typing. Typing uppercase for me would probably make me just go back to using the full geany_data->utils->...
And uppercase macros are ugly ;-).
Regards, Enrico