Plugins aren't loaded by default
Hi. Here's what happens: I have 3 plugins installed, but when the browser and KeySnail start, plugins aren't loaded (M-x doesn't find any commands, although "Builtin commands ext" plugin is installed. If I then open the plugin manager and ask it to load plugins - everything works as expected.
There are some confusing setting in the settings menu. For example "Relative init file is not found" - what is init file? Should it be found? Other features work as expected (key bindings work, custom scripts are loaded from .keysnail.js).
I cannot reproduce the reported problems. Please tell me more detailed information:
- Firefox version
- KeySnail version
- Error console messages after startup
what is init file?
init file is a jargon often used in the Emacs world, and in KeySnail world, it is corresponds to .keysnail.js file. Relative init file is a special feature for users who install Firefox into external storages like USB memory, and not a problem in this situation.
Firefox is version 15.0 (installed from Fedora stable). KeySnail is version 1.9.6 (installed it couple days ago). Which console? Do you mean Firefox JavaScript console? In that case, I'm getting couple of errors, which seem not relevant: in PlacesUtil, something related to "live mark" - no idea what that is. They all come from the same function, but no stack trace, so I don't really know what happens. Also there's a warning coming from browser.xul about using some key which might not be available on all keyboards (seems unimportant).
There's also something that might be related, which goes to messages, not errors or warnings: a notion that it wasn't able to read some chrome manifest, and it gives a location in /usr/lib64/firefox/extensions/{some-guid}/chrome.manifest - there is indeed no such file, however the directory exists and contains icon.png and install.rdf files. The icon doesn't seem to be connected to KeySnail (it is an image of a palette).
Thanks for providing detailed information. Unfortunately, I cannot find any clue to the problem. What plugins you have installed? It seems that you have three plugins installed, and one of them is builtin-command-as-ext. Does other plugins also fails to be loaded at startup?
I have these: Firebugnail 0.0.5, K2Emacs 0.0.9 and Builtin commands as Ext 1.1. All of them fail to load, but will load if I re-load them using plugin manager. Just out of curiosity, is there a way to re-load them from keysnail.js (init script?) That would solve the problem for me, which is not such a big problem anyway, just an annoyance.
More info, if it helps: there are other addons installed into Firefox, Firebug, HttpFox and MozRepl. If that matters, I'm using KDE display manager.
Also, I had to patch a bit K2Emacs because it uses emacs23 to call installed emacs, but I have emacs24, but that shoudln't have had this kind of consequences...
is there a way to re-load them from keysnail.js
userscript.loadPlugins() allows you to load plugins by hand. So, a dirty hack for this issue is putting the following line into your init file.
setTimeout(function () { userscript.loadPlugins(); util.message("Loaded!"); }, 1000);
Also, I had to patch a bit K2Emacs because it uses emacs23 to call installed emacs, but I have emacs24
This is exactly tha reason why option system is arranged. Just put a line into your .keysnail.js file. There's no need to modify the plugin directly.
plugins.options["K2Emacs.editor"] = "/usr/bin/emacs24"; // something
Re' the plugin option: thanks, had to read a little bit further into the manual :) Thanks for the info!