sabof / svg-mode-line-themes

SVG-based themes for mode-line
45 stars 3 forks source link

invalid-function add-function when doing (smt/enable) #5

Closed jasonm23 closed 9 years ago

jasonm23 commented 9 years ago
Debugger entered--Lisp error: (invalid-function add-function)
  add-function(:before #[128 "\300\301\"\210\300\302\"\207" [apply smt/register-user-location #[128 "\300\301\"\210\300\302\"\207" [apply redisplay--update-region-highlights ignore nil] 4 nil nil] nil] 4 nil nil] smt/register-user-location)
  smt/enable()
  eval((smt/enable) nil)
  eval-last-sexp-1(nil)
  #[257 "\204\303!\207  \303!\n)B\211A    =\204\211A\211@\207" [eval-expression-debug-on-error eval-last-sexp-fake-value debug-on-error eval-last-sexp-1] 4 2464854 "P"](nil)
  ad-Advice-eval-last-sexp(#[257 "\204\303!\207 \303!\n)B\211A    =\204\211A\211@\207" [eval-expression-debug-on-error eval-last-sexp-fake-value debug-on-error eval-last-sexp-1] 4 2464854 "P"] nil)
  apply(ad-Advice-eval-last-sexp #[257 "\204\303!\207   \303!\n)B\211A    =\204\211A\211@\207" [eval-expression-debug-on-error eval-last-sexp-fake-value debug-on-error eval-last-sexp-1] 4 2464854 "P"] nil)
  eval-last-sexp(nil)
  #<subr call-interactively>(eval-last-sexp nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> eval-last-sexp nil nil)
  apply(ad-Advice-call-interactively #<subr call-interactively> (eval-last-sexp nil nil))
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)
jasonm23 commented 9 years ago

Never mind, deleting .elc's fixed it.

jasonm23 commented 9 years ago

This might be similar to the powerline issue, #79 (eval-and-compile) is needed for byte compiling code with macros.

sabof commented 9 years ago

I think it's because I've neglected to require nadvice.

jasonm23 commented 9 years ago

Right, makes sense.

jasonm23 commented 9 years ago

I'll leave this open until it's patched.

sabof commented 9 years ago

Pushed to master

jasonm23 commented 9 years ago

Thank you