|Subject:||Re: [O] Moving from org-mode 6.33/7.9.3 to 8.3.2|
|Date:||Mon, 30 Nov 2015 08:05:03 +0100|
Steve Moreau <address@hidden> writes:
> Indeed, the org-setup-filling was concerned.
> (append fill-nobreak-predicate
> (defvar org-element-paragraph-separate) ; org-element.el
> (defun org-fill-paragraph-separate-nobreak-p ()
> "Non-nil when a new line at point would end current paragraph."
> (looking-at (substring org-element-paragraph-separate 1)))
> 'org-fill-paragraph-separate-nobreak-p' predicate removed and the previous
> function has been deleted
> The following code has been added:
> (let ((paragraph-ending (substring org-element-paragraph-separate 1)))
> (org-set-local 'paragraph-start paragraph-ending)
> (org-set-local 'paragraph-separate paragraph-ending))
> Could someone explain to me why the function has been removed?
It was removed because `org-element-paragraph-separate' is not enough to
find the boundaries of a paragraph, e.g.,
This is a new paragraph
It is usually not a problem except for `fill-region', as you noticed.
However, I do not know how to plug our own functions into `fill-region'.
We could replace `fill-region' with `org-fill-region', tho.
|[Prev in Thread]||Current Thread||[Next in Thread]|