Re: [Factor-talk] factor-mode: Closing characters

2008-11-18 Thread Eduardo Cavazos
On Monday 17 November 2008 20:54:42 Jose A. Ortega Ruiz wrote: > Here's an initial attempt at proper indentation, according to my > understanding of Ed's and Slava's guidelines. I haven't tested it > thoroughly yet (it's getting a bit late here), so please play a bit with > it if you have a little

Re: [Factor-talk] factor-mode: Closing characters

2008-11-17 Thread Jose A. Ortega Ruiz
Here's an initial attempt at proper indentation, according to my understanding of Ed's and Slava's guidelines. I haven't tested it thoroughly yet (it's getting a bit late here), so please play a bit with it if you have a little time. Thanks! --- The following changes since commit a9a28a3

Re: [Factor-talk] factor-mode: Closing characters

2008-11-17 Thread Jose A. Ortega Ruiz
"Slava Pestov" <[EMAIL PROTECTED]> writes: > The correct indentation is "like C". > > The following is not idiomatic Factor, and people should not indent > their code like this: > > { 10 20 > 40 50 } Just to be sure: does that mean that people should always write a newline after an opening br

Re: [Factor-talk] factor-mode: Closing characters

2008-11-17 Thread Eduardo Cavazos
On Monday 17 November 2008 16:26:53 Jose A. Ortega Ruiz wrote: > Yes... except maybe when there're words before the opening brace?: > > a swap { > 10 > 20 > } ! <- here (like C) > } ! <- or here? > > Similar problems seem to exist for multiline []...

Re: [Factor-talk] factor-mode: Closing characters

2008-11-17 Thread Slava Pestov
On Mon, Nov 17, 2008 at 4:26 PM, Jose A. Ortega Ruiz <[EMAIL PROTECTED]> wrote: > Yes... except maybe when there're words before the opening brace?: > > a swap { > 10 > 20 > } ! <- here (like C) >} ! <- or here? The correct indentation is "like C". The

Re: [Factor-talk] factor-mode: Closing characters

2008-11-17 Thread Jose A. Ortega Ruiz
Eduardo Cavazos <[EMAIL PROTECTED]> writes: > Jose, > > If I start typing an array: > > { > 10 > 20 > 30 > > All the indentation is happening automatically. However, when I type the > closing '}' it remains at the same indentation as the numbers. Perhaps it >

[Factor-talk] factor-mode: Closing characters

2008-11-16 Thread Eduardo Cavazos
Jose, If I start typing an array: { 10 20 30 All the indentation is happening automatically. However, when I type the closing '}' it remains at the same indentation as the numbers. Perhaps it should vertically align with the opening brace? Ed -