all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* wdired - move and new dir
@ 2007-09-16 10:59 knubee
  0 siblings, 0 replies; only message in thread
From: knubee @ 2007-09-16 10:59 UTC (permalink / raw)
  To: help-gnu-emacs

There are times when we want to move/rename files to a directory that
does not yet exist.

Example: move /dir1/foo.tex  -> /NEWDIR/foo.tex

However, if we are in /dir1 the following does the standard thing in
wdired:

R foo.tex -.> /NEWDIR

In other words, I will now have /NEWDIR as a file with the contents of
foo.tex (since I have told wdired to rename foo.tex to NEWDIR in the
directory above its current location).

What I want is to avoid the double work of creating a bunch of
directories first and then moving files to them with R. Rather, is
there some existing command in wdired that will expect that if I am
moving a file, that a) I am not changing the name of the moved file,
but b) the destination argument is a non-existent directory that
should be created (and the moved file should be put within it)?

Sorry if this is obvious, but I didn't see anything like this in the
documentation and searches I did.

thanks for any pointers.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-16 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-16 10:59 wdired - move and new dir knubee

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.