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

_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to