# emacs21$B$G(Bruby-mode.el

**URL:** <https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637>\
**Category:** Development\
**Created:** [May 26, 2008, 9:00am UTC](https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637 "2008-05-26T09:00:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [May 26, 2008, 9:00am UTC](https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637/1 "2008-05-26T09:00:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [September 16, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637/2 "2008-09-16T13:54:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [September 18, 2008, 8:47am UTC](https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637/3 "2008-09-18T08:47:52Z")

</div>

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](http://redmine.ruby-lang.org/issues/show/569)
