Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrong number of arguments: called-interactively-p, 1

Tags:

emacs

centos

~/.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 the error as "Wrong number of arguments: called-interactively-p, 1". In other words, emacs finds error until the line (ac-config-default).

when I check the file .emacs.d/auto-complete.elc, I found the string "called-interactively-p".

Question> I have used the same setting for ubuntu without problems. Now I am switching centos 6.2. Is there a way that I fix this problem?

emacs --debug-init shows the following errors:

͂

like image 755
q0987 Avatar asked May 01 '12 15:05

q0987


2 Answers

It is worth mentioning that this error may arise if you move your emacs.d directory from one machine to another.

If this is the case, removing the compiled *.elc files should do the trick.

like image 110
diedthreetimes Avatar answered Sep 20 '22 02:09

diedthreetimes


In recent Emacsen, called-interactively-p requires an argument.

Do C-h f ac-quick-help RET, then replace (called-interactively-p) by (called-interactively-p 'any) and recompile/reload. Or send this bug to the package's author.

like image 39
bzg Avatar answered Sep 18 '22 02:09

bzg