Cool, thanks for applying it! Cheers. On Tue, Jun 28, 2022 at 8:15 AM Lars Ingebrigtsen wrote: > Zachary Kanfer 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 >