severity 16984 minor tags 16984 patch quit Eli Zaretskii writes: >> From: npostavs@users.sourceforge.net >> Date: Sat, 22 Oct 2016 22:21:20 -0400 >> Cc: 16984@debbugs.gnu.org >> >> The essential problem seems to be that there is no way to escape >> filenames from substitute-in-file-name to protect a file named "~", >> therefore read-file-name-default can never return a filename in a >> directory with that name. > > 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: