Hello, Federico Beffa <be...@ieee.org> writes:
> OK, I understand that the Cons above is a serious issue and nobody wants it. > For this reason I went back to my original idea and modified the > `org-fill-paragraph' function. This provides the two Pros above > without having to introduce the undesired Cons. The behavior is a > follows: > - if \[...\] is inline, behave as before. > - if \[ is the first non space character of a line and the closing \] > is the last non space character of a line (possibly spanning several > lines), then do not fill this region of the paragraph. But then, you introduce a discrepancy between M-q results and Org syntax. This is not optimal either. Also, this will not be consistent anyway with \begin{...} ... \end{...} markup, which is handled differently, unlike to LaTeX. > Attached you find a patch with the proposed modification. I would > greatly appreciate if you could consider it for inclusion in org-mode > and provide feedback. Note that you should use master to provide patches. `org-fill-paragraph' was modified recently. Regards, -- Nicolas Goaziou