|
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 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |