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: Tue, 28 Jun 2022 21:17:47 -0400

Cool, thanks for applying it! Cheers.

On Tue, Jun 28, 2022 at 8:15 AM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Zachary Kanfer <zkanfer@gmail.com> writes:

> It differs in a few ways:
>
> 1. set-visited-file-name doesn't save the file to the new location.
> 2. set-visited-file-name leaves the file on disk in the old location.

But Richard has a good point -- we can punt to set-visited-file-name to
change the visited file name (and this also fixes changing the major
mode etc if we're changing the name from .c to .el or something).

So I've now adjusted your function to use `rename-file' and then call
`set-visited-file-name' and pushed to Emacs 29.

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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