Michael Albinus writes: > Eli Zaretskii writes: > >>> From: npostavs@users.sourceforge.net >>> Cc: 16984@debbugs.gnu.org, jidanni@jidanni.org >>> Date: Fri, 28 Oct 2016 22:27:13 -0400 >>> >>> > What about the "/:" quoting? It works for me, when I type "/:" before >>> > the name of the file which has a '~' character embedded in it. >>> >>> Ah, yes it works, as documented in `(emacs) Quoted File Names'. I think >>> it would be nicer if Emacs' file prompts defaulted to insert this as >>> needed, here's a patch to do that: >> >> This is good for master, but please wait for a few days in case >> someone would like to comment or object. > > Prefixing with "/:" would also deactivate all file name handlers. The > file name "/ssh:user@host:/path/~/file" would be handled literally, > which is wrong. Ah, good point. How about checking (find-file-name-handler filename 'substitute-in-file-name):