emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67313: closed ([PATCH] New command write-file-no-switch)


From: GNU bug Tracking System
Subject: bug#67313: closed ([PATCH] New command write-file-no-switch)
Date: Fri, 01 Dec 2023 23:14:02 +0000

Your message dated Fri, 01 Dec 2023 23:11:10 +0000
with message-id <875y1ha54b.fsf@jeremybryant.net>
and subject line Re: bug#67313: [PATCH] New command write-file-no-switch
has caused the debbugs.gnu.org bug report #67313,
regarding [PATCH] New command write-file-no-switch
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
67313: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67313
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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.

Attachment: 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]