340 idles at 1500 won't stay running in gear

Based on the way the OP described the engine, I was thinking valve lash too. But then again, valves being out of spec wouldn't happen all of a sudden they way he described. Still, poorly adjusted valves could make it more difficult to find the real issue.