rsox, you apparently have not kept up with the news. Spain recently arrested a bunch of people for terrorism, and has done so continuosuly in the past 2 years.
Theiur continuous police action, resulting in the arrest of many many people is what has prevented the continued planned but not carried out attacks.