0

the error is

Warning: ad-Orig-kill-new called with 3 arguments, but accepts only 1-2

I added the code into .emacs following the guide Warning when I revert from desktop session. Emacs

(ad-deactivate 'kill-region)  

but after restart emacs, it showed me the error message:

Symbol's function definition is void: ad-deactivate

How can I do to cope with the error: > Warning: ad-Orig-kill-new called with 3 arguments, but accepts only 1-2

thank you for your help

Community
  • 1
  • 1
Zoe Rowa
  • 1,329
  • 1
  • 11
  • 21
  • @Thomas its version is 23.3.1. – Zoe Rowa Jul 11 '12 at 06:40
  • (a) You are trying to deactivate advice for `kill-region` when it's telling you that `kill-new` is the advised function. (b) *Please* read the Q&A you linked to carefully. This is a temporary workaround, not a solution. (I'd hate to think of anyone leaving that it in their .emacs permanently.) – phils Jul 11 '12 at 10:46

1 Answers1

1

It's hard to be certain without more information about your emacs version and your load files, but if the function's definition is void it sounds like advice.el hasn't been loaded yet. You might try changing your .emacs file so it is loaded explicitly before calling the function; something like this:

(require 'advice)
(ad-deactivate 'kill-region)
assem
  • 2,077
  • 1
  • 19
  • 24