(common-lisp-indent-function-1): Indent "without-" forms just

like "with-" and "do-".  Use regexp-opt.
This commit is contained in:
Sam Steingold 2004-05-17 17:00:00 +00:00
parent d080618c7e
commit 410019e59c
2 changed files with 11 additions and 2 deletions

View file

@ -216,8 +216,12 @@ If nil, indent backquoted lists as data, i.e., like quoted lists."
(cond ((string-match "\\`def"
function)
(setq tentative-defun t))
((string-match "\\`\\(with\\|do\\)-"
function)
((string-match
(eval-when-compile
(concat "\\`\\("
(regexp-opt '("with" "without" "do"))
"\\)-"))
function)
(setq method '(&lambda &body))))))
;; backwards compatibility. Bletch.
((eq method 'defun)