(lisp-indent-defmethod): At first three elements, act like defun.
Advance to start of 3rd sexp by moving fwd and backing over it.
This commit is contained in:
parent
b4d7a2ece9
commit
c298849896
1 changed files with 7 additions and 4 deletions
|
@ -358,10 +358,13 @@ by `lisp-body-indent'."
|
|||
(defun lisp-indent-defmethod (path state indent-point sexp-column
|
||||
normal-indent)
|
||||
"Indentation function defmethod."
|
||||
(lisp-indent-259 (if (save-excursion (goto-char (elt state 1))
|
||||
(forward-char 1)
|
||||
(forward-sexp 2)
|
||||
(looking-at "\\s-+:"))
|
||||
(lisp-indent-259 (if (and (>= (first path) 3)
|
||||
(null (rest path))
|
||||
(save-excursion (goto-char (elt state 1))
|
||||
(forward-char 1)
|
||||
(forward-sexp 3)
|
||||
(backward-sexp)
|
||||
(looking-at ":")))
|
||||
'(4 4 (&whole 4 &rest 4) &body)
|
||||
(get 'defun 'common-lisp-indent-function))
|
||||
path state indent-point sexp-column normal-indent))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue