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

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

bug#56229: title: add a function to move a file from one place to anothe


From: Zachary Kanfer
Subject: bug#56229: title: add a function to move a file from one place to another
Date: Mon, 27 Jun 2022 00:42:58 -0400

Attached a patch with the function name changed to `rename-visited-file`.

I like the analogy to `rename-file`.


On Sun, Jun 26, 2022 at 11:41 AM Visuwesh <visuweshm@gmail.com> wrote:
[ஞாயிறு ஜூன் 26, 2022] Lars Ingebrigtsen wrote:

> Zachary Kanfer <zkanfer@gmail.com> writes:
>
>> It's more complicated because if the buffer is *not* visiting a file,
>> the right thing for this function to just save the buffer to the
>> location selected. I don't know if the name that needs to take that
>> into account.
>>
>> Is there a name for the file a buffer is visiting? Maybe
>> "move-associated-file"?  "move-visited-file"?
>
> I like `move-visited-file'.  Or perhaps `rename-visited-file'?

I think `rename-visited-file' would fit in better especially since we
already have `rename-file'; it also parallels dired's R command.

Attachment: 0001-Add-a-function-to-rename-the-file-visited-by-the-cur.patch
Description: Text Data


reply via email to

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