diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | misc/ruby-mode.el | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Wed Sep 17 11:27:29 2008 Yukihiro Matsumoto <[email protected]> + + * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is + not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> + in [ruby-dev:36328]. + Mon Sep 15 20:57:00 2008 Yuki Sonoda (Yugui) <[email protected]> * lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298]. diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 40d23f3581..d02e564871 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -275,7 +275,9 @@ The variable ruby-indent-level controls the amount of indentation. (set (make-local-variable 'font-lock-syntax-table) ruby-font-lock-syntax-table) (set (make-local-variable 'font-lock-syntactic-keywords) ruby-font-lock-syntactic-keywords) - (run-mode-hooks 'ruby-mode-hook)) + (if (fboundp 'run-mode-hooks) + (run-mode-hooks 'ruby-mode-hook) + (run-hooks 'ruby-mode-hook))) (defun ruby-current-indentation () (save-excursion |