summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-15 15:14:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-15 15:14:15 +0000
commit137eba65ba02236b9cdf4ac61f9e6b6bcabf1882 (patch)
treef1018f117b0d00ac67d9c5e206a3ff88a61627f5
parent0a284428cbf4512d3263ac2fdd54951d41e2c026 (diff)
downloadruby-137eba65ba02236b9cdf4ac61f9e6b6bcabf1882.tar.gz
ruby-137eba65ba02236b9cdf4ac61f9e6b6bcabf1882.tar.xz
ruby-137eba65ba02236b9cdf4ac61f9e6b6bcabf1882.zip
* misc/ruby-mode.el (ruby-special-char-p): should test at the
point if no argument. fixed by Michael Scholz <scholz-micha@gmx.de>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--misc/ruby-mode.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c9c59c0e6..a487d265b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Apr 16 00:14:06 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * misc/ruby-mode.el (ruby-special-char-p): should test at the
+ point if no argument. fixed by Michael Scholz
+ <scholz-micha@gmx.de>.
+
Tue Apr 15 19:35:08 2003 Minero Aoki <aamine@loveruby.net>
* lib/net/fileutils.rb: rm_r should raise Errno::ENOENT if file
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index ebb47c9e8..3b03e0ffc 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -282,7 +282,7 @@ The variable ruby-indent-level controls the amount of indentation.
(move-to-column (+ x shift))))))
(defun ruby-special-char-p (&optional pnt)
- (let ((c (char-before pnt)))
+ (let ((c (char-before (or pnt (point)))))
(cond ((or (eq c ??) (eq c ?$)))
((eq c ?\\)
(eq (char-before (1- (or pnt (point)))) ??)))))