From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 26 Dec 2007 12:52:54 +0000 From: "roger peppe" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Acme aborts on a pointless Edit command In-Reply-To: <20071224041704.GA14349@dinah> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071224041704.GA14349@dinah> Topicbox-Message-UUID: 2224c360-ead3-11e9-9d60-3106f5b1d025 On Dec 24, 2007 4:17 AM, Anthony Martin wrote: > This came about because I was trying to find a way to > move lines matching a certain pattern to the beginning > of a file (like g/pattern/m0 in ed). Is there a nice > way to do this in sam? if i want to do something like this in acme, i'd tend to split it into stages: x/pattern/p x/pattern/d then paste the text in the output window back to the beginning of the original window. (actually, it would be nice if Edit output from a given window ended up in the local directory's +Errors window rather than the global one, but i've never quite mustered the impetus to actually do it...)