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

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

dired: renaming file on disk + file in emacs buffer


From: Jari Aalto+mail.emacs
Subject: dired: renaming file on disk + file in emacs buffer
Date: Fri, 20 Aug 2004 18:12:56 +0300
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

I'm passing this to the discussion as what should be done in this 
situation:

    case 1

    C-x C-f ~/tmp/test.txt
    C-x d ~/tmp  => rename "R" test.txt to test2.txt

    => New filename is reflected in Emacs buffer visiting the file

But, if file is moved to another directory:

    case 2

    C-x C-f ~/tmp/test.txt
    C-x d ~/tmp  => rename "R" test.txt to ~/tmp/moved/test2.txt

    => New filename is NOT reflected in buffer vising the file

I would have expected that the file path location change would have been
chaned as in case 1. I could imagine that:

    a) the change in case 2 is identicval as in case 1, so change in 
       buffer-file-name is done transparently
    b) Dired includes a confirmation option that asks, if the current
       buffer visiting the file should reflect the new location.

That do you think?
Jari
    


    




reply via email to

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