I've been in quite a few "raccoon-food" situations over the years... I'm not the most dsciplined eater on a ride, but I find that my body can pretty much digest anything if the need is there. Probably my go-to-oh-my-god-im-bonking gas station combo is chocolate milk and a pop tart. I know milk sounds like a terrible idea (thanks Ron Burgandy), but chocolate milk is an amazing recovery drink and does well enough during a long ride too. I can't stomach power bars anymore, but I can almost always eat a pop tart.
Bonus beta for cyclist who actually plan their food: I have yet to get sick of Bobo's oat bars... they're also vegan and gluten free, which admittedly doesn't appeal to me, but hey why not?