|
From: | Antonio Diaz Diaz |
Subject: | Re: Warn when editing read-only files |
Date: | Wed, 22 Nov 2023 15:39:18 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
John Cowan wrote:
On Fri, Nov 17, 2023 at 7:59 AM Antonio Diaz Diaz<antonio@gnu.org> wrote:So this should be doable in GNU ed as soon as we find a way to reset the 'read_only' flag. Maybe by changing the name of the file with 'f'?Since ed does not have a 'set' command, to emulate this interface it would be necessary to add two commands (or one command with a special argument).
I have finally implemented it so that it warns only once; the first time that a command modifies a buffer loaded from a read-only file.
Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |