summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell+paredit@mumble.net>2022-07-09 08:40:59 +0000
committerTaylor R Campbell <campbell+paredit@mumble.net>2022-07-09 08:49:41 +0000
commit4a1450bcc397ab612cc839d0fb69fce3e6aef52a (patch)
tree2a573d8050950707bb3ad40f0b459231e0ac5606
parent568d4d48efbc63898ae4658f77d1151cc4f8a530 (diff)
Respect fill-paragraph-function. Fall back to lisp-fill-paragraph.
-rw-r--r--paredit.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/paredit.el b/paredit.el
index fd9f038..8b78441 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1005,7 +1005,9 @@ If the point is in a string or a comment, fill the paragraph instead,
(interactive "P")
(if (or (paredit-in-string-p)
(paredit-in-comment-p))
- (lisp-fill-paragraph argument)
+ (if (memq fill-paragraph-function '(t nil))
+ (lisp-fill-paragraph argument)
+ (funcall fill-paragraph-function argument))
(paredit-preserving-column
(save-excursion
(end-of-defun)