| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
(defgroup lisp-indent nil |
|---|
| 53 |
"Indentation in Lisp." |
|---|
| 54 |
:group 'lisp) |
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
(defcustom lisp-indent-maximum-backtracking 3 |
|---|
| 58 |
"*Maximum depth to backtrack out from a sublist for structured indentation. |
|---|
| 59 |
If this variable is 0, no backtracking will occur and forms such as `flet' |
|---|
| 60 |
may not be correctly indented." |
|---|
| 61 |
:type 'integer |
|---|
| 62 |
:group 'lisp-indent) |
|---|
| 63 |
|
|---|
| 64 |
(defcustom lisp-tag-indentation 1 |
|---|
| 65 |
"*Indentation of tags relative to containing list. |
|---|
| 66 |
This variable is used by the function `lisp-indent-tagbody'." |
|---|
| 67 |
:type 'integer |
|---|
| 68 |
:group 'lisp-indent) |
|---|
| 69 |
|
|---|
| 70 |
(defcustom lisp-tag-body-indentation 3 |
|---|
| 71 |
"*Indentation of non-tagged lines relative to containing list. |
|---|
| 72 |
This variable is used by the function `lisp-indent-tagbody' to indent normal |
|---|
| 73 |
lines (lines without tags). |
|---|
| 74 |
The indentation is relative to the indentation of the parenthesis enclosing |
|---|
| 75 |
the special form. If the value is t, the body of tags will be indented |
|---|
| 76 |
as a block at the same indentation as the first s-expression following |
|---|
| 77 |
the tag. In this case, any forms before the first tag are indented |
|---|
| 78 |
by `lisp-body-indent'." |
|---|
| 79 |
:type 'integer |
|---|
| 80 |
:group 'lisp-indent) |
|---|
| 81 |
|
|---|
| 82 |
(defcustom lisp-backquote-indentation t |
|---|
| 83 |
"*Whether or not to indent backquoted lists as code. |
|---|
| 84 |
If nil, indent backquoted lists as data, i.e., like quoted lists." |
|---|
| 85 |
:type 'boolean |
|---|
| 86 |
:group 'lisp-indent) |
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
(defcustom lisp-loop-keyword-indentation 3 |
|---|
| 90 |
"*Indentation of loop keywords in extended loop forms." |
|---|
| 91 |
:type 'integer |
|---|
| 92 |
:group 'lisp-indent) |
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
(defcustom lisp-loop-forms-indentation 5 |
|---|
| 96 |
"*Indentation of forms in extended loop forms." |
|---|
| 97 |
:type 'integer |
|---|
| 98 |
:group 'lisp-indent) |
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
(defcustom lisp-simple-loop-indentation 3 |
|---|
| 102 |
"*Indentation of forms in simple loop forms." |
|---|
| 103 |
:type 'integer |
|---|
| 104 |
:group 'lisp-indent) |
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 |
(defvar lisp-indent-error-function) |
|---|
| 108 |
(defvar lisp-indent-defun-method '(4 &lambda &body)) |
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
(defun extended-loop-p (loop-start) |
|---|
| 112 |
"True if an extended loop form starts at LOOP-START." |
|---|
| 113 |
(condition-case () |
|---|
| 114 |
(save-excursion |
|---|
| 115 |
(goto-char loop-start) |
|---|
| 116 |
(forward-char 1) |
|---|
| 117 |
(forward-sexp 2) |
|---|
| 118 |
(backward-sexp 1) |
|---|
| 119 |
(looking-at "\\sw")) |
|---|
| 120 |
(error t))) |
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
(defun common-lisp-loop-part-indentation (indent-point state) |
|---|
| 124 |
"Compute the indentation of loop form constituents." |
|---|
| 125 |
(let* ((loop-indentation (save-excursion |
|---|
| 126 |
(goto-char (elt state 1)) |
|---|
| 127 |
(current-column)))) |
|---|
| 128 |
(goto-char indent-point) |
|---|
| 129 |
(beginning-of-line) |
|---|
| 130 |
(cond ((not (extended-loop-p (elt state 1))) |
|---|
| 131 |
(+ loop-indentation lisp-simple-loop-indentation)) |
|---|
| 132 |
((looking-at "^\\s-*\\(:?\\sw+\\|;\\)") |
|---|
| 133 |
(+ loop-indentation lisp-loop-keyword-indentation)) |
|---|
| 134 |
(t |
|---|
| 135 |
(+ loop-indentation lisp-loop-forms-indentation))))) |
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
(defun common-lisp-indent-function (indent-point state) |
|---|
| 140 |
(if (save-excursion (goto-char (elt state 1)) |
|---|
| 141 |
(looking-at "([Ll][Oo][Oo][Pp]")) |
|---|
| 142 |
(common-lisp-loop-part-indentation indent-point state) |
|---|
| 143 |
(common-lisp-indent-function-1 indent-point state))) |
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
(defun common-lisp-indent-function-1 (indent-point state) |
|---|
| 147 |
(let ((normal-indent (current-column))) |
|---|
| 148 |
|
|---|
| 149 |
|
|---|
| 150 |
(let ((depth 0) |
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 |
(path ()) |
|---|
| 155 |
|
|---|
| 156 |
calculated |
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 |
tentative-calculated |
|---|
| 160 |
(last-point indent-point) |
|---|
| 161 |
|
|---|
| 162 |
(containing-form-start (elt state 1)) |
|---|
| 163 |
|
|---|
| 164 |
sexp-column) |
|---|
| 165 |
|
|---|
| 166 |
(goto-char containing-form-start) |
|---|
| 167 |
(setq sexp-column (current-column)) |
|---|
| 168 |
|
|---|
| 169 |
|
|---|
| 170 |
(while (and (not calculated) |
|---|
| 171 |
(< depth lisp-indent-maximum-backtracking)) |
|---|
| 172 |
(let ((containing-sexp (point))) |
|---|
| 173 |
(forward-char 1) |
|---|
| 174 |
(parse-partial-sexp (point) indent-point 1 t) |
|---|
| 175 |
|
|---|
| 176 |
(let (tem function method tentative-defun) |
|---|
| 177 |
(if (not (looking-at "\\sw\\|\\s_")) |
|---|
| 178 |
|
|---|
| 179 |
(setq function nil method nil) |
|---|
| 180 |
(setq tem (point)) |
|---|
| 181 |
(forward-sexp 1) |
|---|
| 182 |
(setq function (downcase (buffer-substring-no-properties |
|---|
| 183 |
tem (point)))) |
|---|
| 184 |
(goto-char tem) |
|---|
| 185 |
(setq tem (intern-soft function) |
|---|
| 186 |
method (get tem 'common-lisp-indent-function)) |
|---|
| 187 |
(cond ((and (null method) |
|---|
| 188 |
(string-match ":[^:]+" function)) |
|---|
| 189 |
|
|---|
| 190 |
(setq function (substring function |
|---|
| 191 |
(1+ (match-beginning 0))) |
|---|
| 192 |
method (get (intern-soft function) |
|---|
| 193 |
'common-lisp-indent-function))) |
|---|
| 194 |
((and (null method)) |
|---|
| 195 |
|
|---|
| 196 |
(setq method (get tem 'lisp-indent-function))))) |
|---|
| 197 |
(let ((n 0)) |
|---|
| 198 |
|
|---|
| 199 |
(if (< (point) indent-point) |
|---|
| 200 |
(while (condition-case () |
|---|
| 201 |
(progn |
|---|
| 202 |
(forward-sexp 1) |
|---|
| 203 |
(if (>= (point) indent-point) |
|---|
| 204 |
nil |
|---|
| 205 |
(parse-partial-sexp (point) |
|---|
| 206 |
indent-point 1 t) |
|---|
| 207 |
(setq n (1+ n)) |
|---|
| 208 |
t)) |
|---|
| 209 |
(error nil)))) |
|---|
| 210 |
(setq path (cons n path))) |
|---|
| 211 |
|
|---|
| 212 |
|
|---|
| 213 |
(cond ((null function)) |
|---|
| 214 |
((null method) |
|---|
| 215 |
(when (null (cdr path)) |
|---|
| 216 |
|
|---|
| 217 |
(cond ((string-match "\\`def" |
|---|
| 218 |
function) |
|---|
| 219 |
(setq tentative-defun t)) |
|---|
| 220 |
((string-match |
|---|
| 221 |
(eval-when-compile |
|---|
| 222 |
(concat "\\`\\(" |
|---|
| 223 |
(regexp-opt '("with" "without" "do")) |
|---|
| 224 |
"\\)-")) |
|---|
| 225 |
function) |
|---|
| 226 |
(setq method '(&lambda &body)))))) |
|---|
| 227 |
|
|---|
| 228 |
((eq method 'defun) |
|---|
| 229 |
(setq method lisp-indent-defun-method))) |
|---|
| 230 |
|
|---|
| 231 |
(cond ((and (or (eq (char-after (1- containing-sexp)) ?\') |
|---|
| 232 |
(and (not lisp-backquote-indentation) |
|---|
| 233 |
(eq (char-after (1- containing-sexp)) ?\`))) |
|---|
| 234 |
(not (eq (char-after (- containing-sexp 2)) ?\#))) |
|---|
| 235 |
|
|---|
| 236 |
(setq calculated (1+ sexp-column))) |
|---|
| 237 |
((or (eq (char-after (1- containing-sexp)) ?\,) |
|---|
| 238 |
(and (eq (char-after (1- containing-sexp)) ?\@) |
|---|
| 239 |
(eq (char-after (- containing-sexp 2)) ?\,))) |
|---|
| 240 |
|
|---|
| 241 |
(setq calculated normal-indent)) |
|---|
| 242 |
((eq (char-after (1- containing-sexp)) ?\#) |
|---|
| 243 |
|
|---|
| 244 |
(setq calculated (1+ sexp-column))) |
|---|
| 245 |
((null method) |
|---|
| 246 |
|
|---|
| 247 |
|
|---|
| 248 |
|
|---|
| 249 |
|
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 |
|
|---|
| 255 |
|
|---|
| 256 |
|
|---|
| 257 |
|
|---|
| 258 |
(if tentative-defun |
|---|
| 259 |
(setq tentative-calculated |
|---|
| 260 |
(common-lisp-indent-call-method |
|---|
| 261 |
function lisp-indent-defun-method |
|---|
| 262 |
path state indent-point |
|---|
| 263 |
sexp-column normal-indent) |
|---|
| 264 |
normal-indent tentative-calculated))) |
|---|
| 265 |
((integerp method) |
|---|
| 266 |
|
|---|
| 267 |
|
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| 270 |
|
|---|
| 271 |
(setq calculated (cond ((cdr path) |
|---|
| 272 |
normal-indent) |
|---|
| 273 |
((<= (car path) method) |
|---|
| 274 |
|
|---|
| 275 |
(list (+ sexp-column 4) |
|---|
| 276 |
containing-form-start)) |
|---|
| 277 |
((= (car path) (1+ method)) |
|---|
| 278 |
|
|---|
| 279 |
(+ sexp-column lisp-body-indent)) |
|---|
| 280 |
(t |
|---|
| 281 |
|
|---|
| 282 |
normal-indent)))) |
|---|
| 283 |
(t |
|---|
| 284 |
(setq calculated |
|---|
| 285 |
(common-lisp-indent-call-method |
|---|
| 286 |
function method path state indent-point |
|---|
| 287 |
sexp-column normal-indent))))) |
|---|
| 288 |
(goto-char containing-sexp) |
|---|
| 289 |
(setq last-point containing-sexp) |
|---|
| 290 |
(unless calculated |
|---|
| 291 |
(condition-case () |
|---|
| 292 |
(progn (backward-up-list 1) |
|---|
| 293 |
(setq depth (1+ depth))) |
|---|
| 294 |
(error (setq depth lisp-indent-maximum-backtracking)))))) |
|---|
| 295 |
(or calculated tentative-calculated)))) |
|---|
| 296 |
|
|---|
| 297 |
|
|---|
| 298 |
(defun common-lisp-indent-call-method (function method path state indent-point |
|---|
| 299 |
sexp-column normal-indent) |
|---|
| 300 |
(let ((lisp-indent-error-function function)) |
|---|
| 301 |
(if (symbolp method) |
|---|
| 302 |
(funcall method |
|---|
| 303 |
path state indent-point |
|---|
| 304 |
sexp-column normal-indent) |
|---|
| 305 |
(lisp-indent-259 method path state indent-point |
|---|
| 306 |
sexp-column normal-indent)))) |
|---|
| 307 |
|
|---|
| 308 |
(defun lisp-indent-report-bad-format (m) |
|---|
| 309 |
(error "%s has a badly-formed %s property: %s" |
|---|
| 310 |
|
|---|
| 311 |
lisp-indent-error-function 'common-lisp-indent-function m)) |
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 |
|
|---|
| 315 |
(defun lisp-indent-259 (method path state indent-point |
|---|
| 316 |
sexp-column normal-indent) |
|---|
| 317 |
(catch 'exit |
|---|
| 318 |
(let ((p path) |
|---|
| 319 |
(containing-form-start (elt state 1)) |
|---|
| 320 |
n tem tail) |
|---|
| 321 |
|
|---|
| 322 |
(while p |
|---|
| 323 |
|
|---|
| 324 |
|
|---|
| 325 |
(if (not (consp method)) (lisp-indent-report-bad-format method)) |
|---|
| 326 |
(setq n (1- (car p)) |
|---|
| 327 |
p (cdr p) |
|---|
| 328 |
tail nil) |
|---|
| 329 |
(while n |
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 |
|
|---|
| 333 |
|
|---|
| 334 |
|
|---|
| 335 |
(setq tem (car method)) |
|---|
| 336 |
|
|---|
| 337 |
(or (eq tem 'nil) |
|---|
| 338 |
(eq tem '&lambda) |
|---|
| 339 |
(and (eq tem '&body) (null (cdr method))) |
|---|
| 340 |
(and (eq tem '&rest) |
|---|
| 341 |
(consp (cdr method)) |
|---|
| 342 |
(null (cddr method))) |
|---|
| 343 |
(integerp tem) |
|---|
| 344 |
(and (consp tem) |
|---|
| 345 |
(eq (car tem) '&whole) |
|---|
| 346 |
(or (symbolp (cadr tem)) |
|---|
| 347 |
(integerp (cadr tem)))) |
|---|
| 348 |
(and (symbolp tem) |
|---|
| 349 |
(null (cdr method))) |
|---|
| 350 |
(lisp-indent-report-bad-format method)) |
|---|
| 351 |
|
|---|
| 352 |
(cond ((and tail (not (consp tem))) |
|---|
| 353 |
|
|---|
| 354 |
(throw 'exit normal-indent)) |
|---|
| 355 |
((eq tem '&body) |
|---|
| 356 |
|
|---|
| 357 |
(throw 'exit |
|---|
| 358 |
(if (and (= n 0) |
|---|
| 359 |
(null p)) |
|---|
| 360 |
(+ sexp-column |
|---|
| 361 |
lisp-body-indent) |
|---|
| 362 |
normal-indent))) |
|---|
| 363 |
((eq tem '&rest) |
|---|
| 364 |
|
|---|
| 365 |
(setq tail (> n 0) |
|---|
| 366 |
n 0 |
|---|
| 367 |
method (cdr method))) |
|---|
| 368 |
((> n 0) |
|---|
| 369 |
|
|---|
| 370 |
(setq n (1- n) |
|---|
| 371 |
method (cdr method)) |
|---|
| 372 |
(if (< n 0) |
|---|
| 373 |
|
|---|
| 374 |
(throw 'exit normal-indent))) |
|---|
| 375 |
((eq tem 'nil) |
|---|
| 376 |
(throw 'exit (if (consp normal-indent) |
|---|
| 377 |
normal-indent |
|---|
| 378 |
(list normal-indent containing-form-start)))) |
|---|
| 379 |
((eq tem '&lambda) |
|---|
| 380 |
(throw 'exit |
|---|
| 381 |
(cond ((null p) |
|---|
| 382 |
(list (+ sexp-column 4) containing-form-start)) |
|---|
| 383 |
((null (cdr p)) |
|---|
| 384 |
(+ sexp-column 1)) |
|---|
| 385 |
(t normal-indent)))) |
|---|
| 386 |
((integerp tem) |
|---|
| 387 |
(throw 'exit |
|---|
| 388 |
(if (null p) |
|---|
| 389 |
(list (+ sexp-column tem) containing-form-start) |
|---|
| 390 |
normal-indent))) |
|---|
| 391 |
((symbolp tem) |
|---|
| 392 |
(throw 'exit |
|---|
| 393 |
(funcall tem path state indent-point |
|---|
| 394 |
sexp-column normal-indent))) |
|---|
| 395 |
(t |
|---|
| 396 |
|
|---|
| 397 |
(if (not (null p)) |
|---|
| 398 |
|
|---|
| 399 |
(setq method (cddr tem) |
|---|
| 400 |
n nil) |
|---|
| 401 |
(setq tem (cadr tem)) |
|---|
| 402 |
(throw 'exit |
|---|
| 403 |
(cond (tail |
|---|
| 404 |
normal-indent) |
|---|
| 405 |
((eq tem 'nil) |
|---|
| 406 |
(list normal-indent |
|---|
| 407 |
containing-form-start)) |
|---|
| 408 |
((integerp tem) |
|---|
| 409 |
(list (+ sexp-column tem) |
|---|
| 410 |
containing-form-start)) |
|---|
| 411 |
(t |
|---|
| 412 |
(funcall tem path state indent-point |
|---|
| 413 |
sexp-column normal-indent)))))))))))) |
|---|
| 414 |
|
|---|
| 415 |
(defun lisp-indent-tagbody (path state indent-point sexp-column normal-indent) |
|---|
| 416 |
(if (not (null (cdr path))) |
|---|
| 417 |
normal-indent |
|---|
| 418 |
(save-excursion |
|---|
| 419 |
(goto-char indent-point) |
|---|
| 420 |
(beginning-of-line) |
|---|
| 421 |
(skip-chars-forward " \t") |
|---|
| 422 |
(list (cond ((looking-at "\\sw\\|\\s_") |
|---|
| 423 |
|
|---|
| 424 |
(+ sexp-column lisp-tag-indentation)) |
|---|
| 425 |
((integerp lisp-tag-body-indentation) |
|---|
| 426 |
(+ sexp-column lisp-tag-body-indentation)) |
|---|
| 427 |
((eq lisp-tag-body-indentation 't) |
|---|
| 428 |
(condition-case () |
|---|
| 429 |
(progn (backward-sexp 1) (current-column)) |
|---|
| 430 |
(error (1+ sexp-column)))) |
|---|
| 431 |
(t (+ sexp-column lisp-body-indent))) |
|---|
| 432 |
|
|---|
| 433 |
|
|---|
| 434 |
|
|---|
| 435 |
|
|---|
| 436 |
|
|---|
| 437 |
|
|---|
| 438 |
(elt state 1) |
|---|
| 439 |
)))) |
|---|
| 440 |
|
|---|
| 441 |
(defun lisp-indent-do (path state indent-point sexp-column normal-indent) |
|---|
| 442 |
(if (>= (car path) 3) |
|---|
| 443 |
(let ((lisp-tag-body-indentation lisp-body-indent)) |
|---|
| 444 |
(funcall (function lisp-indent-tagbody) |
|---|
| 445 |
path state indent-point sexp-column normal-indent)) |
|---|
| 446 |
(funcall (function lisp-indent-259) |
|---|
| 447 |
'((&whole nil &rest |
|---|
| 448 |
|
|---|
| 449 |
|
|---|
| 450 |
) |
|---|
| 451 |
(&whole nil &rest 1)) |
|---|
| 452 |
path state indent-point sexp-column normal-indent))) |
|---|
| 453 |
|
|---|
| 454 |
|
|---|
| 455 |
(defun lisp-indent-defmethod (path state indent-point sexp-column |
|---|
| 456 |
normal-indent) |
|---|
| 457 |
"Indentation function defmethod." |
|---|
| 458 |
(lisp-indent-259 (if (and (>= (car path) 3) |
|---|
| 459 |
(null (cdr path)) |
|---|
| 460 |
(save-excursion (goto-char (elt state 1)) |
|---|
| 461 |
(forward-char 1) |
|---|
| 462 |
(forward-sexp 3) |
|---|
| 463 |
(backward-sexp) |
|---|
| 464 |
(looking-at ":\\|\\sw+"))) |
|---|
| 465 |
'(4 4 (&whole 4 &rest 4) &body) |
|---|
| 466 |
(get 'defun 'common-lisp-indent-function)) |
|---|
| 467 |
path state indent-point sexp-column normal-indent)) |
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 |
(defun lisp-indent-function-lambda-hack (path state indent-point |
|---|
| 471 |
sexp-column normal-indent) |
|---|
| 472 |
|
|---|
| 473 |
(if (or (cdr path) |
|---|
| 474 |
(> (car path) 3)) |
|---|
| 475 |
|
|---|
| 476 |
normal-indent |
|---|
| 477 |
|
|---|
| 478 |
|
|---|
| 479 |
(condition-case () |
|---|
| 480 |
(save-excursion |
|---|
| 481 |
(backward-up-list 2) |
|---|
| 482 |
(forward-char 1) |
|---|
| 483 |
(if (looking-at "\\(lisp:+\\)?function\\(\\Sw\\|\\S_\\)") |
|---|
| 484 |
(+ lisp-body-indent -1 (current-column)) |
|---|
| 485 |
(+ sexp-column lisp-body-indent))) |
|---|
| 486 |
(error (+ sexp-column lisp-body-indent))))) |
|---|
| 487 |
|
|---|
| 488 |
|
|---|
| 489 |
|
|---|
| 490 |
(let ((l '((block 1) |
|---|
| 491 |
(case (4 &rest (&whole 2 &rest 1))) |
|---|
| 492 |
(ccase . case) (ecase . case) |
|---|
| 493 |
(typecase . case) (etypecase . case) (ctypecase . case) |
|---|
| 494 |
(catch 1) |
|---|
| 495 |
(cond (&rest (&whole 2 &rest 1))) |
|---|
| 496 |
(defvar (4 2 2)) |
|---|
| 497 |
(defclass (6 4 (&whole 2 &rest 1) (&whole 2 &rest 1))) |
|---|
| 498 |
(defconstant . defvar) |
|---|
| 499 |
(defcustom (4 2 2 2)) |
|---|
| 500 |
(defparameter . defvar) |
|---|
| 501 |
(defconst . defcustom) |
|---|
| 502 |
(define-condition . defclass) |
|---|
| 503 |
(define-modify-macro (4 &lambda &body)) |
|---|
| 504 |
(defsetf (4 &lambda 4 &body)) |
|---|
| 505 |
(defun (4 &lambda &body)) |
|---|
| 506 |
(define-setf-method . defun) |
|---|
| 507 |
(define-setf-expander . defun) |
|---|
| 508 |
(defmacro . defun) (defsubst . defun) (deftype . defun) |
|---|
| 509 |
(defmethod lisp-indent-defmethod) |
|---|
| 510 |
(defpackage (4 2)) |
|---|
| 511 |
(defstruct ((&whole 4 &rest (&whole 2 &rest 1)) |
|---|
| 512 |
&rest (&whole 2 &rest 1))) |
|---|
| 513 |
(destructuring-bind |
|---|
| 514 |
((&whole 6 &rest 1) 4 &body)) |
|---|
| 515 |
(do lisp-indent-do) |
|---|
| 516 |
(do* . do) |
|---|
| 517 |
(dolist ((&whole 4 2 1) &body)) |
|---|
| 518 |
(dotimes . dolist) |
|---|
| 519 |
(eval-when 1) |
|---|
| 520 |
(flet ((&whole 4 &rest (&whole 1 &lambda &body)) &body)) |
|---|
| 521 |
(labels . flet) |
|---|
| 522 |
(macrolet . flet) |
|---|
| 523 |
(generic-flet . flet) (generic-labels . flet) |
|---|
| 524 |
(handler-case (4 &rest (&whole 2 &lambda &body))) |
|---|
| 525 |
(restart-case . handler-case) |
|---|
| 526 |
|
|---|
| 527 |
(if (nil nil &body)) |
|---|
| 528 |
|
|---|
| 529 |
(if (&rest nil)) |
|---|
| 530 |
(lambda (&lambda &rest lisp-indent-function-lambda-hack)) |
|---|
| 531 |
(let ((&whole 4 &rest (&whole 1 1 2)) &body)) |
|---|
| 532 |
(let* . let) |
|---|
| 533 |
(compiler-let . let) |
|---|
| 534 |
(handler-bind . let) (restart-bind . let) |
|---|
| 535 |
(locally 1) |
|---|
| 536 |
|
|---|
| 537 |
(:method (&lambda &body)) |
|---|
| 538 |
(multiple-value-bind ((&whole 6 &rest 1) 4 &body)) |
|---|
| 539 |
(multiple-value-call (4 &body)) |
|---|
| 540 |
(multiple-value-prog1 1) |
|---|
| 541 |
(multiple-value-setq (4 2)) |
|---|
| 542 |
(multiple-value-setf . multiple-value-setq) |
|---|
| 543 |
(pprint-logical-block (4 2)) |
|---|
| 544 |
(print-unreadable-object ((&whole 4 1 &rest 1) &body)) |
|---|
| 545 |
|
|---|
| 546 |
(prog (&lambda &rest lisp-indent-tagbody)) |
|---|
| 547 |
(prog* . prog) |
|---|
| 548 |
(prog1 1) |
|---|
| 549 |
(prog2 2) |
|---|
| 550 |
(progn 0) |
|---|
| 551 |
(progv (4 4 &body)) |
|---|
| 552 |
(return 0) |
|---|
| 553 |
(return-from (nil &body)) |
|---|
| 554 |
(symbol-macrolet . let) |
|---|
| 555 |
(tagbody lisp-indent-tagbody) |
|---|
| 556 |
(throw 1) |
|---|
| 557 |
(unless 1) |
|---|
| 558 |
(unwind-protect (5 &body)) |
|---|
| 559 |
(when 1) |
|---|
| 560 |
(with-accessors . multiple-value-bind) |
|---|
| 561 |
(with-condition-restarts . multiple-value-bind) |
|---|
| 562 |
(with-output-to-string (4 2)) |
|---|
| 563 |
(with-slots . multiple-value-bind) |
|---|
| 564 |
(with-standard-io-syntax (2))))) |
|---|
| 565 |
(dolist (el l) |
|---|
| 566 |
(put (car el) 'common-lisp-indent-function |
|---|
| 567 |
(if (symbolp (cdr el)) |
|---|
| 568 |
(get (cdr el) 'common-lisp-indent-function) |
|---|
| 569 |
(car (cdr el)))))) |
|---|
| 570 |
|
|---|
| 571 |
|
|---|
| 572 |
|
|---|
| 573 |
|
|---|
| 574 |
|
|---|
| 575 |
|
|---|
| 576 |
|
|---|
| 577 |
|
|---|
| 578 |
|
|---|
| 579 |
|
|---|
| 580 |
|
|---|
| 581 |
|
|---|
| 582 |
|
|---|
| 583 |
|
|---|
| 584 |
|
|---|
| 585 |
|
|---|
| 586 |
|
|---|
| 587 |
|
|---|
| 588 |
|
|---|
| 589 |
|
|---|
| 590 |
|
|---|
| 591 |
|
|---|
| 592 |
|
|---|
| 593 |
|
|---|
| 594 |
|
|---|
| 595 |
|
|---|
| 596 |
|
|---|
| 597 |
|
|---|
| 598 |
|
|---|
| 599 |
|
|---|
| 600 |
|
|---|
| 601 |
|
|---|
| 602 |
|
|---|
| 603 |
|
|---|
| 604 |
|
|---|
| 605 |
|
|---|
| 606 |
|
|---|
| 607 |
|
|---|
| 608 |
|
|---|
| 609 |
|
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
|
|---|
| 613 |
|
|---|
| 614 |
|
|---|
| 615 |
|
|---|
| 616 |
|
|---|
| 617 |
|
|---|