From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: <9fans@9fans.net> Date: Mon, 27 Oct 2014 16:46:01 +0100 From: Ingo Krabbe In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] [acme] Edit command -- More than one argument? Topicbox-Message-UUID: 20bf64c0-ead9-11e9-9d60-3106f5b1d025 but you can't do this on a acme headline. So how would you apply such multiline commands to a range you marked in the buffer? > Edit { > s/^/\[/ > s/\:\ /\]/ > } > > > On Mon, Oct 27, 2014 at 8:28 AM, Eduardo Alvarez > wrote: > >> Hello, everyone, >> >> I'm in the process of learning acme via Russ Cox's p9p port. Recently, I >> found >> myself editing some text to use with markdown, and needed to make more >> than one >> modification to a list. I wanted to know if it's possible to give the Edit >> command more than one argument. For example, I found myself needing to >> replace >> colons with a close bracket (]), and inserting an open bracket at the >> beginning >> of the line. So I did this: >> >> Edit s/^/\[/ >> Edit s/\:\ /\]/ >> >> And I was hoping to combine these into a single line, so, for example: >> >> Edit s/^/\[/ s/\:\ /\]/ >> (Not sure if escaping was necessary, but I was playing it safe) >> >> Doing exactly what I did above resulted in the error >> >> "Edit: newline expected (saw f)" >> >> So that's obviously not it. But I'm not sure if it's at all possible. >> >> Thank you in advance. >> -- >> Eduardo Alvarez >> >> "Stercus, Stercus, Stercus, moriturus sum" >> -- Rincewind The Wizzard >>