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: Lars Ingebrigtsen
Subject: bug#56229: title: add a function to move a file from one place to another
Date: Sun, 26 Jun 2022 16:50:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Zachary Kanfer <zkanfer@gmail.com> writes:

> So, attached is a patch for an interactive function that prompts for a
> new location, then writes the current buffer to that
> location. Assuming it's successful, and the buffer previously was
> associated with a file, it deletes the old file.

I think this sounds like a useful command, but I'm not sure about the
name:

[...]

> +(defun move-file (new-location)
> +  "Move the current file to NEW-LOCATION.

This is about moving the file the current buffer is visiting -- there's
no such thing as a "current file" in Emacs -- so the command name (and
doc string) should reflect that.  I don't really have a suggestion for a
better command name, though.  Anybody?

-- 
(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]