Monday, April 2, 2007

Debian Sid and speedbar

After using Ubuntu for quite some time, I decided to go back to my old favourite Debian. So I installed Debian Sid on my laptop Friday last. I'm an emacs user. So one of the first things that got installed was emacs-snapshot :-). Unfortunately I need to hack on Java for some days, so I went ahead and installed jde as well. I fire up emacs to do some python coding and I get this error --
File mode specification error: (error "Recursive `require' for feature `sb-info'")
I searched around the net and found out a patch here

According to the post, edit the file
/usr/share/emacs/site-lisp/speedbar/sb-info.el
and put the line
(provide 'sb-info)
before
(eval-after-load "info" '(require 'sb-info))
instead of after.

After this:
M-x byte-compile-file /path/to/sb-info.el
This will generate the sb-info.elc, and since I'm using emacs-snapshot,
I moved this file to
 /usr/share/emacs-snapshot/site-lisp/speedbar/ 
Voila! Problem Solved.

Also, I read somewhere else, that this has been fixed upstream in the cedet CVS.
That might take sometime to trickle down debian sid, I guess.