Disable undo and mark buffer as not modified when invoking search or
indexing.