To what extent do new terrorist threats or incidents drive new legislative initiatives?

To what extent do new terrorist threats or incidents drive new legislative initiatives?