[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16984: dired-do-rename susceptible to .../~/... hijack
From: |
npostavs |
Subject: |
bug#16984: dired-do-rename susceptible to .../~/... hijack |
Date: |
Sat, 29 Oct 2016 11:54:56 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Michael Albinus <michael.albinus@gmx.de> writes:
> Eli Zaretskii <eliz@gnu.org> 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):
v2-0001-Quote-filenames-containing-in-prompts.patch
Description: patch v2