> What do you suppose happens when, for example, Saudi Arabia can no longer feed itself? It just peacefully and gently starves to death?
First, I think you have to segregate between different kinds of fossil fuels.
Coal is the worst. From what I understand, it's mostly used in industry, power generation and heating. The main problem is: it's really dirty.
Natural gas probably has a much longer period of future usability. Tesla has shown quite readily that batteries are probably better than peaker plants for most cases. But for home heating and cooking, natural gas will probably have utility for quite some time. Yes - it does release greenhouse glasses, but the immediate health concerns in terms of the pm2.5 released by burning it are relatively minor.
Petroleum is in a similar boat. The main use for petroleum - automotive transport will probably be gradually phased out over the next 20 years (a reasonable approximation of how long used cars last), but it's used for more than just that. Plastic production and aviation fuel are probably two of the uses that will probably have some real longevity to them. In theory, naval propulsion is more amenable to electrification than aviation, but that'll be tricky to do economically; that is another area that petroleum could have a long useful life in.
In short, while there will be a dramatic drop in the consumption of fossil fuels, I have serious doubts that it will get anywhere close to zero in less than 40 years. I do think it is likely that coal burning will probably go away completely and both natural gas and petroleum use will decrease by over 90%. What that will do to the price is hard to say.