summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-10-27 15:50:24 +0000
committerDave Love <fx@gnu.org>2000-10-27 15:50:24 +0000
commit10ee3d79459b56f8b61863592407a15b8f8eeeb4 (patch)
tree0cef3c02736de0161c7c66776b9a960496759312 /lisp
parente1483c383115cc874a07ce2353567125ec36941f (diff)
downloademacs-10ee3d79459b56f8b61863592407a15b8f8eeeb4.tar.gz
(refill-late-fill-paragraph-function): New
variable. (refill-mode): Use it.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/refill.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/textmodes/refill.el b/lisp/textmodes/refill.el
index 78518a9bc96..4e9039c87d4 100644
--- a/lisp/textmodes/refill.el
+++ b/lisp/textmodes/refill.el
@@ -119,6 +119,8 @@ complex processing.")
(t (refill-fill-paragraph nil)))
(setq refill-doit nil)))
+(defvar refill-late-fill-paragraph-function nil)
+
;;;###autoload
(define-minor-mode refill-mode
"Toggle Refill minor mode.
@@ -134,12 +136,14 @@ refilling if they would cause auto-filling."
(progn
(add-hook 'after-change-functions 'refill-after-change-function nil t)
(add-hook 'post-command-hook 'refill-post-command-function nil t)
+ (set (make-local-variable 'refill-late-fill-paragraph-function)
+ fill-paragraph-function)
(set (make-local-variable 'fill-paragraph-function)
'refill-fill-paragraph)
(auto-fill-mode 0))
(remove-hook 'after-change-functions 'refill-after-change-function t)
(remove-hook 'post-command-hook 'refill-post-command-function t)
- (setq fill-paragraph-function nil)))
+ (setq fill-paragraph-function refill-late-fill-paragraph-function)))
(provide 'refill)