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

ruby-changes:7883

From: matz <ko1@a...>
Date: Thu, 18 Sep 2008 15:38:04 +0900 (JST)
Subject: [ruby-changes:7883] Ruby:r19403 (ruby_1_8): * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is

matz	2008-09-18 15:37:40 +0900 (Thu, 18 Sep 2008)

  New Revision: 19403

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19403

  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:36328].

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/misc/ruby-mode.el

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 19402)
+++ ruby_1_8/ChangeLog	(revision 19403)
@@ -1,3 +1,9 @@
+Wed Sep 17 11:27:29 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:36328].
+
 Mon Sep 15 20:57:00 2008  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298].
Index: ruby_1_8/misc/ruby-mode.el
===================================================================
--- ruby_1_8/misc/ruby-mode.el	(revision 19402)
+++ ruby_1_8/misc/ruby-mode.el	(revision 19403)
@@ -275,7 +275,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/

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