diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-26 07:51:21 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-26 07:51:21 +0000 |
commit | cf5cf236d727e56e4558f5e30366130413574863 (patch) | |
tree | 2414c80a0c816069bfad8cd9b416aa153791ae46 | |
parent | 3ecb126e9275b8a071e66f6bc4b784b61281bc7e (diff) | |
download | ruby-cf5cf236d727e56e4558f5e30366130413574863.tar.gz |
* 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:34853].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | misc/ruby-mode.el | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon May 26 16:49:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * 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:34853]. + Mon May 26 16:41:35 2008 NAKAMURA Usaku <usa@ruby-lang.org> * 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 |