Re: [Sugar-devel] Coding style: line continuations

2010-11-12 Thread Martin Dengler
On Fri, Nov 12, 2010 at 03:27:15AM +0800, C. Scott Ananian wrote: On Fri, Nov 12, 2010 at 2:09 AM, Simon Schampijer si...@schampijer.de wrote: In general I would do what the spec says if there is no good reason not to [1]. The example they have does not really handle all the cases, though.

Re: [Sugar-devel] Coding style: line continuations

2010-11-12 Thread Martin Dengler
On Thu, Nov 11, 2010 at 05:39:50PM +0100, Sascha Silbe wrote: Excerpts from Sugar Labs Bugs's message of Wed Oct 27 11:11:49 UTC 2010: {{{ 249 self._shared_activity.connect('buddy-joined', 250 self._buddy_joined_cb) }}} In emacs I just use tab

[Sugar-devel] Coding style: line continuations

2010-11-11 Thread Sascha Silbe
Excerpts from Sugar Labs Bugs's message of Wed Oct 27 11:11:49 UTC 2010: {{{ 249 self._shared_activity.connect('buddy-joined', 250 self._buddy_joined_cb) }}} In emacs I just use tab for that, the next line then gets aligned under the buddy joined.

[Sugar-devel] Coding style: line continuations

2010-11-11 Thread Sascha Silbe
Excerpts from Sugar Labs Bugs's message of Wed Oct 27 11:11:49 UTC 2010: {{{ 249 self._shared_activity.connect('buddy-joined', 250 self._buddy_joined_cb) }}} In emacs I just use tab for that, the next line then gets aligned under the buddy joined.

Re: [Sugar-devel] Coding style: line continuations

2010-11-11 Thread Simon Schampijer
On 11/11/2010 05:39 PM, Sascha Silbe wrote: Excerpts from Sugar Labs Bugs's message of Wed Oct 27 11:11:49 UTC 2010: {{{ 249 self._shared_activity.connect('buddy-joined', 250 self._buddy_joined_cb) }}} In emacs I just use tab for that, the next

Re: [Sugar-devel] Coding style: line continuations

2010-11-11 Thread C. Scott Ananian
FWIW, I greatly prefer continuations of parentheses-enclosed expressions to be aligned with the start paren. Which also happens to be emacs' default, for Python as well as c-mode. gratuitous-use-of-religion What crazy editor are you using which doesn't support this? /gratuitous-use-of-religion

Re: [Sugar-devel] Coding style: line continuations

2010-11-11 Thread C. Scott Ananian
On Fri, Nov 12, 2010 at 2:09 AM, Simon Schampijer si...@schampijer.de wrote: In general I would do what the spec says if there is no good reason not to [1]. The example they have does not really handle all the cases, though. Neither pep8 nor pylint does favor any formatting. So I guess we are a