lisp-loop-forms-indentation 2
lisp-lambda-list-keyword-parameter-alignment t)
-(defun mdw-indent-funcall (path state indent-point sexp-column normal-indent)
+(defun mdw-indent-funcall
+ (path state &optional indent-point sexp-column normal-indent)
"Indent `funcall' more usefully.
Essentially, treat `funcall foo' as a function name, and align the arguments
to `foo'."
- (and (null (cdr path))
+ (and (or (not (consp path)) (null (cadr path)))
(save-excursion
(goto-char (cadr state))
(forward-char 1)
(forward-sexp -1)
(and (= start-line (line-number-at-pos))
(current-column))))))))
-(put 'funcall 'common-lisp-indent-function 'mdw-indent-funcall)
+(progn
+ (put 'funcall 'common-lisp-indent-function 'mdw-indent-funcall)
+ (put 'funcall 'lisp-indent-function 'mdw-indent-funcall))
(defadvice common-lisp-loop-part-indentation
(around mdw-fix-loop-indentation (indent-point state) activate compile)