Allow nesting of autocommands when restoring the session.