emacs21$B$G(Bruby-mode.el

e$B@>;3OB9-$G$9!#e(B

emacs21e$B$Ge(Bruby-mode.ele$B$,e(B
File mode specification error: (void-function run-mode-hooks)
e$B$H$J$C$FF0$-$^$;$s!#e(B

run-mode-hookse$B$,$J$$$H$-$O0JA0$N$h$&$Ke(Brun-hookse$B$r;H$($P$$$$$He(B
e$B;W$&$N$G$9$,!"$I$&$G$7$g$&$+e(B?

Index: misc/ruby-mode.el

— misc/ruby-mode.el (revision 16583)
+++ misc/ruby-mode.el (working copy)
@@ -312,7 +312,9 @@
(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

e$B@>;3OB9-$G$9!#e(B

At Mon, 26 May 2008 15:58:47 +0900,
Kazuhiro NISHIYAMA wrote:

emacs21e$B$Ge(Bruby-mode.ele$B$,e(B
File mode specification error: (void-function run-mode-hooks)
e$B$H$J$C$FF0$-$^$;$s!#e(B

ruby_1_8e$B$NJ}$OF0$+$J$$$^$^$N$h$&$G$9!#e(B

Index: misc/ruby-mode.el

— misc/ruby-mode.el (revision 16583)
+++ misc/ruby-mode.el (working copy)
@@ -312,7 +312,9 @@
(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

e$B%A%1%C%He(B #569 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r19403.

http://redmine.ruby-lang.org/issues/show/569