org.el (org-indent-line-function): Fix bug.
commit73ec7674583518b2f8aacedda64325dfe5ba490f
authorBastien Guerry <bzg@altern.org>
Sat, 5 May 2012 13:32:19 +0000 (5 15:32 +0200)
committerBastien Guerry <bzg@altern.org>
Sat, 5 May 2012 13:32:19 +0000 (5 15:32 +0200)
treeb15e624bd7df61810117077ea00753b69653cb3e
parent0a1fe260544a367e4473c53367e9453016e90c04
org.el (org-indent-line-function): Fix bug.

* org.el (org-indent-line-function): Fix bug.

Don't fall back systematically on `org-fb-vars' to do
the indentation.  Only fall back at then end, when no
modification has been done by indenting a la Org.  In
that case, use `indent-according-to-mode' instead of
using `indent-line-function' to avoid a possible loop.

Thanks to Eric Fraga, Christopher Schmidt and Nicolas
Goaziou who reported problems with this.
lisp/org.el