summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2009-03-09 22:20:45 +0000
committerTaylor R Campbell <campbell@mumble.net>2009-03-09 22:20:45 +0000
commita386bdf2b80aca53e648fcf2497353d6713a5c11 (patch)
tree568c7d3436bf90d2168d4c9dd9811cca3d4fe7ae /paredit.el
parent190797e95d53752a6667e25c90f725173bdcfcfd (diff)
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
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el1
1 files changed, 1 insertions, 0 deletions
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))))