From: ueno Date: Fri, 12 Aug 2005 00:47:15 +0000 (+0000) Subject: Fixed. X-Git-Tag: channel-coding-branchpoint~139 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96cb5c57f82be3cf1727d540f3a561f2c04e0b68;p=elisp%2Friece.git Fixed. --- diff --git a/lisp/server.rb b/lisp/server.rb index 24f65ee..a176388 100644 --- a/lisp/server.rb +++ b/lisp/server.rb @@ -75,8 +75,8 @@ class Server @out.puts("OK\r\n") Thread.current[:rubyserv_name] = name out = @out - e = Module.new - e.module_eval do + env = Module.new + env.module_eval do @out = out def output(s) @@ -86,7 +86,7 @@ class Server end begin Thread.current[:rubyserv_error] = false - Thread.current[:rubyserv_response] = eval(r, e.module_eval('binding()')) + Thread.current[:rubyserv_response] = eval(r, env.module_eval{binding()}) rescue Exception => e Thread.current[:rubyserv_error] = true Thread.current[:rubyserv_response] = e.to_s.sub(/\A.*?\n/, '')