Re: [9fans] Acme, Edit, code and newline

2014-04-01 Thread Daniel Peyrolon
Hi there everyone, Many thanks for the explanation, it's much clearer now. 2014-04-01 9:24 GMT+02:00 Mark van Atten : > On Mon, Mar 31, 2014 at 5:54 PM, Daniel Peyrolon > wrote: > >> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g > > > > So, it was simply a matter of chan

Re: [9fans] Acme, Edit, code and newline

2014-04-01 Thread Mark van Atten
On Mon, Mar 31, 2014 at 5:54 PM, Daniel Peyrolon wrote: >> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g > > So, it was simply a matter of changing "$" for "\n" at the x command! Yes. (In the version I gave, the replacement of the second $, the one in the s command, by \n w

Re: [9fans] Acme, Edit, code and newline

2014-03-31 Thread Ruben Schuller
Hi, 2014-03-31 17:54 Daniel Peyrolon : > > Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g > > So, it was simply a matter of changing "$" for "\n" at the x command! > How come my command didn't work? > It really should work with the "$", shouldn't it? > > Or even without th

Re: [9fans] Acme, Edit, code and newline

2014-03-31 Thread Daniel Peyrolon
> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g So, it was simply a matter of changing "$" for "\n" at the x command! How come my command didn't work? It really should work with the "$", shouldn't it? Or even without the \n or the $, since the regexp already matched until t

Re: [9fans] Acme, Edit, code and newline

2014-03-31 Thread erik quanstrom
> > \ before { is not necesary. > > Don't know how I got that one in there; thanks for catching it! it was in the original. - erik

Re: [9fans] Acme, Edit, code and newline

2014-03-31 Thread Mark van Atten
> \ before { is not necesary. Don't know how I got that one in there; thanks for catching it! Mark.

Re: [9fans] Acme, Edit, code and newline

2014-03-31 Thread erik quanstrom
On Mon Mar 31 11:37:51 EDT 2014, vanattenm...@gmail.com wrote: > Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g \ before { is not necesary. - erik

Re: [9fans] Acme, Edit, code and newline

2014-03-31 Thread Mark van Atten
Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g Mark.

[9fans] Acme, Edit, code and newline

2014-03-31 Thread Daniel Peyrolon
Hi there, I'm using p9p's acme, and I would like to take a piece of code and change, for example this: int main(int argc, char *argv[]) { For this: int main(int argc, char *argv[]) { So, for doing that, I thought about using some regexps and the Edit command. I would like to work with some ge