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 wrote: > [ஞாயிறு ஜூன் 26, 2022] Lars Ingebrigtsen wrote: > > > Zachary Kanfer 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. >