From: matz@... (Yukihiro Matsumoto) Date: 2001-12-26T23:30:46+09:00 Subject: [ruby-talk:29442] Re: XEmacs problems with ruby-mode.el Hi, In message "[ruby-talk:29370] Re: XEmacs problems with ruby-mode.el" on 01/12/24, Le Wang <> writes: |It seems I'm talking to myself here, but I founnd a patch for a |previous version of ruby-mode.el by searching for "xemacs + |ruby-mode.el" from google, and did something similar for version 1.39, |and it seems to be working for me. Will anybody using XEmacs confirms this patch? I'd like to merge it, but I myself do not use XEmacs. matz. |--- ruby-mode.el Sun Dec 23 10:28:58 2001 |+++ ruby-mode.el.new Sun Dec 23 10:44:16 2001 |@@ -671,10 +671,6 @@ | (or (boundp 'font-lock-variable-name-face) | (setq font-lock-variable-name-face font-lock-type-face)) | |- |- (add-hook 'ruby-mode-hook |- '(lambda () |- (make-local-variable 'font-lock-syntactic-keywords) | (setq font-lock-syntactic-keywords | '( | ;; #{ }, #$hoge, #@foo are not comments |@@ -707,9 +703,14 @@ | (4 (7 . nil))) | ("^\\(=\\)begin\\(\\s \\|$\\)" 1 (7 . nil)) | ("^\\(=\\)end\\(\\s \\|$\\)" 1 (7 . nil)))) |- (make-local-variable 'font-lock-defaults) |- (setq font-lock-defaults '((ruby-font-lock-keywords) |nil nil)) |- (setq font-lock-keywords ruby-font-lock-keywords))) |+ (put major-mode 'font-lock-defaults |+ '((ruby-font-lock-keywords) |+ nil nil nil |+ beginning-of-line |+ (font-lock-syntactic-keywords |+ . ruby-font-lock-syntactic-keywords))) |+ |+ | | (defun ruby-font-lock-docs (limit) | (if (re-search-forward "^=begin\\(\\s \\|$\\)" limit t) |