     (end-of-line n)
     (point)))
 
-(defun sw:get-paren-indent ()
+(defun sw:get-paren-indent (indent after-comma)
   (save-excursion
     (let ((levelpar 0)                  ; Level of "()"
           (levelcurl 0)                 ; Level of "{}"


Seek help (\\[describe-variable]) on individual variables to get current settings.

sw:indent-level (default 4)
    The indentation of a block of code.

sw:pipe-indent (default -2)

             (t
              (if sw:paren-lookback    ; Look for open parenthesis ?
                  (if follows-comma
		      (sw:get-paren-indent indent t)
		    (max 
		     indent		; (if (looking-at "[])}]") (1- indent) indent)
		     (sw:get-paren-indent indent nil)))
                indent))))))))))

(defun sw:previous-line-ends-in-comma ()
