help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to modify 'write-file'


From: Andreas Politz
Subject: Re: How to modify 'write-file'
Date: Tue, 04 May 2010 15:44:19 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

"richard.christensen" <richard.christensen@avagotech.com> writes:

> Hi,  I write and modify many files with long names in which I need to
> save the changed file to a similar name as the original but with a few
> letters or numbers changed. A useful modification to write-file would
> be to have the current file name to be placed in the minibuffer along
> with the path when write-file is called. Then modifying the name would
> be simple.  How would I do this?  Ideas?
>
> Richard.

I would use dired for this.  First create a dired buffer with the files,
or a superset it, with `dired', `find-dired' or some other incarnation.

Then
M-x wdired-change-to-dired-mode RET
and it let's you edit the file-names, after which you press `C-c C-c'
and commit the changes to the filesystem.

-ap


reply via email to

[Prev in Thread] Current Thread [Next in Thread]