From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "richard.christensen" Newsgroups: gmane.emacs.help Subject: Re: How to modify 'write-file' Date: Sun, 11 Apr 2010 11:17:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87tyrjgofv.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273059404 7046 80.91.229.12 (5 May 2010 11:36:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 11:36:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 13:36:43 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9cuA-0005gA-GR for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 13:36:43 +0200 Original-Received: from localhost ([127.0.0.1]:45077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9cu8-0005F8-Qq for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 07:36:40 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!r18g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 199.3.246.231 Original-X-Trace: posting.google.com 1271009858 25978 127.0.0.1 (11 Apr 2010 18:17:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 11 Apr 2010 18:17:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r18g2000yqd.googlegroups.com; posting-host=199.3.246.231; posting-account=1ibdcgoAAABow1tT8596gBIVrwKkiml- User-Agent: G2/1.0 X-HTTP-Via: 1.1 ftcwebcache2.ame.avagotech.net:8088 (IronPort-WSA/6.3.0-523) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729), gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177673 X-Mailman-Approved-At: Tue, 04 May 2010 16:52:39 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73391 Archived-At: Thanks. A friend of mine suggested using Dired as well. Your approach is more complete. I really should get more familiar with it and use it more. richard On Apr 10, 12:19=A0pm, Andreas Politz wrote: > "richard.christensen" writes: > > Hi, =A0I 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. =A0How would I do this? =A0Ideas? > > > Richard. > > I would use dired for this. =A0First 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