* Emacs dired mode / dired-do-rename-regexp
@ 2016-12-01 10:22 Heinz-Ado Arnolds
2016-12-01 16:44 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Heinz-Ado Arnolds @ 2016-12-01 10:22 UTC (permalink / raw)
To: sk, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 814 bytes --]
Dear Mr. Kremer,
first of all I like to thank you for all your work you have done on dired-mode!
I have a problem when using %R (dired-do-rename-regexp). I like to use a kind of computed replacement string (with a Lisp expression), like it is possible with the normal replace-regexp command. This seems to be not possible, or do I make an error in masking the replacement string?
E.g.: when I specify the strings
Rename from (regexp): \([0-9][0-0]\) \(.+\)
Rename \([0-9][0-0]\) \(.+\) to: \,(+ \#1 3) \2
I get the message
"Invalid use of '\' in replacement text"
I'd appreciate your help. Is this my fault or are there plans to implement this into dired mode? I know that there is a workaround with wdired, but really would like to see it in dired itself.
Kind regards,
Ado Arnolds
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4992 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Emacs dired mode / dired-do-rename-regexp
2016-12-01 10:22 Emacs dired mode / dired-do-rename-regexp Heinz-Ado Arnolds
@ 2016-12-01 16:44 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2016-12-01 16:44 UTC (permalink / raw)
To: Heinz-Ado Arnolds; +Cc: sk, emacs-devel
On Dez 01 2016, Heinz-Ado Arnolds <arnolds@MPA-Garching.MPG.DE> wrote:
> E.g.: when I specify the strings
>
> Rename from (regexp): \([0-9][0-0]\) \(.+\)
> Rename \([0-9][0-0]\) \(.+\) to: \,(+ \#1 3) \2
>
> I get the message
>
> "Invalid use of '\' in replacement text"
dired-do-rename-regexp does not support \,, only \N and \&. Try using
Wdired instead (C-x C-q).
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-01 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01 10:22 Emacs dired mode / dired-do-rename-regexp Heinz-Ado Arnolds
2016-12-01 16:44 ` Andreas Schwab
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.