unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fwd: Re: Easy way to rename files sequentially?
@ 2007-11-26 21:27 David Hansen
  2007-12-03  6:11 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Hansen @ 2007-11-26 21:27 UTC (permalink / raw)
  To: emacs-devel

Hello,

This popped up at gnu.emacs.help and might be of interest to the emacs
devels:


-------------------- Start of forwarded message --------------------
Path: news.gmane.org!not-for-mail
Message-ID: <uir3o3flc.fsf@gnu.org>
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.help
Subject: Re: Easy way to rename files sequentially?
Date: Mon, 26 Nov 2007 22:40:47 +0200
References: <87ejeexgfy.fsf@celephais.home.net> <ur6ie2fng.fsf@gnu.org>
	<871waeroap.fsf@newsguy.com> <uprxx3caw.fsf@gnu.org>
	<8763zpwje7.fsf@newsguy.com> <87y7cl6uka.fsf@localhorst.mine.nu>
	<87ve7ox53v.fsf@newsguy.com> <87tzn87tj9.fsf@localhorst.mine.nu>
To: help-gnu-emacs@gnu.org

> From: David Hansen <david.hansen@gmx.net>
> Date: Mon, 26 Nov 2007 18:26:02 +0000
> 
> \# isn't working in `dired-do-rename-regexp'

That sounds like a bug (or missing feature) to me:
dired-do-rename-regexp is supposed to be 100% compatible with
query-replace-regexp, as far as regexp replacement goes.

-------------------- End of forwarded message --------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fwd: Re: Easy way to rename files sequentially?
  2007-11-26 21:27 Fwd: Re: Easy way to rename files sequentially? David Hansen
@ 2007-12-03  6:11 ` Richard Stallman
  2007-12-03 10:38   ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-12-03  6:11 UTC (permalink / raw)
  To: emacs-devel; +Cc: David Hansen

Has anyone looked at this?

To: emacs-devel@gnu.org
From: David Hansen <david.hansen@gmx.net>
Date: Mon, 26 Nov 2007 21:27:10 +0000
Organization: disorganized
Message-ID: <87hcj87l5d.fsf@localhorst.mine.nu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Fwd: Re: Easy way to rename files sequentially?

Hello,

This popped up at gnu.emacs.help and might be of interest to the emacs
devels:


-------------------- Start of forwarded message --------------------
Path: news.gmane.org!not-for-mail
Message-ID: <uir3o3flc.fsf@gnu.org>
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.help
Subject: Re: Easy way to rename files sequentially?
Date: Mon, 26 Nov 2007 22:40:47 +0200
References: <87ejeexgfy.fsf@celephais.home.net> <ur6ie2fng.fsf@gnu.org>
	<871waeroap.fsf@newsguy.com> <uprxx3caw.fsf@gnu.org>
	<8763zpwje7.fsf@newsguy.com> <87y7cl6uka.fsf@localhorst.mine.nu>
	<87ve7ox53v.fsf@newsguy.com> <87tzn87tj9.fsf@localhorst.mine.nu>
To: help-gnu-emacs@gnu.org

> From: David Hansen <david.hansen@gmx.net>
> Date: Mon, 26 Nov 2007 18:26:02 +0000
> 
> \# isn't working in `dired-do-rename-regexp'

That sounds like a bug (or missing feature) to me:
dired-do-rename-regexp is supposed to be 100% compatible with
query-replace-regexp, as far as regexp replacement goes.

-------------------- End of forwarded message --------------------



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fwd: Re: Easy way to rename files sequentially?
  2007-12-03  6:11 ` Richard Stallman
@ 2007-12-03 10:38   ` David Kastrup
  2007-12-03 18:42     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2007-12-03 10:38 UTC (permalink / raw)
  To: rms; +Cc: David Hansen, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Has anyone looked at this?
>
> From: Eli Zaretskii <eliz@gnu.org>
> Subject: Re: Easy way to rename files sequentially?
> Newsgroups: gmane.emacs.help
> To: help-gnu-emacs@gnu.org
> Date: Mon, 26 Nov 2007 22:40:47 +0200
>
>> From: David Hansen <david.hansen@gmx.net>
>> Date: Mon, 26 Nov 2007 18:26:02 +0000
>> 
>> \# isn't working in `dired-do-rename-regexp'
>
> That sounds like a bug (or missing feature) to me:
> dired-do-rename-regexp is supposed to be 100% compatible with
> query-replace-regexp, as far as regexp replacement goes.

The regexp magic from query-replace-regexp is implemented in a two-step
process: first the interactive form translates such elements into a
replacement list of a specific form rather than a replacement string,
and then perform-replace works using this list.

The generated list (and the code processing it) heavily relies on
working in a buffer whereas dired-do-rename-regexp basically works on a
string.  Making the additional magic available generally instead of just
to query-replace-regexp itself would require some amount of work, not
least of all because one would need to design a reasonable interface for
this functionality which is, at the current point of time, more or less
a hack inside of replace.el.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fwd: Re: Easy way to rename files sequentially?
  2007-12-03 10:38   ` David Kastrup
@ 2007-12-03 18:42     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2007-12-03 18:42 UTC (permalink / raw)
  To: David Kastrup; +Cc: david.hansen, emacs-devel

If we don't make them use the same underlying mechanism,
could we at least make them handle \# compatibly?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-03 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26 21:27 Fwd: Re: Easy way to rename files sequentially? David Hansen
2007-12-03  6:11 ` Richard Stallman
2007-12-03 10:38   ` David Kastrup
2007-12-03 18:42     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).