Hi. Not sure if anybody else is using package.el to install Evil, but I noticed an issue. First up, the autoload cookie on evil-mode seems to be out of date (points to the wrong file, and near as I can tell it confuses Emacs because evil-mode is defined by a macro not a defun). That's a pretty small fix, but the bigger issue is this. Seems that even once the autoload cookie is corrected the package still won't load correctly with an M-x evil-mode or after-init-hook. NOTE: I'm out of my comfort zone with this explanation, so Emacs wizards please correct me. My best guess is that, since evil-mode is defined so early on in the package files (in evil-core.el), the call to autoloaded evil-mode only loads the prereqs / definitions up to evil-core and leaves the later files and after-init-hooks untouched. Attached is a "fix" that moves the evil-mode definition into the evil.el file (as well as updating the autoload cookie). I put "fix" in quotes because I don't know if this is the preferred solution to this issue. It worked for me in a pinch, but I have no idea what best practices would normally dictate. Patch contributed under GPLv3+, in case it's useful. Regards, Trevor
Am Tue, 7 Aug 2012 05:07:18 -0400 schrieb Trevor Murphy <[email protected]>:
Hi.
Not sure if anybody else is using package.el to install Evil, but I noticed an issue.
First up, the autoload cookie on evil-mode seems to be out of date (points to the wrong file, and near as I can tell it confuses Emacs because evil-mode is defined by a macro not a defun).
Could you please provide an example how it confuses Emacs? The autoload cookie is defined as it is by intention (except that the interactive-mark (fourth argument to autoload) is missing), i.e. the function and the cookie are defined in evil-core.el but the file to be loaded is evil.el. I'm using package.el and I did not observe any problems with that. The autoload file `evil-autoload.el' is generated and used correctly.
That's a pretty small fix, but the bigger issue is this. Seems that even once the autoload cookie is corrected the package still won't load correctly with an M-x evil-mode or after-init-hook.
Sure, because evil.el has to be loaded. Frank -- Frank Fischer Chemnitz University of Technology, Department of Mathematics eMail: [email protected] Tel.: +49 (371) 531-36913
participants (2)
-
Frank Fischer -
Trevor Murphy