diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2011-04-22 20:44:26 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2011-04-22 20:44:26 +0200 |
commit | e02f48d76bfd57f014ffbe3ba56b62f2d5ccc794 (patch) | |
tree | d27a2d9fd6838d6e619c824deb12a568ceac54f6 /lisp/progmodes/icon.el | |
parent | 7ede3b6577ae99a3e7ac45baa7cace439bf5070c (diff) | |
download | emacs-e02f48d76bfd57f014ffbe3ba56b62f2d5ccc794.tar.gz |
lisp/progmodes/*.el: Lexical-binding cleanup.
Diffstat (limited to 'lisp/progmodes/icon.el')
-rw-r--r-- | lisp/progmodes/icon.el | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 9a8b8064be7..5382ce1386d 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el @@ -484,9 +484,9 @@ Returns nil if line starts inside a string, t if in a comment." (let ((indent-stack (list nil)) (contain-stack (list (point))) (case-fold-search nil) - restart outer-loop-done inner-loop-done state ostate - this-indent last-sexp last-depth - at-else at-brace at-do + outer-loop-done inner-loop-done state ostate + this-indent last-depth + at-else at-brace (opoint (point)) (next-depth 0)) (save-excursion @@ -506,9 +506,6 @@ Returns nil if line starts inside a string, t if in a comment." (setq state (parse-partial-sexp (point) (progn (end-of-line) (point)) nil nil state)) (setq next-depth (car state)) - (if (and (car (cdr (cdr state))) - (>= (car (cdr (cdr state))) 0)) - (setq last-sexp (car (cdr (cdr state))))) (if (or (nth 4 ostate)) (icon-indent-line)) (if (or (nth 3 state)) @@ -518,8 +515,6 @@ Returns nil if line starts inside a string, t if in a comment." (setq outer-loop-done t)) (if outer-loop-done nil - (if (/= last-depth next-depth) - (setq last-sexp nil)) (while (> last-depth next-depth) (setq indent-stack (cdr indent-stack) contain-stack (cdr contain-stack) |