This also makes the macro check if the event is actually in the buffer, and if it is not, then log about that and finish the loop.
This also makes the macro check if the event is actually in the buffer, and if it is not, then log about that and finish the loop.