int lineCount = 0;
	public static boolean replaceAll(View view, Component comp)	{		int lineCount = 0;		int fileCount = 0;		record(view,"replace-all");		view.showWaitCursor();		try		{			Buffer buffer = fileset.getFirstBuffer(view);			do			{				// Wait for buffer to finish loading				if(buffer.isPerformingIO())					VFSManager.waitForRequests();				// Leave buffer in a consistent state if				// an error occurs				try				{					buffer.beginCompoundEdit();					int retVal = replaceAll(view,buffer);					if(retVal != 0)					{						fileCount++;						lineCount += retVal;						fileset.matchFound(buffer);					}				}				finally				{					buffer.endCompoundEdit();				}			}			while((buffer = fileset.getNextBuffer(view,buffer)) != null);		}		catch(Exception e)		{			Log.log(Log.ERROR,SearchAndReplace.class,e);			Object[] args = { e.getMessage() };			if(args[0] == null)				args[0] = e.toString();			GUIUtilities.error(comp,"searcherror",args);		}		finally		{			view.hideWaitCursor();		}		/* Don't do this when playing a macro, cos it's annoying */		if(!Macros.isMacroPlaying())		{			if(fileCount == 0)				view.getToolkit().beep();			else			{				Object[] args = { new Integer(lineCount),					new Integer(fileCount) };				GUIUtilities.message(view,"replace-results",args);			}		}		return (fileCount != 0);	}