From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <138575260903040610u4950702es60d0e5c0f78503f2@mail.gmail.com> <2772b418c31186cdd12c944173fda946@quanstro.net> Date: Sun, 8 Mar 2009 01:57:11 +0100 Message-ID: From: yy To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/mixed; boundary=001636c5b47e7f5b93046490ffbd Subject: Re: [9fans] acme Put doesn't save Topicbox-Message-UUID: b629a872-ead4-11e9-9d60-3106f5b1d025 --001636c5b47e7f5b93046490ffbd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/3/4 roger peppe : > personally, i think that Put should work on any non-application > window, and that re-columnation should only take place if > the textual content hasn't been modified by the user. (and > probably also that if you change the name of a window to a directory > name and do "Get", that it would get a directory listing). > > but YMMV as always. > I think the attached patch is what you are proposing. If you apply it, when you edit dir windows, the file menu will be added (Undo, Put will only appear when the window name changes), and columnate won't be called for that window. If you execute Put in that window it will be saved, if the window name is a directory there will be an error. Another changes I did is that now if you edit the title of +Error windows the file menu will appear, and Get will appear when the window name finishes with '/'. I haven't tested it too much, but it is working here. -- - yiyus || JGL . --001636c5b47e7f5b93046490ffbd Content-Type: text/x-diff; charset=US-ASCII; name="acmeput.patch" Content-Disposition: attachment; filename="acmeput.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fs10i84t0 ZGlmZiAvc3lzL3NyYy9jbWQvYWNtZS9leGVjLmMgLgo2NDNjNjQzCjwgCWlmKGV0PT1uaWwgfHwg ZXQtPnc9PW5pbCB8fCBldC0+dy0+aXNkaXIpCi0tLQo+IAlpZihldD09bmlsIHx8IGV0LT53PT1u aWwpCjY0NWE2NDYKPiAJdy0+aXNkaXIgPSBGQUxTRTsKZGlmZiAvc3lzL3NyYy9jbWQvYWNtZS9s b29rLmMgLgoxMDljMTA5CjwgCQkJCXdoaWxlKHExPHQtPmZpbGUtPm5jICYmIChjPXRnZXRjKHQs IHExKS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