emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/paredit 4a1450bcc3 6/7: Respect fill-paragraph-function. F


From: ELPA Syncer
Subject: [nongnu] elpa/paredit 4a1450bcc3 6/7: Respect fill-paragraph-function. Fall back to lisp-fill-paragraph.
Date: Sat, 9 Jul 2022 04:59:07 -0400 (EDT)

branch: elpa/paredit
commit 4a1450bcc397ab612cc839d0fb69fce3e6aef52a
Author: Taylor R Campbell <campbell+paredit@mumble.net>
Commit: Taylor R Campbell <campbell+paredit@mumble.net>

    Respect fill-paragraph-function.  Fall back to lisp-fill-paragraph.
---
 paredit.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/paredit.el b/paredit.el
index fd9f038b24..8b7844114d 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]