girzel / gnorb

Glue code between the Org, Gnus, and BBDB packages for Emacs.
32 stars 4 forks source link

Emacs 24.3.1: (void-function with-eval-after-load) #19

Closed totherme closed 9 years ago

totherme commented 9 years ago

So, my previous reports have been from home, where I'm running 24.4... But my work machine currently runs emacs 24.3.1. On this machine, when I (require 'gnorb) I get the backtrace below.

As a workaround, I have now put the following in my init file, and all seems well:

(unless (fboundp 'with-eval-after-load)
  (defmacro with-eval-after-load (file &rest body)
    `(eval-after-load ,file
       `(funcall (function ,(lambda () ,@body))))))
Debugger entered--Lisp error: (void-function with-eval-after-load)
  (with-eval-after-load (quote gnus) (require (quote nngnorb)) (require (quote gnorb-gnus)) (require (quote gnorb-registry)))
  eval-buffer(#<buffer  *load*-929011> nil "/homes/gds/Documents/code/gnorb/gnorb.el" nil t)  ; Reading at buffer position 1119
  load-with-code-conversion("/homes/gds/Documents/code/gnorb/gnorb.el" "/homes/gds/Documents/code/gnorb/gnorb.el" nil t)
  require(gnorb)
...
girzel commented 9 years ago

Man, you're hitting all the bugs. I didn't realize that was such a new macro. I've dropped back to plain old eval-after-load, thanks for the report.

totherme commented 9 years ago

There's another of these here:

https://github.com/girzel/gnorb/blob/master/gnorb-utils.el#L435

Sorry I didn't notice this earlier -- I only removed my work-around from my init file this morning :S

girzel commented 9 years ago

Okay, thank you -- just zapped it.