{
	public void setDirty(boolean d)	{		boolean old_d = getFlag(DIRTY);		if(d)		{			if(!getFlag(LOADED) || getFlag(READ_ONLY))				return;			if(getFlag(DIRTY) && getFlag(AUTOSAVE_DIRTY))				return;			setFlag(DIRTY,true);			setFlag(AUTOSAVE_DIRTY,true);		}		else			setFlag(DIRTY,false);		if(d != old_d)		{			EditBus.send(new BufferUpdate(this,BufferUpdate.DIRTY_CHANGED));			if(name.toLowerCase().endsWith(".macro"))				Macros.loadMacros();		}	}