branch: elpa/paredit
commit a386bdf2b80aca53e648fcf2497353d6713a5c11
Author: Taylor R Campbell <[email protected]>
Commit: Taylor R Campbell <[email protected]>

    Call `end-of-defun' in `paredit-reindent-defun'.
    
    Doing this before `beginning-of-defun' keeps us from moving to the
    previous definition if we are already at the beginning of one.
    
    darcs-hash:20090309222045-00fcc-0f1ff306dd34e0ee4fa5ebafbfc85b12a19314a7
---
 paredit.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/paredit.el b/paredit.el
index abc43e0..4451aea 100644
--- a/paredit.el
+++ b/paredit.el
@@ -989,6 +989,7 @@ If the point is in a string or a comment, fill the 
paragraph instead,
           (paredit-in-comment-p))
       (fill-paragraph argument)
     (save-excursion
+      (end-of-defun)
       (beginning-of-defun)
       (indent-sexp))))
 

Reply via email to