From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Seek dired command related to Copy Date: Thu, 21 Nov 2013 10:39:08 -0800 (PST) Message-ID: <8b337b82-fea3-4519-9a33-55edb16543c7@default> References: <039fe8aa-d1d2-4d75-9479-0268fb1ae54e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385059196 32372 80.91.229.3 (21 Nov 2013 18:39:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 18:39:56 +0000 (UTC) To: gentsquash@gmail.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 21 19:40:00 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VjZAT-0006pt-Bm for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Nov 2013 19:39:57 +0100 Original-Received: from localhost ([::1]:34780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjZAS-0004a6-Vx for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Nov 2013 13:39:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjZ9v-0004C9-3g for help-gnu-emacs@gnu.org; Thu, 21 Nov 2013 13:39:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjZ9m-0006VQ-Gt for help-gnu-emacs@gnu.org; Thu, 21 Nov 2013 13:39:23 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:47552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjZ9m-0006V7-AD for help-gnu-emacs@gnu.org; Thu, 21 Nov 2013 13:39:14 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rALIdA7o013749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Nov 2013 18:39:11 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rALId9SG015079 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Nov 2013 18:39:10 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rALId9RL023396; Thu, 21 Nov 2013 18:39:09 GMT In-Reply-To: <039fe8aa-d1d2-4d75-9479-0268fb1ae54e@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94554 Archived-At: > In Dired, I'd like a version of `dired-do-copy' (which I'll > call something else), which, when pointing at a fileline > of a symlink, copies the pointed-to file, rather than the > symlink. Does someone have such a version, or can show me > how to use "dired-aux.el" routines to write such a cmd? To write one: 1. Define a function similar to `dired-copy-file-recursive', but which does not handle a symlink specially. Let's call it `dcfr2'. 2. Define a function identical to `dired-copy-file', except that it calls `dcfr2' instead of `dired-copy-file-recursive'. Let's call the function `dcf2'. 3. Define a command identical to `dired-do-copy', except that it calls `dcf2' instead of `dired-copy-file'. If you think such a command is useful generally, consider asking Emacs Dev to add it: `M-x report-emacs-bug' is for enhancement requests too.