Lars Ingebrigtsen writes: > Felix Dietrich writes: > >> The first, relating to readability: I found it quit difficult to follow >> the flow of the functionʼs code due to its nesting and idiosyncratic >> order of condition checking. I want to, therefore, propose a >> restructured version, which I believe to be functionally equivalent. > > Yes, the code is pretty confusing... so reading the patches, I'm not > quite sure whether the new one is equivalent or not. So I think we'd > want to have a number of tests in mailcap-tests.el to test that the > results really are equivalent before and after the change, too. I have written a couple of test cases. Let me know if this is what you had in mind.