From: Lars Ingebrigtsen <larsi@gnus.org>
To: Zachary Kanfer <zkanfer@gmail.com>
Cc: Visuwesh <visuweshm@gmail.com>, rms@gnu.org, 56229@debbugs.gnu.org
Subject: bug#56229: title: add a function to move a file from one place to another
Date: Tue, 28 Jun 2022 14:15:17 +0200 [thread overview]
Message-ID: <87bkudrnl6.fsf@gnus.org> (raw)
In-Reply-To: <CAFXT+RMhQSYzp-SNH2KzWKYr+ETTP1=ekt_uakwwPTmfczg5eQ@mail.gmail.com> (Zachary Kanfer's message of "Tue, 28 Jun 2022 00:23:22 -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
next prev parent reply other threads:[~2022-06-28 12:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-26 4:49 bug#56229: title: add a function to move a file from one place to another Zachary Kanfer
2022-06-26 14:50 ` Lars Ingebrigtsen
2022-06-26 15:16 ` Zachary Kanfer
2022-06-26 15:31 ` Lars Ingebrigtsen
2022-06-26 15:41 ` Visuwesh
2022-06-27 4:42 ` Zachary Kanfer
2022-06-27 7:55 ` Lars Ingebrigtsen
2022-06-28 3:24 ` Zachary Kanfer
2022-06-28 11:10 ` Eli Zaretskii
2022-06-28 3:24 ` Richard Stallman
2022-06-28 4:23 ` Zachary Kanfer
2022-06-28 12:15 ` Lars Ingebrigtsen [this message]
2022-06-29 1:17 ` Zachary Kanfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bkudrnl6.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=56229@debbugs.gnu.org \
--cc=rms@gnu.org \
--cc=visuweshm@gmail.com \
--cc=zkanfer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.