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

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

Re: renaming current file and buffer


From: Peter Dyballa
Subject: Re: renaming current file and buffer
Date: Wed, 1 Feb 2006 10:20:12 +0100


Am 01.02.2006 um 02:11 schrieb David Combs:

In article <mailman.21367.1136381051.20277.help-gnu-emacs@gnu.org>,
Peter Dyballa  <Peter_Dyballa@Web.DE> 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 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 dired

Could be this customisation helps:

'(dired-dwim-target t)

--
Mit friedvollen Grüßen

  Pete

Es geht nix über eine elektrische Klobürste!




What does that do?


dired-dwim-target-directory is a compiled Lisp function in `dired- 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
        
        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 buffer.
        
        The target is used in the prompt for file copy, rename etc.
        
        You can customize this variable.


'dwim' stands for 'do what I mean.'

--
Greetings

  Pete

Eat the rich -- the poor are tough and stringy.






reply via email to

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