[前][次][番号順一覧][スレッド一覧]

ruby-changes:5116

From: matz <ko1@a...>
Date: Mon, 26 May 2008 16:51:38 +0900 (JST)
Subject: [ruby-changes:5116] Ruby:r16611 (trunk): * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is

matz	2008-05-26 16:51:21 +0900 (Mon, 26 May 2008)

  New Revision: 16611

  Modified files:
    trunk/ChangeLog
    trunk/misc/ruby-mode.el

  Log:
    * 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].

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/misc/ruby-mode.el?r1=16611&r2=16610&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16611&r2=16610&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 16610)
+++ ChangeLog	(revision 16611)
@@ -1,3 +1,9 @@
+Mon May 26 16:49:55 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* 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@r...>
 
 	* file.c (ntfs_tail): filename which starts with '.' is valid.
Index: misc/ruby-mode.el
===================================================================
--- misc/ruby-mode.el	(revision 16610)
+++ misc/ruby-mode.el	(revision 16611)
@@ -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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]