From: Josh Huber Date: 2004-03-14T16:59:35+09:00 Subject: Re: ruby-mode.el - font lock not working? Asfand Yar Qazi writes: > (Working with the 1.8.1 version of ruby-mode.el) if you apply the > following patch to the ruby-mode.el file, it may work for you (it > worked for me.) Interesting...looks like this is the problem. Do you know why this happens? > *** /home/asfand/src/packages/ruby/ruby-1.8.1/misc/ruby-mode.el Fri > Dec 19 17:29:09 2003 > --- /home/asfand/.emacs-lisp/ruby-mode.el Sun Mar 14 07:36:51 2004 > *************** > *** 162,166 **** > :options '(t nil space) :group 'ruby) > > ! (eval-when-compile (require 'cl)) > (defun ruby-imenu-create-index-in-block (prefix beg end) > (let ((index-alist '()) (case-fold-search nil) > --- 162,169 ---- > :options '(t nil space) :group 'ruby) > > ! (eval-when-compile > ! (require 'cl) > ! (require 'font-lock) > ! ) > (defun ruby-imenu-create-index-in-block (prefix beg end) > (let ((index-alist '()) (case-fold-search nil) So, it seems as though just adding (require 'font-lock) prior to my (require 'ruby-mode) also fixes the problem. Seems pretty strange, though. Thanks for the hint! -- Josh Huber