The word on the streets is that Islamic State (Isis or Isil to its many enemies) is going under. In January it lost control of the city of Ramadi in Iraq after a long siege; in June it lost Fallujah. In March it lost Palmyra to Syrian government troops,
Gwynne Dyer: Isis will benefit from Turkey's real target in Syria, the Kurds
Subscribe to listen
An Isis propaganda video appears to show young boys having been recruited into the terrorist organisation.
For Erdogan, the big threat is the secession of the south-east corner of the country where Kurds (20 per cent of Turkey's population) are the local majority. All the countries next to that corner of Turkey (Iran, Iraq and Syria) also have Kurdish majorities living along the border, and the Turkish nightmare is for one of those areas to become an independent Kurdish-ruled state.
That is exactly what has been happening in northern Syria. The Syrian Kurds made themselves available to Washington as America's main ally on the ground, and with huge help from American air strikes their army has driven Islamic State back all along the border. It now controls a deep strip of territory along 80 per cent of Syria's border with Turkey, a proto-state that the Kurds call Rojava.
This is entirely Erdogan's fault. If he had been loyal to Turkey's alliance with the United States and closed the border with Syria, neither Islamic State or the rival Islamist movement, the Nusra Front, would have grown to dominate the entire Syrian rebel movement. But he didn't close it, because he was so keen to overthrow Assad that he backed anybody who was fighting against him.
Faced with the threat of an Islamist-ruled Syria, Washington made a de facto alliance with the Syrian Kurds, and they have served it well in the fight against Islamic State. But that just makes them a bigger threat in Erdogan's eyes, and so he sent his army into Syria last week.
Not very deep into Syria so far, and of course to justify this intervention to the United States Erdogan has said that it is to fight "Islamic State and other terrorists". But since Turkey always officially refers to Washington's Kurdish allies in Syria as "terrorists", it doesn't take great geopolitical insight to figure out who Turkey's main target is.
Islamic State is well aware of this, which is why it evacuated the border town of Jarablus, where the Turkish army crossed into Syria, without a fight. Why not just step aside and let the Turks make contact with their real target, the Syrian Kurdish army, without wasting everybody's time?
Contact has now been made, and Turkey is busily shelling and bombing Kurdish-led forces in Manbij, the next town south from Jarablus. The coming months will probably see a steady expansion of Turkey's offensive against the Syrian Kurds, and a corresponding drop in the latters's military effort against Islamic State.
So the Syrian Kurds will be busy fighting the Turks, and Islamic State will survive. It is an iron rule of Middle Eastern politics that everbody always betrays the Kurds eventually - and Washington will too.
Gwynne Dyer is an independent journalist whose articles are published in 45 countries.