aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-27 17:02:18 +0000
committerRichard M. Stallman1997-05-27 17:02:18 +0000
commit5b1a29ab54dd4dea3033c15715062a893d228452 (patch)
treece50b29e479fdf34a265281fb4f4e00401a3bd03 /lisp
parentb10e147ce505192ebfbb339ccee8537e32c802c8 (diff)
downloademacs-5b1a29ab54dd4dea3033c15715062a893d228452.tar.gz
emacs-5b1a29ab54dd4dea3033c15715062a893d228452.zip
(indent-icon-exp): Bind last-depth.
Consistently use inner-loop-done, not innerloop-done.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/icon.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el
index fa13aa2595d..dd81cb42bf5 100644
--- a/lisp/progmodes/icon.el
+++ b/lisp/progmodes/icon.el
@@ -511,7 +511,7 @@ Returns nil if line starts inside a string, t if in a comment."
511 (contain-stack (list (point))) 511 (contain-stack (list (point)))
512 (case-fold-search nil) 512 (case-fold-search nil)
513 restart outer-loop-done inner-loop-done state ostate 513 restart outer-loop-done inner-loop-done state ostate
514 this-indent last-sexp 514 this-indent last-sexp last-depth
515 at-else at-brace at-do 515 at-else at-brace at-do
516 (opoint (point)) 516 (opoint (point))
517 (next-depth 0)) 517 (next-depth 0))
@@ -525,8 +525,8 @@ Returns nil if line starts inside a string, t if in a comment."
525 ;; plus enough other lines to get to one that 525 ;; plus enough other lines to get to one that
526 ;; does not end inside a comment or string. 526 ;; does not end inside a comment or string.
527 ;; Meanwhile, do appropriate indentation on comment lines. 527 ;; Meanwhile, do appropriate indentation on comment lines.
528 (setq innerloop-done nil) 528 (setq inner-loop-done nil)
529 (while (and (not innerloop-done) 529 (while (and (not inner-loop-done)
530 (not (and (eobp) (setq outer-loop-done t)))) 530 (not (and (eobp) (setq outer-loop-done t))))
531 (setq ostate state) 531 (setq ostate state)
532 (setq state (parse-partial-sexp (point) (progn (end-of-line) (point)) 532 (setq state (parse-partial-sexp (point) (progn (end-of-line) (point))
@@ -539,7 +539,7 @@ Returns nil if line starts inside a string, t if in a comment."
539 (icon-indent-line)) 539 (icon-indent-line))
540 (if (or (nth 3 state)) 540 (if (or (nth 3 state))
541 (forward-line 1) 541 (forward-line 1)
542 (setq innerloop-done t))) 542 (setq inner-loop-done t)))
543 (if (<= next-depth 0) 543 (if (<= next-depth 0)
544 (setq outer-loop-done t)) 544 (setq outer-loop-done t))
545 (if outer-loop-done 545 (if outer-loop-done