I've had the annoyance of which you speak for a long time. Just one in a laundry list of symptoms that I chalk up to celiac. I get it from stress, usually. Not really from foods, unless I've been glutened.
Tums, prilosec, tagamet, tylenol, tibetian chanting under a full moon on a tuesday when the planets aligned (

)...nothing seemed to help.
I sleep on a pyramid of pillows (I don't think I need it now, but it's habit), and I take antispasmodics (I use bentyl as needed) when it flares up.
I don't get it as much since going gluten-free, so I'm not much help for you. Has your dr ever given you antispasmodics?