anchor.diff:  -spec(rename_process/5::(filename(), integer(), integer(), string(), [dir()]) ->
   	       {error, string()} | {undecidables, string()}| {ok, [filename()]}).
   rename_process(FileName, Line, Col, NewName, SearchPaths) ->
  -    refac_rename_process:rename_process(FileName, Line, Col, NewName, SearchPaths).
  +    try_refactoring(refac_rename_process, rename_process, [FileName, Line, Col, NewName, SearchPaths]).
   
   
   
   -spec(new_macro/5::(filename(), pos(), pos(), string(), [dir()]) ->
   	      {error, string()} | {ok, string()}).
   new_macro(FileName, Start, End, MacroName, SearchPaths) -> 
  -    refac_new_macro:new_macro(FileName, Start, End, MacroName, SearchPaths).
  -
  -
  +    try_refactoring(refac_new_macro, new_macro, [FileName, Start, End, MacroName, SearchPaths]).
  +
  +
  +
  +try_refactoring(Mod, Fun, Args) ->
  +    case catch apply(Mod, Fun, Args) of 
  +	{ok, Res} ->
  +	    {ok, Res};
  +	{error, Reason} -> {error, Reason};
  +	_  -> {error, "Wrangler failed to perform this refactoring, please report error to erlang-refactor@kent.ac.uk."}
  +    end.
  +
  +    
   
   
   
  
positive.code:         -> {ok, [{filename(), filename()}]}
             | {error, string()}).
  move_fun(FileName, Line, Col, TargetModName, CreateNewFile, SearchPaths) ->
      refac_move_fun:move_fun(FileName, Line, Col, TargetModName, CreateNewFile, SearchPaths).
  
  
  %%@private
  
negative.code: -spec(rename_fun/5::(string(), integer(), integer(), string(), [dir()]) ->
  	     {error, string()} | {ok, [filename()]}).
  rename_fun(FileName, Line, Col, NewName, SearchPaths) ->
      try_refactoring(refac_rename_fun, rename_fun, [FileName, Line, Col, NewName, SearchPaths]).
  
  %%@private
  -spec(rename_fun_eclipse/5::(string(), integer(), integer(), string(), [dir()]) ->
  	     {error, string()} | {ok, [{filename(), filename(), string()}]}).
  rename_fun_eclipse(FileName, Line, Col, NewName, SearchPaths) ->
      try_refactoring(refac_rename_fun, rename_fun_eclipse, [FileName, Line, Col, NewName, SearchPaths]).
  
  %%======================================================================================
  %% @doc Rename a module with a user-supplied new name.
  