>> Basically, I think since our test suite runs just fine in batch, we >> should be able to run it with inhibit-interaction=t as well (which >> would fix annoying problems when some test fails and ends up waiting >> for user input). > > Yes, I agree. I'm interested in making this possible and willing to put > in the work to do it for the Emacs test suite. (since it will help make > my own tests reliable) IIUC, Eli is opposed to changing the behavior of `inhibit-interaction`, so I think this will require a new variable, whose purpose is similar but will allow more "quasi interactions" (most importantly calling `read-event` with a timeout). If you're interested, here's my WiP patch (which modifies the way `inhibit-interaction` behaves). The most delicate point might be the change to `sit-for` in batch mode: I don't have a clear idea why we use `sleep-for` there and what is the impact of using `read-event` instead. Stefan