Add autocmd_history_pattern.