def ORIG_text(*val)
      if val.empty?
        return @list
      end
      lines = val[0]
      raise "Textpad: text() received nil" unless lines
      fmt = val.size == 2 ? val[1] : nil
      case fmt
      when Hash
        #raise "textpad.text expected content_type in Hash : #{fmt}"
        c = fmt[:content_type]
        t = fmt[:title]
        @title = t if t
        @content_type = c if c
        @stylesheet = fmt[:stylesheet] if fmt.key? :stylesheet
        $log.debug "  TEXTPAD text() got  #{@content_type} and #{@stylesheet} "
        fmt = c
        #raise "textpad.text expected content_type in Hash : #{fmt}" unless fmt
      when Symbol
        @content_type = fmt
      when NilClass
      else
        raise "textpad.text expected symbol or content_type in Hash, got #{fmt.class} "
      end

      ## some programs like testlistbox which uses multibuffers calls this with a config
      # in arg2 containing :content_type and :title


      # added so callers can have one interface and avoid an if condition
      #return formatted_text(lines, fmt) unless @content_type == :none
      # 2014-05-20 - 13:21 change and simplication of conversion process
      # We maintain original text in @list
      # but use another variable for native format (chunks).
      @parse_required = true
      @list = lines

      # 2014-06-15 - 13:39 i am commenting this off, since a user can change or set content_type
      # at any time, and also content handler.
      if @content_type
        # this will create a default content handler if not yet specified
        #  which is wrong since user may specify it after setting text. he may not have
        #  set the content type yet too. Too much dependent on order !
        #preprocess_text
        #parse_formatted_text lines, :content_type => @content_type, :stylesheet => @stylesheet
      end

      return @list if lines.empty?
      #@list = lines
      #@native_text ||= @list
      @_populate_needed = true
      @repaint_all = true
      @repaint_required = true
      init_vars
      # i don't want the whole thing going into the event 2014-06-04
      fire_property_change :text, "dummmy", "text has changed"
      self
    end
def ORIG_text(*val)
      if val.empty?
        return @list
      end
      lines = val[0]
      raise "Textpad: text() received nil" unless lines
      fmt = val.size == 2 ? val[1] : nil
      case fmt
      when Hash
        #raise "textpad.text expected content_type in Hash : #{fmt}"
        c = fmt[:content_type]
        t = fmt[:title]
        @title = t if t
        @content_type = c if c
        @stylesheet = fmt[:stylesheet] if fmt.key? :stylesheet
        $log.debug "  TEXTPAD text() got  #{@content_type} and #{@stylesheet} "
        fmt = c
        #raise "textpad.text expected content_type in Hash : #{fmt}" unless fmt
      when Symbol
        @content_type = fmt
      when NilClass
      else
        raise "textpad.text expected symbol or content_type in Hash, got #{fmt.class} "
      end

      ## some programs like testlistbox which uses multibuffers calls this with a config
      # in arg2 containing :content_type and :title


      # added so callers can have one interface and avoid an if condition
      #return formatted_text(lines, fmt) unless @content_type == :none
      # 2014-05-20 - 13:21 change and simplication of conversion process
      # We maintain original text in @list
      # but use another variable for native format (chunks).
      @parse_required = true
      @list = lines

      # 2014-06-15 - 13:39 i am commenting this off, since a user can change or set content_type
      # at any time, and also content handler.
      if @content_type
        # this will create a default content handler if not yet specified
        #  which is wrong since user may specify it after setting text. he may not have
        #  set the content type yet too. Too much dependent on order !
        #preprocess_text
        #parse_formatted_text lines, :content_type => @content_type, :stylesheet => @stylesheet
      end

      return @list if lines.empty?
      #@list = lines
      #@native_text ||= @list
      @_populate_needed = true
      @repaint_all = true
      @repaint_required = true
      init_vars
      # i don't want the whole thing going into the event 2014-06-04
      fire_property_change :text, "dummmy", "text has changed"
      self
    end
old text {{{