From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: renaming current file and buffer Date: Wed, 1 Feb 2006 10:20:12 +0100 Message-ID: <87FC5E69-1EC9-4FC1-B5BF-9315329CB84F@Web.DE> References: <87u0cmclgy.fsf@hans.local.net> <5570BCBD-0DE9-4297-841D-63A3C37698D8@Web.DE> <87aceckdnm.fsf@hans.local.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138807151 18573 80.91.229.2 (1 Feb 2006 15:19:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2006 15:19:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 16:19:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F4Jk0-0002YP-Bl for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Feb 2006 16:17:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4GKH-0007fQ-0O for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Feb 2006 06:39:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F4EGA-0005AP-SJ for help-gnu-emacs@gnu.org; Wed, 01 Feb 2006 04:26:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F4EEL-0004WF-SY for help-gnu-emacs@gnu.org; Wed, 01 Feb 2006 04:24:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4ED1-00043D-VY for help-gnu-emacs@gnu.org; Wed, 01 Feb 2006 04:23:28 -0500 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F4EBf-0006lD-1i for help-gnu-emacs@gnu.org; Wed, 01 Feb 2006 04:22:03 -0500 Original-Received: from [84.245.189.179] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #340) id 1F4E9u-0001R5-00; Wed, 01 Feb 2006 10:20:15 +0100 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: dkcombs@panix.com (David Combs) X-Mailer: Apple Mail (2.746.2) X-Sender: Peter_Dyballa@web.de 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:32944 Archived-At: Am 01.02.2006 um 02:11 schrieb David Combs: > In article , > Peter Dyballa wrote: >> >> Am 04.01.2006 um 02:03 schrieb Dieter Wilhelm: >> >>>> Just type C-x d in the buffer whose file name you want to =20 >>>> rename. It >>>> will position the cursor in dired on that file! >>> >>> It's not working for me when I previously have opened the file with >>> C-x C-f. Only when the file at some stage have had the focus in =20 >>> dired >> >> Could be this customisation helps: >> >> '(dired-dwim-target t) >> >> -- >> Mit friedvollen Gr=FC=DFen >> >> Pete >> >> Es geht nix =FCber eine elektrische Klob=FCrste! >> >> >> > > What does that do? > > > dired-dwim-target-directory is a compiled Lisp function in `dired-=20 > aux'. > (dired-dwim-target-directory) > > Not documented. > > [back] > > Is this better? dired-dwim-target is a variable defined in `dired.el'. Its value is t =09 Documentation: *If non-nil, Dired tries to guess a default target directory. This means: if there is a dired buffer displayed in the next = window, use its current subdir, instead of the current subdir of this = dired =20 buffer. =09 The target is used in the prompt for file copy, rename etc. =09 You can customize this variable. 'dwim' stands for 'do what I mean.' -- Greetings Pete Eat the rich -- the poor are tough and stringy.