|
@@ -19843,10 +19843,11 @@ the functionality can be provided as a fall-back.")
|
|
|
;; through to `fill-paragraph' when appropriate.
|
|
|
(org-set-local 'fill-paragraph-function 'org-fill-paragraph)
|
|
|
;; Prevent auto-fill from inserting unwanted new items.
|
|
|
- (org-set-local 'fill-nobreak-predicate
|
|
|
- (if (memq 'org-fill-item-nobreak-p fill-nobreak-predicate)
|
|
|
- fill-nobreak-predicate
|
|
|
- (cons 'org-fill-item-nobreak-p fill-nobreak-predicate)))
|
|
|
+ (if (boundp 'fill-nobreak-predicate)
|
|
|
+ (org-set-local 'fill-nobreak-predicate
|
|
|
+ (if (memq 'org-fill-item-nobreak-p fill-nobreak-predicate)
|
|
|
+ fill-nobreak-predicate
|
|
|
+ (cons 'org-fill-item-nobreak-p fill-nobreak-predicate))))
|
|
|
;; Adaptive filling: To get full control, first make sure that
|
|
|
;; `adaptive-fill-regexp' never matches. Then install our own matcher.
|
|
|
(unless (local-variable-p 'adaptive-fill-regexp (current-buffer))
|