# File bin/el4r-instance, line 464
    def initialize
      @emacs_in = STDIN
      @emacs_out = STDOUT
      @call_level = 0
      @last_error = nil
      @el4r_is_debug = ENV["EL4R_DEBUG"]
      @el4r_homedir = ENV["EL4R_HOME"] || File.expand_path("~/.el4r")
      @elvar = ELVariables.new(self)
      @el4r_rubyobj_stock = ELRubyObjectStock.new(self)
      @el4r_garbage_elobj_ids = []

      log = ENV["EL4R_LOG"]
      @log = case log
             when "stderr"; STDERR
             when /^\|/; File.popen($~.post_match, "w")
             else; File.open(log || "/tmp/el4r-#{`whoami`.chomp}.#{Process.pid}.log", "w")
             end

      @el_backtrace_reset_threshold = 1 # very nasty hack!
      @el_backtrace = []
    end