From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: "\":Converting "dired-do-rename-regexp" into a "query-replace"?
Date: 29 Jan 2010 18:26:35 -0500 [thread overview]
Message-ID: <hjvqrb$3cl$1@panix1.panix.com> (raw)
Subj: "\\":Converting "dired-do-rename-regexp" into a "query-replace"?
I need to turn this:
(dired-do-rename-regexp "Lendman_1_\\([0-9][0-9]\\)\\([0-9][0-9]\\)\\([0-9][0-9]\\)_100000.mp3" "\\3\\1\\2-S.L.mp3")
into:
(query-replace-regexp "FROMPAT" "TO-STRING" nil (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end)))
(the dired one works fine; now I want to adjust the regexps, but test them in an ascii file, not as file-names in dired.)
So, once I did that, how to convert it BACK into the dired-form>?
Thanks!
David
next reply other threads:[~2010-01-29 23:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 23:26 David Combs [this message]
2010-01-30 16:46 ` "\":Converting "dired-do-rename-regexp" into a "query-replace"? Andreas Röhler
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='hjvqrb$3cl$1@panix1.panix.com' \
--to=dkcombs@panix.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.