diff options
author | Sam Steingold <sds@gnu.org> | 2001-11-12 19:58:33 +0000 |
---|---|---|
committer | Sam Steingold <sds@gnu.org> | 2001-11-12 19:58:33 +0000 |
commit | e7c8c428f1fada3e5353b7d87673e4d146465204 (patch) | |
tree | 896ee7583ba6ee73d54a5545540d7bb75c3074b9 /lisp/emacs-lisp | |
parent | 68d2f12f405d023a3a0bcf12a941b0b735a71944 (diff) | |
download | emacs-e7c8c428f1fada3e5353b7d87673e4d146465204.tar.gz emacs-e7c8c428f1fada3e5353b7d87673e4d146465204.tar.bz2 emacs-e7c8c428f1fada3e5353b7d87673e4d146465204.zip |
Indent properly `generic-flet', `generic-labels', `with-accessors',
`with-condition-restarts'.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cl-indent.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/cl-indent.el b/lisp/emacs-lisp/cl-indent.el index 69620763414..fee555d3ed3 100644 --- a/lisp/emacs-lisp/cl-indent.el +++ b/lisp/emacs-lisp/cl-indent.el @@ -355,7 +355,7 @@ by `lisp-body-indent'." (&whole nil &rest 1)) path state indent-point sexp-column normal-indent))) -(defun lisp-indent-defmethod (path state indent-point sexp-column +(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)) @@ -419,6 +419,7 @@ by `lisp-body-indent'." (flet ((&whole 4 &rest (&whole 1 &lambda &body)) &body)) (labels . flet) (macrolet . flet) + (generic-flet . flet) (generic-labels . flet) (handler-case (4 &rest (&whole 2 &lambda &body))) (restart-case . handler-case) ;; `else-body' style @@ -455,15 +456,16 @@ by `lisp-body-indent'." (unless 1) (unwind-protect (5 &body)) (when 1) + (with-accessors . multiple-value-bind) + (with-condition-restarts . multiple-value-bind) (with-output-to-string (4 2)) (with-slots . multiple-value-bind) (with-standard-io-syntax (2))))) - (while l - (put (caar l) 'common-lisp-indent-function - (if (symbolp (cdar l)) - (get (cdar l) 'common-lisp-indent-function) - (car (cdar l)))) - (setq l (cdr l)))) + (dolist (el l) + (put (car el) 'common-lisp-indent-function + (if (symbolp (cdr el)) + (get (cdr el) 'common-lisp-indent-function) + (car (cdr el)))))) ;(defun foo (x) |