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 | 8b183eb6206f9b60814fea780a04043072d92af1 (patch) | |
| tree | 2414c80a0c816069bfad8cd9b416aa153791ae46 | |
| parent | e8379abcf3aa60db351dfe0745725fcfddb4f324 (diff) | |
| download | ruby-8b183eb6206f9b60814fea780a04043072d92af1.tar.gz ruby-8b183eb6206f9b60814fea780a04043072d92af1.tar.xz ruby-8b183eb6206f9b60814fea780a04043072d92af1.zip | |
* 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: http://svn.ruby-lang.org/repos/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 138b1b9b2..01f22898b 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 |
