Reuben Thomas writes: Hi Reuben, > I have a question: presumably the latest version of TRAMP still > generates empty completion-read candidates. I think the question still > needs answering: is this valid? If not, then whatever has changed in > Emacs 31 is just masking a bug that still exists in TRAMP. Good point. Could you pls check the appended patch? Since this touches a macro, you must recompile first tramp.el, and afterwards tramp-sh.el. Best regards, Michael.