1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2008-05-26 07:51:21 +00:00
parent 3ecb126e92
commit cf5cf236d7
2 changed files with 9 additions and 1 deletions

View file

@ -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.

View file

@ -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