summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-17 08:11:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-17 08:11:15 +0000
commitc97735b53c8b1c9f76543c9d802dde097b0f4e7a (patch)
tree15395d27674a9320f859b2a3ccb566ded54df9a4 /misc/ruby-mode.el
parenta4394e3f49eceade8b88db6f3dfd2da89da2accc (diff)
* misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' instead
of calling `run-hooks' directly to run the mode hook. patch from Chiyuan Zhang <pluskid AT gmail.com> in [ruby-core:15915] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 8a34dd1adf..dc3dca1210 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -299,7 +299,7 @@ The variable ruby-indent-level controls the amount of indentation.
(make-local-variable 'before-save-hook)
(add-hook 'before-save-hook 'ruby-mode-set-encoding)
- (run-hooks 'ruby-mode-hook))
+ (run-mode-hooks 'ruby-mode-hook))
(defun ruby-current-indentation ()
(save-excursion