aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2001-11-12 19:58:33 +0000
committerSam Steingold2001-11-12 19:58:33 +0000
commite7c8c428f1fada3e5353b7d87673e4d146465204 (patch)
tree896ee7583ba6ee73d54a5545540d7bb75c3074b9
parent68d2f12f405d023a3a0bcf12a941b0b735a71944 (diff)
downloademacs-e7c8c428f1fada3e5353b7d87673e4d146465204.tar.gz
emacs-e7c8c428f1fada3e5353b7d87673e4d146465204.zip
Indent properly `generic-flet', `generic-labels', `with-accessors',
`with-condition-restarts'.
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/emacs-lisp/cl-indent.el16
2 files changed, 19 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 22e2a836e8c..d55133431b5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,10 +1,16 @@
12001-11-12 Sam Steingold <sds@gnu.org>
2
3 * emacs-lisp/cl-indent.el (toplevel): Indent properly
4 `generic-flet', `generic-labels', `with-accessors',
5 `with-condition-restarts'.
6
12001-11-12 Richard M. Stallman <rms@gnu.org> 72001-11-12 Richard M. Stallman <rms@gnu.org>
2 8
3 * dired.el: Many trivial doc fixes. 9 * dired.el: Many trivial doc fixes.
4 (dired-get-file-for-visit): New function. 10 (dired-get-file-for-visit): New function.
5 (dired-find-alternate-file, dired-mouse-find-file-other-window): 11 (dired-find-alternate-file, dired-mouse-find-file-other-window):
6 (dired-view-file, dired-find-file-other-window, dired-display-file): 12 (dired-view-file, dired-find-file-other-window, dired-display-file):
7 (dired-find-file): Use dired-get-file-for-visit. 13 (dired-find-file): Use dired-get-file-for-visit.
8 14
92001-11-12 Alex Schroeder <kensanata@yahoo.com> 152001-11-12 Alex Schroeder <kensanata@yahoo.com>
10 16
@@ -43,10 +49,10 @@
43 * calendar/solar.el (solar-sunrise-and-sunset): 49 * calendar/solar.el (solar-sunrise-and-sunset):
44 Exchange the two extreme values of day-length. 50 Exchange the two extreme values of day-length.
45 51
46 * progmodes/sh-script.el (sh-must-be-shell-mode): 52 * progmodes/sh-script.el (sh-must-be-shell-mode):
47 Allow modes derived from sh-mode. 53 Allow modes derived from sh-mode.
48 54
49 * emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): 55 * emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
50 Turn off error in some re-search-forward calls. 56 Turn off error in some re-search-forward calls.
51 57
52 * replace.el (query-replace-skip-read-only): New variable. 58 * replace.el (query-replace-skip-read-only): New variable.
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'."
355 (&whole nil &rest 1)) 355 (&whole nil &rest 1))
356 path state indent-point sexp-column normal-indent))) 356 path state indent-point sexp-column normal-indent)))
357 357
358(defun lisp-indent-defmethod (path state indent-point sexp-column 358(defun lisp-indent-defmethod (path state indent-point sexp-column
359 normal-indent) 359 normal-indent)
360 "Indentation function defmethod." 360 "Indentation function defmethod."
361 (lisp-indent-259 (if (save-excursion (goto-char (elt state 1)) 361 (lisp-indent-259 (if (save-excursion (goto-char (elt state 1))
@@ -419,6 +419,7 @@ by `lisp-body-indent'."
419 (flet ((&whole 4 &rest (&whole 1 &lambda &body)) &body)) 419 (flet ((&whole 4 &rest (&whole 1 &lambda &body)) &body))
420 (labels . flet) 420 (labels . flet)
421 (macrolet . flet) 421 (macrolet . flet)
422 (generic-flet . flet) (generic-labels . flet)
422 (handler-case (4 &rest (&whole 2 &lambda &body))) 423 (handler-case (4 &rest (&whole 2 &lambda &body)))
423 (restart-case . handler-case) 424 (restart-case . handler-case)
424 ;; `else-body' style 425 ;; `else-body' style
@@ -455,15 +456,16 @@ by `lisp-body-indent'."
455 (unless 1) 456 (unless 1)
456 (unwind-protect (5 &body)) 457 (unwind-protect (5 &body))
457 (when 1) 458 (when 1)
459 (with-accessors . multiple-value-bind)
460 (with-condition-restarts . multiple-value-bind)
458 (with-output-to-string (4 2)) 461 (with-output-to-string (4 2))
459 (with-slots . multiple-value-bind) 462 (with-slots . multiple-value-bind)
460 (with-standard-io-syntax (2))))) 463 (with-standard-io-syntax (2)))))
461 (while l 464 (dolist (el l)
462 (put (caar l) 'common-lisp-indent-function 465 (put (car el) 'common-lisp-indent-function
463 (if (symbolp (cdar l)) 466 (if (symbolp (cdr el))
464 (get (cdar l) 'common-lisp-indent-function) 467 (get (cdr el) 'common-lisp-indent-function)
465 (car (cdar l)))) 468 (car (cdr el))))))
466 (setq l (cdr l))))
467 469
468 470
469;(defun foo (x) 471;(defun foo (x)