From 4cec316bbc464c936639d198b73b1588f036c3bf Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 15 Apr 2003 15:14:15 +0000 Subject: [PATCH] * misc/ruby-mode.el (ruby-special-char-p): should test at the point if no argument. fixed by Michael Scholz . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ misc/ruby-mode.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c9c59c0e6b..a487d265bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Apr 16 00:14:06 2003 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-special-char-p): should test at the + point if no argument. fixed by Michael Scholz + . + Tue Apr 15 19:35:08 2003 Minero Aoki * 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)))) ??)))))