Invalid number of arguments: call-interactiveively-p, 1

~/.emacs ;; http://cx4a.org/software/auto-complete/manual.html (add-to-list 'load-path "~/.emacs.d/") (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict") (ac-config-default) 

when I load emacs it complains of an error like "Invalid number of arguments: called-interactiveively-p, 1". In other words, emacs finds an error before the line (ac-config-default) .

when I check the .emacs.d / auto-complete.elc file, I found the line called called-interactiveively-p.

Questions> I used the same settings for ubuntu without any problems. Now I am switching centos 6.2. Is there any way to solve this problem?

emacs --debug-init shows the following errors:

+8
emacs centos
source share
3 answers

It should be noted that this error may occur if you move your emacs.d directory from one machine to another.

If so, deleting the compiled * .elc files should do the trick.

+12
source share

In the last Emacsen, an argument is required for called-interactively-p .

Do Ch f ac-quick-help RET , then replace (called-interactively-p) with (called-interactively-p 'any) and recompile / reload. Or send this error to the package author.

+3
source share

[As I mentioned recently in some other stackoverflow question, it is highly recommended that you do not put "~ / .emacs.d" in your load-path , since the ~ / .emacs.d directory may / will contain configuration files, the name encounters real emacs packages. That is, place the autocomplete files in the * sub * ~ / .emacs.d directory. ]

Your mistake looks very strange: while called-interactively-p declared in Emacs-23 as taking exactly 1 argument, it also takes 0 arguments (to ease the pain for external packages that want to support both Emacs-22 and Emacs-23). So there seems to be something else in your config that somehow overrides call-interactiveively-p.

+2
source share

All Articles