From a386bdf2b80aca53e648fcf2497353d6713a5c11 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 9 Mar 2009 22:20:45 +0000 Subject: 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(+) (limited to 'paredit.el') 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)))) -- cgit v1.2.1