ri-mode bug when there is no current word

I replaced the stock implementation of ruby-default-ri-entry with the
following code so that I could use it even if I didn’t have a current

(defun ruby-default-ri-entry ()
  (let (word)
      (setq word (or (current-word) ""))
      (if (string-match "[._]+$" word)
	  (setq word (substring word 0 (match-beginning 0))))
      (format "%s%s"


On Technorati:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>