From: Brett Williams Date: 2002-02-02T04:35:04+09:00 Subject: Re: latest ruby-mode.el messing up c++ mode fontification Yukihiro Matsumoto wrote: > Hi, > > In message "latest ruby-mode.el messing up c++ mode fontification" > on 02/02/01, Brett Williams writes: > > |Is ruby-mode changing some global fontification resources? If I never > |invoke ruby-mode, then the C++ code looks fine... > > Here's the patch. > > --- ruby-mode.el 2002/01/25 08:22:11 1.45 > +++ ruby-mode.el 2002/02/01 04:00:52 > @@ -775,2 +775,4 @@ > (make-local-variable 'font-lock-defaults) > + (make-local-variable 'font-lock-keywords) > + (make-local-variable 'font-lock-syntactic-keywords) > (setq font-lock-defaults '((ruby-font-lock-keywords) nil nil)) Thanks--works perfectly now. One thing I have really missed is (show-paren-style (quote expression)) when using ruby. I've written an equivalent (that highlights ruby ... end blocks, but it is a fragile hack (my emacs lisp skills are not up to par) which tends to break easily. Does anyone else have something like this?