Rework `orgstruct++-mode' so that you can turn if off safely.
commita8c3125a14c754a7f6d9b110648e1bb785f2e164
authorBastien Guerry <bzg@altern.org>
Tue, 1 May 2012 13:55:41 +0000 (1 15:55 +0200)
committerBastien Guerry <bzg@altern.org>
Tue, 1 May 2012 13:55:41 +0000 (1 15:55 +0200)
tree26126388cc31f3eb3d3de2d8adfc22842f0de76a
parentcadcbe3aa499c0cf35a7fe709df8d91a61849bde
Rework `orgstruct++-mode' so that you can turn if off safely.

* org.el (org-auto-fill-fallback-function)
(org-indent-line-fallback-function)
(org-fill-paragraph-fallback-function)
(org-auto-fill-fallback-function)
(org-indent-line-fallback-function)
(org-fill-paragraph-fallback-function): Remove.
(org-fb-vars): New buffer-local variable.
(orgstruct++-mode): Use the fallback variable `org-fb-vars' to
store, use and restore variables if needed.
(org-fill-paragraph): Ignore `orgstruct++-mode' filling
variables when needed.
(org-auto-fill-function, org-indent-line-function): Ditto.

* org-macs.el (orgstruct++-ignore-org-filling): New macro.
lisp/org-macs.el
lisp/org.el