Improve compatibility between org-indent-mode and visual-line-mode
commit4771caa09c318d7927ec8b243a42275920d418c4
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 20 Feb 2011 12:44:00 +0000 (20 13:44 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 18 Aug 2011 08:41:30 +0000 (18 10:41 +0200)
treeb580db9144daa3944e60b5b47e0cfac8b9c95e7d
parent3100838dcc24097c5bc3eb3b2f96c378555e053d
Improve compatibility between org-indent-mode and visual-line-mode

* lisp/org-indent.el (org-indent-mode): completely refresh buffer
  before starting org-indent-mode. Also set idle timer to refresh only
  visible portion of buffer, and refresh the subtree instead of
  section when promoting or demoting it.
  (org-indent-add-properties): rewrite function to proceed line by
  line, as required by `wrap-prefix' specificity.
  (org-indent-refresh-section,org-indent-refresh-subtree): refactor.
  (org-indent-refresh-view): new function.
  (org-indent-refresh-to, org-indent-refresh-section): removed
  functions.
* lisp/org.el (org-unfontify-region): do not remove prefix properties
  when unfontifying a region.
lisp/org-indent.el
lisp/org.el