unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: gentsquash@gmail.com, help-gnu-emacs@gnu.org
Subject: RE: Seek dired command related to Copy
Date: Thu, 21 Nov 2013 10:39:08 -0800 (PST)	[thread overview]
Message-ID: <8b337b82-fea3-4519-9a33-55edb16543c7@default> (raw)
In-Reply-To: <039fe8aa-d1d2-4d75-9479-0268fb1ae54e@googlegroups.com>

> 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.




      reply	other threads:[~2013-11-21 18:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21 18:17 Seek dired command related to Copy gentsquash
2013-11-21 18:39 ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b337b82-fea3-4519-9a33-55edb16543c7@default \
    --to=drew.adams@oracle.com \
    --cc=gentsquash@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).