1

I am using Aquamacs 3.3 GNU Emacs 25.1.1, and I got the error message 'Wrong number of arguments: setq, 3' every time when I trying to open a file the first time.

How could I solve this problem?

Thank you.

  • 3
    Try using M-x toggle-debug-on-error, then include the resulting backtrace into the question. – wasamasa Oct 31 '16 at 10:58
  • I finally find the problem is caused by using 'subfigure' package in my latex file. And this problem has been solved by changing 'subfigure.el'. And specific salutation is given in link. Hope this helps. – Raymond Oct 31 '16 at 11:02
2

As I said in https://emacs.stackexchange.com/questions/28155/unable-to-update-packages-on-emacs-25-1#comment43164_28155 one of the changes in emacs is that now setq requires an even number of arguments. If you set the debug-on-error variable to t then when you get this error you should enter the debugger and see where the error is coming from. Adding nil as a final argument should resolve your problem.

  • 2
    BTW, one can find news about this change via C-u C-h n 25.1 RET C-s setq. – xuchunyang Oct 31 '16 at 11:08
1

I finally find the problem is caused by using 'subfigure' package in my latex file. And this problem has been solved by changing 'subfigure.el'. And specific salutation is given in thread on google groups. Hope this helps.

  • 2
    This bug in subfigure.el was fixed in January. I suggest you install the latest AUCTeX version from ELPA. I don't use Aquamacs, but if it supports package installation from ELPA, try M-x package-install RET auctex RET. – Arash Esbati Nov 2 '16 at 14:23
  • @ArashEsbati: it used to work fine for a long time for me, but the error returned magically. Even with the newest AUCTeX version. Fixing the file subfigure.el manually helped. :-/ – Jan Jun 18 '18 at 18:06
  • 1
    @Jan - It seems you have two AUCTeX versions installed. If you have the latest version installed, a manual fix would be impossible. Please check your HD for different installations. Besides, subfigure is deprecated; consider using subcaption which is also supported by AUCTeX. – Arash Esbati Jun 24 '18 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.