[Python-mode] bug lp:328842, flexible-indentation of multiline assignements
Andreas Röhler
andreas.roehler at online.de
Fri Mar 25 09:51:57 CET 2011
Hi Barry, hi all,
while considering the request valid, even if the current
non-indent is an option,
what's the recommendable indent?
Would not choose the block-indent step, rather signal
it's something different at stake.
What about indenting it to the end of first element of
previous line?
;;;;;;;;;;;
(longer, sequence, of_items,
that, needs, to_be, wrapped) = input_list
packed_entry = (long, sequence, of_items,
that, needs, to_be, wrapped)
;;;;;;;;;;
Would introduce two boolean variables
py-multiline-assignement-first-column:
"If a multiline-assignement element in first-column
should be indented"
py-multiline-indent-to-first-element:
"If a multiline-assignement in first-column
should be indented to the end of it's first element. "
Also:
(defcustom py-indent-in-delimiter 1
"When inside a multiline-assignement: How many colums indent should
be more than opening bracket, brace or parenthesis. "
:type 'integer
:group 'python)
(make-variable-buffer-local 'py-indent-in-delimiter)
Cheers
More information about the Python-mode
mailing list