diff options
author | Taylor R Campbell <campbell+paredit@mumble.net> | 2022-07-09 08:40:59 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell+paredit@mumble.net> | 2022-07-09 08:49:41 +0000 |
commit | 4a1450bcc397ab612cc839d0fb69fce3e6aef52a (patch) | |
tree | 2a573d8050950707bb3ad40f0b459231e0ac5606 /paredit.el | |
parent | 568d4d48efbc63898ae4658f77d1151cc4f8a530 (diff) |
Respect fill-paragraph-function. Fall back to lisp-fill-paragraph.
Diffstat (limited to 'paredit.el')
-rw-r--r-- | paredit.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |