comparison lisp/emacs-lisp/cl-indent.el @ 22756:6103b46f200a

Indent `restart-case', `handler-bind' and `restart-bind' correctly.
author Richard M. Stallman <rms@gnu.org>
date Tue, 14 Jul 1998 08:20:17 +0000
parents 776e56dbde3c
children 77090a500417
comparison
equal deleted inserted replaced
22755:661d40b1f2f0 22756:6103b46f200a
400 (dolist ((&whole 4 2 1) &body)) 400 (dolist ((&whole 4 2 1) &body))
401 (dotimes . dolist) 401 (dotimes . dolist)
402 (eval-when 1) 402 (eval-when 1)
403 (flet ((&whole 4 &rest (&whole 1 (&whole 4 &rest 1) &body)) 403 (flet ((&whole 4 &rest (&whole 1 (&whole 4 &rest 1) &body))
404 &body)) 404 &body))
405 (handler-case (4 &rest (&whole 2 (&whole 4 &rest 1) &body)))
406 (labels . flet) 405 (labels . flet)
407 (macrolet . flet) 406 (macrolet . flet)
407 (handler-case (4 &rest (&whole 2 (&whole 4 &rest 1) &body)))
408 (restart-case . handler-case)
408 ;; `else-body' style 409 ;; `else-body' style
409 (if (nil nil &body)) 410 (if (nil nil &body))
410 ;; single-else style (then and else equally indented) 411 ;; single-else style (then and else equally indented)
411 (if (&rest nil)) 412 (if (&rest nil))
412 ;; (lambda ((&whole 4 &rest 1) &body)) 413 ;; (lambda ((&whole 4 &rest 1) &body))
413 (lambda ((&whole 4 &rest 1) 414 (lambda ((&whole 4 &rest 1)
414 &rest lisp-indent-function-lambda-hack)) 415 &rest lisp-indent-function-lambda-hack))
415 (let ((&whole 4 &rest (&whole 1 1 2)) &body)) 416 (let ((&whole 4 &rest (&whole 1 1 2)) &body))
416 (let* . let) 417 (let* . let)
417 (compiler-let . let) ;barf 418 (compiler-let . let) ;barf
419 (handler-bind . let) (restart-bind . let)
418 (locally 1) 420 (locally 1)
419 ;(loop ...) 421 ;(loop ...)
420 (multiple-value-bind 422 (multiple-value-bind
421 ((&whole 6 &rest 1) 4 &body)) 423 ((&whole 6 &rest 1) 4 &body))
422 (multiple-value-call 424 (multiple-value-call