From: Amit Ramon <amit.ramon@riseup.net>
To: emacs-devel@gnu.org
Subject: Re: Rename, delete and move current buffer and file
Date: Thu, 10 May 2018 11:20:05 +0300 [thread overview]
Message-ID: <20180510082005.6pfpostuxcuzfutt@isis.luna> (raw)
In-Reply-To: <jwvlgctrp3b.fsf-monnier+gmane.emacs.devel@gnu.org>
Stefan Monnier <monnier@iro.umontreal.ca> [2018-05-09 08:28 -0400]:
>> I do not understand what you have in mind with write-file. This creates a
>> copy, which is natural given the name. Do you envision some changes to it?
>
>Not sure what happened, but my first answer said:
>
> so maybe we could instead have `C-x C-w` prompt the user
> "delete the old file (y or n)?"
For me the use case for using C-x C-w is not to move a file, but to
create a copy of a file leaving the original file untouched -- for
example if I want to create a new file but I want to start from an
existing one as a template.
So for this use case C-x C-w works exactly as I would expect, and
adding the option to delete the original file is unnecessary, and
prompting the user would just interrupt.
As for renaming/moving/deleting a file I feel very comfortable with
doing it with Dired. C-x C-j, R <new name> RET, q -- for me it is
convenient and not too long.
Also, there is the point of "having too many commands" -- this would
make Emacs more complex to use, and personally I prefer a simpler
interface, even at the cost of not having a specific command for every
edge case.
--- Amit
next prev parent reply other threads:[~2018-05-10 8:20 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-07 13:58 Rename, delete and move current buffer and file Jarosław Rzeszótko
2018-05-07 14:53 ` Stefan Monnier
2018-05-07 16:20 ` Jarosław Rzeszótko
2018-05-07 17:01 ` Stefan Monnier
2018-05-07 17:47 ` Jarosław Rzeszótko
2018-05-08 1:28 ` Stefan Monnier
2018-05-08 7:05 ` Jarosław Rzeszótko
2018-05-09 12:28 ` Stefan Monnier
2018-05-09 18:12 ` Radon Rosborough
2018-05-09 22:44 ` Stefan Monnier
2018-05-10 17:01 ` Radon Rosborough
2018-05-10 21:49 ` Stefan Monnier
2018-05-11 7:31 ` Andreas Schwab
2018-05-11 15:33 ` Stefan Monnier
2018-05-11 15:45 ` Paul Eggert
2018-05-11 16:06 ` Clément Pit-Claudel
2018-05-11 16:14 ` Stefan Monnier
2018-05-09 23:50 ` Van L
2018-05-10 5:37 ` Jarosław Rzeszótko
2018-05-10 13:18 ` Van L
2018-05-10 8:20 ` Amit Ramon [this message]
2018-05-10 8:59 ` Phil Sainty
2018-05-10 16:04 ` Eli Zaretskii
2018-05-07 18:20 ` Andreas Schwab
2018-05-08 1:28 ` Stefan Monnier
2018-05-07 15:28 ` Yuri Khan
2018-05-07 16:20 ` Jarosław Rzeszótko
2018-05-09 11:46 ` Tino Calancha
2018-05-07 15:29 ` Andreas Röhler
2018-05-07 15:38 ` Andreas Röhler
2018-05-10 0:46 ` net june
2018-05-11 6:26 ` Andreas Röhler
2018-05-11 16:10 ` net june
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180510082005.6pfpostuxcuzfutt@isis.luna \
--to=amit.ramon@riseup.net \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).