;; leading to excessive refilling and wrong choice of fill-prefix.
;; might be a bug in my paragraphs.el.
(forward-paragraph)
- (skip-syntax-backward "-")
(let ((end (point))
(beg (progn (backward-paragraph) (point)))
(obeg (overlay-start refill-ignorable-overlay))
(when refill-ignorable-overlay
(delete-overlay refill-ignorable-overlay)
(kill-local-variable 'refill-ignorable-overlay))
- (when refill-late-fill-paragraph-function
+ (when (local-variable-p 'refill-late-fill-paragraph-function)
(setq fill-paragraph-function refill-late-fill-paragraph-function)
(kill-local-variable 'refill-late-fill-paragraph-function))
(if refill-mode