From cf5cf236d727e56e4558f5e30366130413574863 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 26 May 2008 07:51:21 +0000 Subject: * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is not available. a patch from Kazuhiro NISHIYAMA in [ruby-dev:34853]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ misc/ruby-mode.el | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7984b1174e..c7567f128b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon May 26 16:49:55 2008 Yukihiro Matsumoto + + * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is + not available. a patch from Kazuhiro NISHIYAMA + in [ruby-dev:34853]. + Mon May 26 16:41:35 2008 NAKAMURA Usaku * file.c (ntfs_tail): filename which starts with '.' is valid. diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 138b1b9b2b..01f22898b3 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -312,7 +312,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 -- cgit v1.2.3