all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* 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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.