[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rename, delete and move current buffer and file
From: |
Amit Ramon |
Subject: |
Re: Rename, delete and move current buffer and file |
Date: |
Thu, 10 May 2018 11:20:05 +0300 |
Stefan Monnier <address@hidden> [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
- Re: Rename, delete and move current buffer and file, (continued)
- Re: Rename, delete and move current buffer and file, Radon Rosborough, 2018/05/10
- Re: Rename, delete and move current buffer and file, Stefan Monnier, 2018/05/10
- Re: Rename, delete and move current buffer and file, Andreas Schwab, 2018/05/11
- Re: Rename, delete and move current buffer and file, Stefan Monnier, 2018/05/11
- Re: Rename, delete and move current buffer and file, Paul Eggert, 2018/05/11
- Re: Rename, delete and move current buffer and file, Clément Pit-Claudel, 2018/05/11
- Re: Rename, delete and move current buffer and file, Stefan Monnier, 2018/05/11
- Re: Rename, delete and move current buffer and file, Van L, 2018/05/09
- Re: Rename, delete and move current buffer and file, Jarosław Rzeszótko, 2018/05/10
- Re: Rename, delete and move current buffer and file, Van L, 2018/05/10
- Re: Rename, delete and move current buffer and file,
Amit Ramon <=
- Re: Rename, delete and move current buffer and file, Phil Sainty, 2018/05/10
- Re: Rename, delete and move current buffer and file, Eli Zaretskii, 2018/05/10
- Re: Rename, delete and move current buffer and file, Andreas Schwab, 2018/05/07
- Re: Rename, delete and move current buffer and file, Stefan Monnier, 2018/05/07
Re: Rename, delete and move current buffer and file, Yuri Khan, 2018/05/07
Re: Rename, delete and move current buffer and file, Andreas Röhler, 2018/05/07