summaryrefslogtreecommitdiff
path: root/misc/ruby-style.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-09 14:53:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-09 14:53:26 +0000
commitfd8ca75663f20bcc0648c470b18986a8ee27375e ()
tree20ba0198f3cd4737402b04d7562b4c95bf3715dc /misc/ruby-style.el
parent2f67ef83328730d710d07fa69d6ee0d707c15bf8 (diff)
* misc/ruby-style.el (ruby-style-c-mode): buffer may not have file
name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--misc/ruby-style.el10
1 files changed, 9 insertions, 1 deletions
@@ -7,6 +7,14 @@
;;; $Author$
;;; created at: Thu Apr 26 13:54:01 JST 2007
;;;
(defconst ruby-style-revision "$Revision$"
"Ruby style revision string.")
@@ -56,7 +64,7 @@
(defun ruby-style-c-mode ()
(interactive)
- (if (or (string-match "/ruby\\>" (buffer-file-name))
(save-excursion
(goto-char (point-min))
(let ((head (progn (forward-line 100) (point)))