From e86fe0d7893ddc1998668d1dfc8cd8440ed365a5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 2 Feb 1995 19:28:31 +0000 Subject: [PATCH] (fill-paragraph): Bind fill-paragraph-function to nil before calling it. --- lisp/textmodes/fill.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 79714d91c1c..dc70406a326 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -326,7 +326,9 @@ If `fill-paragraph-function' is non-nil, we call it (passing our argument to it), and if it returns non-nil, we simply return its value." (interactive "P") (or (and fill-paragraph-function - (funcall fill-paragraph-function arg)) + (let ((function fill-paragraph-function) + fill-paragraph-function) + (funcall function arg))) (let ((before (point))) (save-excursion (forward-paragraph) -- 2.39.5