I have installed paredit & need to turnoff smartparens. I checked this answer and I have added
(advice-add #'smartparens-mode :before-until (lambda (&rest args) t))
to my prelude starter kit. Now when I restart emacs I get this error
Symbol's function definition is void: advice-add
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.
When i run emacs with
emacs --debug-init
I dont get any errors or backtrace. It starts normally & everything is working fine.
But when i start emacs directly same error occurs. Can someone tell me how to debug this?
Update: my emacs config.
M-xemacs-version.)advice-addis part of the new advice system introduced in Emacs 24.4, so if you're on Emacs 24.3 or older, you can't use it. – itsjeyd Jan 16 '15 at 08:0224.4.1– Chillar Anand Jan 16 '15 at 09:16advice-add)?:(require 'advice)– lawlist Jan 16 '15 at 22:49advice.eland inside it do you have the functionadvice-add?M-x find-library RET advice RET– lawlist Jan 17 '15 at 16:18ppa:cassou/emacs. I have installed emacs on 2 systems using same ppa. Just found that one of it has advice.el. Other doesn't have it. May be i have messed it somewhere? – Chillar Anand Jan 20 '15 at 05:33defadviceinstead. – Jul 29 '15 at 14:10