From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: <87lf52nbe7.fsf@gnus.org> References: <87a7u45ahp.fsf@mouse.gnus.org> <874lka51h4.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Gereon Kaiping , 24184@debbugs.gnu.org, Juri Linkov To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 15 14:26:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFFDO-0008o1-EH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 14:26:10 +0200 Original-Received: from localhost ([::1]:54572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFFDM-0008ET-BU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 08:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFFDH-0008EC-5z for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFFDG-0005Ni-RM for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFFDG-00037h-Hc for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 08:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 12:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24184 X-GNU-PR-Package: emacs Original-Received: via spool by 24184-submit@debbugs.gnu.org id=B24184.162903030311900 (code B ref 24184); Sun, 15 Aug 2021 12:26:02 +0000 Original-Received: (at 24184) by debbugs.gnu.org; 15 Aug 2021 12:25:03 +0000 Original-Received: from localhost ([127.0.0.1]:46005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFFCJ-00035s-71 for submit@debbugs.gnu.org; Sun, 15 Aug 2021 08:25:03 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:58570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFFCG-00035D-Uc for 24184@debbugs.gnu.org; Sun, 15 Aug 2021 08:25:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4FFnnU4ZECh4XIErVdwi2Eli+TNP9cNXFahc1WcF2pI=; b=lQ7HhopNWt/jydxRHxztO6v3rr M/QESk1PU9ODf8vK7rPrD/E8ecS4DAbZv1/tj5GfV/nuJRVTizTGySJ7YbT/Gqg6UahII0Q4QqnLu 4Ks+NHW9NUr07EN6FibdnlCEHRl0VHY1wB3HbG8BgcKLfD6+uIh661SQf2RstA3sjU5Q=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFFC5-00005A-Bb; Sun, 15 Aug 2021 14:24:53 +0200 In-Reply-To: (Drew Adams's message of "Mon, 16 Apr 2018 15:35:56 -0700 (PDT)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211897 Archived-At: Drew Adams 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