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: Tue, 25 May 2021 22:34:18 +0300 Message-ID: <83bl8yboat.fsf@gnu.org> References: <87v97639x9.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26556"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48657@debbugs.gnu.org To: Rodrigo Morales Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 25 21:35:10 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 1llcpa-0006lt-Eo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 21:35:10 +0200 Original-Received: from localhost ([::1]:39744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llcpZ-0004Cg-2z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 15:35:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llcpS-0004CO-2A for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 15:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llcpR-0000gd-RL for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 15:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llcpR-00066k-PS for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 15:35: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: Tue, 25 May 2021 19:35: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.162197126823433 (code B ref 48657); Tue, 25 May 2021 19:35:01 +0000 Original-Received: (at 48657) by debbugs.gnu.org; 25 May 2021 19:34:28 +0000 Original-Received: from localhost ([127.0.0.1]:46899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llcot-00065s-US for submit@debbugs.gnu.org; Tue, 25 May 2021 15:34:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llcos-00065f-6g for 48657@debbugs.gnu.org; Tue, 25 May 2021 15:34:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60554) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llcom-0000Hs-Up; Tue, 25 May 2021 15:34:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3244 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 1llcom-000740-FQ; Tue, 25 May 2021 15:34:20 -0400 In-Reply-To: <87v97639x9.fsf@gmail.com> (message from Rodrigo Morales on Tue, 25 May 2021 14:12:02 -0500) 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:207245 Archived-At: > From: Rodrigo Morales > Date: Tue, 25 May 2021 14:12:02 -0500 > > (defun dired-copy-filename-as-kill (&optional arg) > ... > (mapconcat #'identity > (if arg > (cond ((zerop (prefix-numeric-value arg)) > (dired-get-marked-files)) > ((consp arg) > (dired-get-marked-files t)) > (t > (dired-get-marked-files > 'no-dir (prefix-numeric-value arg)))) > (dired-get-marked-files 'no-dir)) > " ") ;; <---- [[[ Here's the hardcoded delimiter ]]] > ...) > #+END_SRC > > 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.