anchor.diff:  			_Res=refac_annotate_pid:ann_pid_info(SearchPaths),
   			%% get the AST with pid information.
   			{ok, {AnnAST1,_Info}}= refac_util:parse_annotate_file(FName, true, SearchPaths), 
  -			{ok, MatchExpr} = pos_to_spawn_match_expr(AnnAST1, Start, End),
  -			case pre_cond_check(ModName,AnnAST1, Start, MatchExpr, RegName1, Info, SearchPaths) of 
  -			    ok -> 
  -				Pid = refac_syntax:match_expr_pattern(MatchExpr),
  -				case do_register(FName, AnnAST1, MatchExpr, Pid, RegName1, SearchPaths) of 
  -				    {ok, Results} ->
  -					case Editor of 
  -					    emacs ->
  -						refac_util:write_refactored_files(Results),
  -						ChangedFiles = lists:map(fun ({{F, _F}, _AST}) -> F end, Results),
  -						io:format("The following files have been changed by this refactoring:\n~p\n",
  -							  [ChangedFiles]),
  -						{ok, ChangedFiles};
  -					    eclipse ->
  -						 Res = lists:map(fun({{OldFName, NewFName}, AST}) -> 
  -									 {OldFName, NewFName, refac_prettypr:print_ast(AST)} end, Results),
  -						{ok, Res}
  -					end;
  +			case pos_to_spawn_match_expr(AnnAST1, Start, End) of 
  +			    {ok, MatchExpr} ->
  +				case pre_cond_check(ModName,AnnAST1, Start, MatchExpr, RegName1, Info, SearchPaths) of 
  +				    ok -> 
  +					Pid = refac_syntax:match_expr_pattern(MatchExpr),
  +					case do_register(FName, AnnAST1, MatchExpr, Pid, RegName1, SearchPaths) of 
  +					    {ok, Results} ->
  +						case Editor of 
  +						    emacs ->
  +							refac_util:write_refactored_files(Results),
  +							ChangedFiles = lists:map(fun ({{F, _F}, _AST}) -> F end, Results),
  +							io:format("The following files have been changed by this refactoring:\n~p\n",
  +								  [ChangedFiles]),
  +							{ok, ChangedFiles};
  +						    eclipse ->
  +							Res = lists:map(fun({{OldFName, NewFName}, AST}) -> 
  +										{OldFName, NewFName, refac_prettypr:print_ast(AST)} end, Results),
  +							{ok, Res}
  +						end;
  +					    {error, Reason} -> {error, Reason}
  +					end;	
  +				    {unknown_pnames, _UnKnownPNames, RegPids} -> {unknown_pnames, RegPids};
  +				    {unknown_pids, UnKnownPids} ->{unknown_pids, UnKnownPids};
   				    {error, Reason} -> {error, Reason}
  -				end;	
  -			    {unknown_pnames, _UnKnownPNames, RegPids} -> {unknown_pnames, RegPids};
  -			    {unknown_pids, UnKnownPids} ->{unknown_pids, UnKnownPids};
  +				end;
   			    {error, Reason} -> {error, Reason}
   			end;
   		    {error, Reason} -> {error, Reason} 
  
positive.code: 
  register_pid(FName, Start={Line1, Col1}, End={Line2, Col2}, RegName, SearchPaths, Editor) ->
      io:format("\nCMD: ~p:register_pid(~p, {~p,~p}, {~p,~p}, ~p,~p)\n",  [?MODULE, FName, Line1, Col1, Line2, Col2, RegName, SearchPaths]),
      case refac_util:is_fun_name(RegName) of
  	true ->	{ok, {AnnAST,Info}}= refac_util:parse_annotate_file(FName, true, SearchPaths), 
  		case pos_to_spawn_match_expr(AnnAST, Start, End) of
  		    {ok, _MatchExpr1} ->
  
negative.code: 
  
  
  is_process_name(Name) ->
      refac_util:is_fun_name(Name) and (list_to_atom(Name) =/= undefined).
  