Eli Zaretskii writes: >> >> Hmm, I seem to have confused things by trying to combine the fix for >> 16406 and 17848. Just replacing the file-exists-p test, as in the patch >> below, is enough to fix this bug. Let's look at 17848 separately. >> >> (file-ex (expand-file-name file))) >> - (when (file-exists-p file-ex) >> + (when (and file-ex (file-regular-p file-ex)) > > OK. But isn't the "and file-ex" test unnecessary? It wasn't required > for file-exists-p, so why is it for file-regular-p? Indeed, not required. It's just leftover confusion.