diff options
| author | Taylor R Campbell <campbell@mumble.net> | 2009-07-03 19:52:55 +0000 | 
|---|---|---|
| committer | Taylor R Campbell <campbell@mumble.net> | 2009-07-03 19:52:55 +0000 | 
| commit | 41a0a344acf992ae9570185d9b39b87161fadd17 (patch) | |
| tree | 2b5da3ccb83c5ba0d80c5688921fe40abb723ea4 | |
| parent | 0d7a39d6bd8152589a22118e596bffd4c8ffc248 (diff) | |
Omit unused variable `orig' in `paredit-move-past-close-and-reindent'.
darcs-hash:20090703195255-00fcc-bb484473cebaf86ecaa49aa910432b5143141421
| -rw-r--r-- | paredit.el | 47 | 
1 files changed, 23 insertions, 24 deletions
| @@ -791,30 +791,29 @@ If such a comment exists, delete the comment (including all leading                (insert close))              (error "Mismatched missing closing delimiter: %c ... %c"                     open close)))) -  (let ((orig (point))) -    (up-list) -    (if (catch 'return                  ; This CATCH returns T if it -          (while t                      ; should delete leading spaces -            (save-excursion             ; and NIL if not. -              (let ((before-paren (1- (point)))) -                (back-to-indentation) -                (cond ((not (eq (point) before-paren)) -                       ;; Can't call PAREDIT-DELETE-LEADING-WHITESPACE -                       ;; here -- we must return from SAVE-EXCURSION -                       ;; first. -                       (throw 'return t)) -                      ((save-excursion (forward-line -1) -                                       (end-of-line) -                                       (paredit-in-comment-p)) -                       ;; Moving the closing delimiter any further -                       ;; would put it into a comment, so we just -                       ;; indent the closing delimiter where it is and -                       ;; abort the loop, telling its continuation that -                       ;; no leading whitespace should be deleted. -                       (lisp-indent-line) -                       (throw 'return nil)) -                      (t (delete-indentation))))))) -        (paredit-delete-leading-whitespace)))) +  (up-list) +  (if (catch 'return                    ; This CATCH returns T if it +        (while t                        ; should delete leading spaces +          (save-excursion               ; and NIL if not. +            (let ((before-paren (1- (point)))) +              (back-to-indentation) +              (cond ((not (eq (point) before-paren)) +                     ;; Can't call PAREDIT-DELETE-LEADING-WHITESPACE +                     ;; here -- we must return from SAVE-EXCURSION +                     ;; first. +                     (throw 'return t)) +                    ((save-excursion (forward-line -1) +                                     (end-of-line) +                                     (paredit-in-comment-p)) +                     ;; Moving the closing delimiter any further +                     ;; would put it into a comment, so we just +                     ;; indent the closing delimiter where it is and +                     ;; abort the loop, telling its continuation that +                     ;; no leading whitespace should be deleted. +                     (lisp-indent-line) +                     (throw 'return nil)) +                    (t (delete-indentation))))))) +      (paredit-delete-leading-whitespace)))  (defun paredit-missing-close ()    (save-excursion | 
