It gets stranger, but I don’t think it’s purs’s fault at this point. I shut down my MacBook and later booted it up again. I went to study the files in question, and one of them was an old version. Nowhere in sight were the changes I had made over several hours earlier today, and after which the problem had started.
My best guess is that I had a file open in two editor instances by mistake, with different versions in each editor – and the final version I saved was the “old” one, overwriting a few hours of changes. Still a mysterious explanation, because wouldn’t I have noticed two editor instances? (I use Emacs.)
It seems to work robustly now.
Mike