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

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

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


From: Jeremy Bryant
Subject: bug#67313: [PATCH] New command write-file-no-switch
Date: Thu, 30 Nov 2023 23:18:59 +0000


>> > Why is it not enough to be able to use "M-x write-region"?
>> >
>> > In any case, a new command is definitely overkill, IMO.
>> 
>> Thank you for pointing out write-region, it is indeed more appropriate,
>> replacing the line above by
>> 
>> (write-region nil nil filename)
>> 
>> 
>> The attached patch is the prototype of how this may be used.
>
> 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.

Attachment: 0001-Elisp-manual-Mention-write-region-for-whole-buffer.patch
Description: Text Data


reply via email to

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