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

ruby-changes:7682

From: matz <ko1@a...>
Date: Sun, 7 Sep 2008 07:32:53 +0900 (JST)
Subject: [ruby-changes:7682] Ruby:r19203 (trunk): * misc/ruby-mode.el: don't crash the whole mode if the Subversion

matz	2008-09-07 07:32:38 +0900 (Sun, 07 Sep 2008)

  New Revision: 19203

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

  Log:
    * misc/ruby-mode.el: don't crash the whole mode if the Subversion
      $ keyword isn't interpolated.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19202)
+++ ChangeLog	(revision 19203)
@@ -5,6 +5,9 @@
 
 	* misc/ruby-mode.el: improve here-doc performance.
 
+	* misc/ruby-mode.el: don't crash the whole mode if the Subversion
+	  $ keyword isn't interpolated.
+
 Sun Sep  7 06:31:51 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* file.c (file_expand_path): applied a patch from Nobuhiro Tachino
Index: misc/ruby-mode.el
===================================================================
--- misc/ruby-mode.el	(revision 19202)
+++ misc/ruby-mode.el	(revision 19203)
@@ -9,9 +9,8 @@
   "Ruby mode revision string.")
 
 (defconst ruby-mode-version
-  (progn
-   (string-match "[0-9.]+" ruby-mode-revision)
-   (substring ruby-mode-revision (match-beginning 0) (match-end 0)))
+  (and (string-match "[0-9.]+" ruby-mode-revision)
+       (substring ruby-mode-revision (match-beginning 0) (match-end 0)))
   "Ruby mode version number.")
 
 (defconst ruby-block-beg-re

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

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