From: "Drew Adams" <drew.adams@oracle.com>
To: "'Thierry Volpiatto'" <thierry.volpiatto@gmail.com>,
<bug-gnu-emacs@gnu.org>
Subject: bug#6823: 24.0.50; Wdired or Dired enhancement
Date: Mon, 9 Aug 2010 07:16:01 -0700 [thread overview]
Message-ID: <2F0E9BE0383248998DD1960E32677585@us.oracle.com> (raw)
In-Reply-To: <87pqxs5o7s.fsf@tux.homenetwork>
> > AFAIK the best you can do now is to use Wdired and perform
> > query-replace with some fancy replacement expression.
> > We should offer something simpler for the common task of
> > renaming a sequence of files.
>
> We have have two tools to achieve this, wdired-change-to-wdired-mode,
> and query-replace-regexp used with \, and \# in the
> replacement regexp.
That's exactly what I meant by "use Wdired and perform query-replace with some
fancy replacement expression."
I know that a user can do it. What I suggest is that we also "offer something
simpler for the common task of renaming a sequence of files."
A Windows user need not be familiar with Lisp sexps (and especially arcane
incantations using `\,' and \#). It's great to have that capability, but we
should also offer something simpler for the common, simple case.
> You can use also this function:(You may have to run it two
> times in some rare cases)
>
> (defun serial-rename (dir ext name start)...
I haven't tried it, but from the doc string, it sounds like the kind of thing I
had in mind.
The doc for Dired should mention such a command (which should be bound to a
key), and it should mention that you can do fancier, more flexible replacement
using query-replace with `\,', `\#', etc.
next prev parent reply other threads:[~2010-08-09 14:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-07 18:37 bug#6823: 24.0.50; Wdired or Dired enhancement Drew Adams
2010-08-09 2:59 ` Eli Zaretskii
2010-08-09 6:08 ` Thierry Volpiatto
2010-08-09 14:02 ` Drew Adams
2010-08-09 5:50 ` Thierry Volpiatto
2010-08-09 14:16 ` Drew Adams [this message]
2010-08-09 14:48 ` Thierry Volpiatto
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=2F0E9BE0383248998DD1960E32677585@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/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.