anchor.diff:  	   {AnnAST2, _Changed} = rename(AnnAST1, DefinePos, NewName1),
   	   case Editor of
   	     emacs ->
  -		   refac_util:write_refactored_files_for_preview([{{FName, FName}, AnnAST2}], 
  -								 io_lib:format("~ts", [Cmd])),
  +		   refac_util:write_refactored_files_for_preview([{{FName, FName}, AnnAST2}], Cmd1),
   		   {ok, [FName]};
  -	       eclipse ->
  -		   Content = refac_prettypr:print_ast(refac_util:file_format(FName), AnnAST2),
  -		   {ok, [{FName, FName, Content}]}
  +	     eclipse ->
  +		 Content = refac_prettypr:print_ast(refac_util:file_format(FName), AnnAST2),
  +		 {ok, [{FName, FName, Content}]}
   	   end;
          true ->
   	   case Editor of
  
positive.code: 
  %%-spec(rename/3::(syntaxTree(), [{integer(), integer()}], atom()) ->
  %%	     {syntaxTree(), bool()}).
  rename(Node, DefinePos, NewName) ->
      refac_util:stop_tdTP(fun do_rename/2, Node, {DefinePos, NewName}).
  
  %% =====================================================================
  %%
  
  do_rename(Node1, {DefinePos, NewName}) ->
      case refac_syntax:type(Node1) of
        variable ->
  	  As = refac_syntax:get_ann(Node1),
  	  case lists:keysearch(def, 1, As) of
  	    {value, {def, DefinePos}} ->
  		{refac_syntax:set_name(Node1, NewName), true};
  	    _ -> {Node1, false}
  	  end;
        _ -> {Node1, false}
      end.
  
  
  
negative.code: 		end
  	end,
      lists:usort(refac_syntax_lib:fold(F, [], Node)).
  
  
  
  format_search_paths(Paths)->
      format_search_paths(Paths, "").
      
  format_search_paths([], Str)->
      Str;
  format_search_paths([P|T], Str)->
      case Str of
  	[] ->format_search_paths(T, "\""++P++"\"");
  	_ ->format_search_paths(T, Str++", \""++P++"\"")
      end.
  