summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-02-02 19:28:31 +0000
committerRichard M. Stallman <rms@gnu.org>1995-02-02 19:28:31 +0000
commite86fe0d7893ddc1998668d1dfc8cd8440ed365a5 (patch)
treef2041a6ff64190d7136e7cd920762e24f8b42843 /lisp/textmodes
parent4581e9282b7fc20505c6267157b321e5f2a5cc94 (diff)
downloademacs-e86fe0d7893ddc1998668d1dfc8cd8440ed365a5.tar.gz
(fill-paragraph): Bind fill-paragraph-function to nil before calling it.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/fill.el4
1 files changed, 3 insertions, 1 deletions
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)