Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm error "invalid function: add-function" for Emacs 24.4 on develop branch #1624

Closed
drmikehenry opened this issue May 17, 2015 · 5 comments

Comments

@drmikehenry
Copy link

Hi,

I tried to upgrade Emacs from 24.3 to 24.5, at which point when I launch Helm I get the following error:
Error (use-package): helm :config: Invalid function: add-function
In addition, the mapping of TAB in helm windows reverts back to toggling the action menu.

The same thing occurs in Emacs 24.4. New in Emacs 24.4 is the package nadvice.el which provides add-function and remove-function, which may have something to do with this problem. I've downgraded back to Emacs 24.3 as a work-around.

Michael Henry

@syl20bnr
Copy link
Owner

When you upgrade the version of Emacs, be sure to wipeout the ~/.emacs.d/elpa directory and relaunch Emacs in order to reinstall all the packages with the new version.

@drmikehenry
Copy link
Author

Thanks! That fixed the problem, both for Emacs 24.4 and 24.5. I hadn't realized that the Emacs version would influence the contents of ~/.emacs.d/elpa. Is this documented somewhere that I missed? I'm just getting started with Spacemacs, so I may well have overlooked this piece of advice. It also might be helpful to mention this trick in the installation notes, perhaps near this section: https://github.com/syl20bnr/spacemacs#emacs-version

Thanks again for the help; this answers my question completely.

@TheBB
Copy link
Contributor

TheBB commented May 18, 2015

The packages are all bytecode compiled upon installation, so it's not so far fetched that they are bound to a particular version of Emacs after that. I haven't seen it stated explicitly, however.

@cies
Copy link

cies commented Sep 13, 2015

Made the same mistake. Google'ing for the error already points here :)

@pscollins
Copy link

For future people who stumble on this from Google: it's enough to go into your ~/emacs.d and run

find -name "*.elc" -delete

After that, I was able to run emacs fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants