aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-04 08:09:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-04 08:09:14 +0000
commitd4fa7a7d431db915148b36e78de9475b8574a49b (patch)
tree484d0f42a7c67fe711cde97ee9fda34a2b23926f
parenta242e9d8ac61e2e850df698dd61e1d7ea7d2c4dc (diff)
downloadruby-d4fa7a7d431db915148b36e78de9475b8574a49b.tar.gz
* object.c (rb_class_real): should not follow ICLASS link
* variable.c (classname): should follow ICLASS link explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/debug.rb4
-rw-r--r--misc/ruby-mode.el2
-rw-r--r--object.c3
4 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b3ce24a8c0..a73f04930f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Feb 4 15:38:29 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_class_real): should not follow ICLASS link
+
+ * variable.c (classname): should follow ICLASS link explicitly.
+
Thu Jan 31 20:45:33 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* lib/mkmf.rb (dir_config): prior --with flag.
diff --git a/lib/debug.rb b/lib/debug.rb
index 2216f3a4df..3eadef9b74 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -448,7 +448,7 @@ class DEBUGGER__
stdout.print "At toplevel\n"
end
binding, binding_file, binding_line = @frames[frame_pos]
- stdout.printf "#%d %s:%s\n", frame_pos, binding_file, binding_line
+ stdout.printf "#%d %s:%s\n", frame_pos+1, binding_file, binding_line
when /^\s*down(?:\s+(\d+))?$/
previous_line = nil
@@ -463,7 +463,7 @@ class DEBUGGER__
stdout.print "At stack bottom\n"
end
binding, binding_file, binding_line = @frames[frame_pos]
- stdout.printf "#%d %s:%s\n", frame_pos, binding_file, binding_line
+ stdout.printf "#%d %s:%s\n", frame_pos+1, binding_file, binding_line
when /^\s*fin(?:ish)?$/
if frame_pos == @frames.size
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index c365c20a3b..6f36a6bb9a 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -731,6 +731,8 @@ An end of a defun is found by moving forward from the beginning of one."
(add-hook 'ruby-mode-hook
'(lambda ()
(make-local-variable 'font-lock-defaults)
+ (make-local-variable 'font-lock-keywords)
+ (make-local-variable 'font-lock-syntactic-keywords)
(setq font-lock-defaults '((ruby-font-lock-keywords) nil nil))
(setq font-lock-keywords ruby-font-lock-keywords)
(setq font-lock-syntactic-keywords ruby-font-lock-syntactic-keywords)))))
diff --git a/object.c b/object.c
index e0ccc11697..51b04355fd 100644
--- a/object.c
+++ b/object.c
@@ -76,9 +76,6 @@ VALUE
rb_class_real(cl)
VALUE cl;
{
- if (TYPE(cl) == T_ICLASS) {
- cl = RBASIC(cl)->klass;
- }
while (FL_TEST(cl, FL_SINGLETON) || TYPE(cl) == T_ICLASS) {
cl = RCLASS(cl)->super;
}