--- Begin Message ---
Subject: |
[PATCH] New command write-file-no-switch |
Date: |
Mon, 20 Nov 2023 23:33:27 +0000 |
Tags: patch
By default write-file changes the buffer to point to the new filename,
but a user may wish to simply do the equivalent of write-file without
switching, as a sort of backup file.
The attached is a patch concept to introduce the idea. Please let me
know if this makes sense to introduce a new command rather than
modifying the existing one (which may be less convenient). I understand
there would be additional things to do for new commands, but would like
to propose the idea first. Any suggestions welcome.
0001-New-command-write-file-no-switch.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#67313: [PATCH] New command write-file-no-switch |
Date: |
Fri, 01 Dec 2023 23:11:10 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Jeremy Bryant <jb@jeremybryant.net>
>> Cc: 67313@debbugs.gnu.org
>> Date: Thu, 30 Nov 2023 23:18:59 +0000
>>
>> > Thanks. As stated above, I'm not sure I agree we need a new command.
>> > write-region already exists, as a command, and I personally use it
>> > quite a lot in these cases.
>> >
>> > Does anyone else think we need an additional command for saving a
>> > buffer to a different file?
>>
>>
>> Eli, another way is also to clarify the manual to explain write-region.
>> Second patch attached for consideration. This may help users.
>
> Thanks, that's a no-brainer. Installed on the emacs-29 branch (after
> fixing some markup and punctuation issues).
>
> Should we close this bug now?
Yes, closing bug as fixed by this addition to the manual.
(noted usage of @w)
--- End Message ---