anchor.diff:  		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.
  
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: 
  -module(refac_rename_var).
  
  -compile(export_all).
  
  -export([rename_var/6, rename_var_eclipse/6]).
  
  -include("../include/wrangler.hrl").
  