[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24184: 25.0.94; dired-copy-filename-as-kill does not quote or proper
From: |
Lars Ingebrigtsen |
Subject: |
bug#24184: 25.0.94; dired-copy-filename-as-kill does not quote or properly separate file names |
Date: |
Sun, 15 Aug 2021 14:24:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
>> I think filenames should be quoted only when really necessary. IOW,
>> only if (not (equal (shell-quote-argument "this file") "this file"))
>> but not when (equal (shell-quote-argument "this-file") "this-file").
>
> Even stronger than that. There is no reason to suppose
> that everyone wants to yank the text only in contexts
> where it should be double-quoted.
Indeed -- we can't surmise what the user is going to use the file name
for, and in some contexts the user must quote the result (in different
ways), and in others the user doesn't.
So on reflection, I don't think there's anything we can do here that
would be useful. We could add a new command --
`dired-copy-file-names-as-a-list-of-lisp-strings' -- but it doesn't
really sound vital. So I'm closing this bug report.
(If somebody wants to add
`dired-copy-file-names-as-a-list-of-lisp-strings', I wouldn't oppose
that.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#24184: 25.0.94; dired-copy-filename-as-kill does not quote or properly separate file names,
Lars Ingebrigtsen <=