GNU bug report logs - #24184
25.0.94; dired-copy-filename-as-kill does not quote or properly separate file names

Previous Next

Package: emacs;

Reported by: Gereon Kaiping <gereon.kaiping <at> gmail.com>

Date: Mon, 8 Aug 2016 15:30:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 25.0.94

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Gereon Kaiping <gereon.kaiping <at> gmail.com>, 24184 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
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
Drew Adams <drew.adams <at> 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




This bug report was last modified 3 years and 338 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.