From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48657: Defvar delimiter for dired-copy-filename-as-kill Date: Sun, 24 Oct 2021 15:01:45 +0300 Message-ID: <83bl3e4onq.fsf@gnu.org> References: <87v97639x9.fsf@gmail.com> <83bl8yboat.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48657@debbugs.gnu.org, moralesrodrigo1100@gmail.com To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 24 14:03:09 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 1mecDV-0007As-He for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 14:03:09 +0200 Original-Received: from localhost ([::1]:43448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mecDT-0001wc-Kp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 08:03:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mecDO-0001wD-A1 for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 08:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mecDO-0001Ez-1P for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 08:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mecDN-0006aN-Tu for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 08:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 12:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48657 X-GNU-PR-Package: emacs Original-Received: via spool by 48657-submit@debbugs.gnu.org id=B48657.163507692325246 (code B ref 48657); Sun, 24 Oct 2021 12:03:01 +0000 Original-Received: (at 48657) by debbugs.gnu.org; 24 Oct 2021 12:02:03 +0000 Original-Received: from localhost ([127.0.0.1]:38034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecCR-0006Z8-7w for submit@debbugs.gnu.org; Sun, 24 Oct 2021 08:02:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecCP-0006YY-Ay for 48657@debbugs.gnu.org; Sun, 24 Oct 2021 08:02:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60562) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mecCJ-0007sU-SU; Sun, 24 Oct 2021 08:01:55 -0400 Original-Received: from [87.69.77.57] (port=1289 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mecCJ-0004s0-FY; Sun, 24 Oct 2021 08:01:55 -0400 In-Reply-To: (message from Stefan Kangas on Sun, 24 Oct 2021 00:11:28 -0700) 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:218093 Archived-At: > From: Stefan Kangas > Date: Sun, 24 Oct 2021 00:11:28 -0700 > Cc: Rodrigo Morales , 48657@debbugs.gnu.org > > >> I thought that it would be useful to have a defvar that allows > >> specifying the delimiter for copied filenames through the mentioned > >> function. Perhaps, its name could be "dired-copy-filename-delimiter". > > > > The only sane value for a reliable delimiter is the null byte, so > > maybe it doesn't make much sense to customize it. > > That's true, but on the other hand replacing space with the null byte as > the hard-coded delimiter for dired-copy-filename-as-kill seems a > bit... clunky. I don't see why. A number of GNU programs use the null byte as a reliable delimiter in similar situations (Grep, xargs, etc.), so why shouldn't we do the same? > I've personally never had a problem with using space here, but you > obviously will eventually run into problems. So I think something > should be done. Why using a space when we know it will sometimes fail? The null byte will never fail, and Emacs is perfectly capable of handling strings with embedded null bytes.