Kristof Bastiaensen wrote:

> [ANN] Ri for (X)Emacs 0.1

This is great. I've always missed an equivalent of M-x cperl-perldoc.

However, I'm having a bit of trouble getting it to run (GNU Emacs 21.3 
on WinXP).

I've got the following in my .emacs

(setq ri-ruby-script "C:/ruby/1.8.1/bin/ri-emacs.rb")
(autoload 'ri "C:/Program Files/emacs-21.3-cvs/site-lisp/ri-ruby.el" nil t)

When I try to run ri "Hash" for example, I get the stuff below. I'm 
afraid I don't know enough Emacs Lisp to understand what might be going 
awry...

thanks
alex

Debugger entered--Lisp error: (wrong-type-argument listp 
C:/ruby/1\.8\.1/bin/ri-emacs\.rb:31:in)
   cdr(C:/ruby/1\.8\.1/bin/ri-emacs\.rb:31:in)
   (null (cdr classes))
   (cond ((null classes) nil) ((null ...) (caar classes)) (t 
(completing-read "class name: " classes nil t)))
   (let* ((classes ...) (class ...) (method ...) (info ...)) (cond (info 
....) (...) (t ... ... ...)))
   ri("Hash")
   eval((ri "Hash"))
   eval-last-sexp-1(nil)
   eval-last-sexp(nil)
   call-interactively(eval-last-sexp)