diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | misc/ruby-mode.el | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 ebb47c9e85..3b03e0ffc1 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)))) ??))))) |