anchor.diff:  			_ -> "IllegalModName"			
   		    end,
       case is_mod_name(TargetModName) of 
  -	true -> filename:join([filename:dirname(CurrentFName), TargetModName++".erl"]);	    
  +	true -> {filename:join([filename:dirname(CurrentFName), TargetModName++".erl"]), TargetModName};
   	_  -> ErrMsg
       end.
       
  
positive.code: move_fun(FName, Line, Col, TargetModorFileName, CreateNewFile, SearchPaths, TabWidth, Editor) ->
      ?wrangler_io("\nCMD: ~p:move_fun(~p, ~p, ~p, ~p, ~p, ~p, ~p).",
  		 [?MODULE, FName, Line, Col, TargetModorFileName, CreateNewFile, SearchPaths, TabWidth]),
      TargetFName = get_target_file_name(FName, TargetModorFileName),
      case TargetFName of 
  	FName -> {error, "The target module is the same as the current module."};
  	{error, Reason} -> {error, Reason};
  
negative.code: 	     end
      end.
  
  get_target_file_mod_name(CurrentFName, TargetModorFileName) ->
      ErrMsg = {error, "Illegal target module/file name."},
      TargetModName = case filename:extension(TargetModorFileName) of 
  			".erl" -> filename:basename(TargetModorFileName, ".erl");
  