Please try the attached bug17046-b.el. It's the same you sent me, plus some code at the start. I need to see the content of *Messages* in the two cases (with and without bug). Thanks, J