diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-18 06:37:40 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-18 06:37:40 +0000 |
commit | 51f98f9b26038ebca69e39f740c5812eb4fdfce3 (patch) | |
tree | 832d19b276a6b244b55b05ffe26349ebde02f6b5 /misc/ruby-mode.el | |
parent | b4248a27101ea40c35f057e2b11110892879edf0 (diff) |
* 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].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r-- | misc/ruby-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 |