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: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> linkov.net>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Gereon Kaiping <gereon.kaiping <at> gmail.com>, 24184 <at> debbugs.gnu.org
Subject: bug#24184: 25.0.94; dired-copy-filename-as-kill does not quote or properly separate file names
Date: Mon, 16 Apr 2018 15:35:56 -0700 (PDT)
> 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.

On the contrary.  People have been usefully yanking it
and using it without quotes for decades.  This is a useful,
longstanding Emacs feature.

If someone wants a different copy or paste or both behavior
then s?he can define a new command and bind a key to it.

If someone thinks that Emacs itself needs such a command
and key then s?he can propose it.  But there is zero reason
to co-opt this fine feature by replacing it by something else.




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

Previous Next


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