org-indent: implement asynchronous initialization
commitacd6ed2140e2177b8a3b3ff23ed589c553b6d890
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 21 Jul 2011 14:20:26 +0000 (21 16:20 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 18 Aug 2011 08:41:31 +0000 (18 10:41 +0200)
tree527fdf32369a407b0e8e61093dedab8e14f3442a
parent9479991d4c453863c04d933865ee7ad7a9f47654
org-indent: implement asynchronous initialization

* lisp/org-indent.el (org-indent-initial-marker,
  org-indent-initial-timer, org-indent-initial-lock): new variables.
(org-indent-mode): at initialization, start an idle timer to indent
the whole buffer. When the user is asking for control, interrupt the
process, and resume at the same point when idle again.
(org-indent-initialize-buffer): new function.
(org-indent-add-properties): throw an interrupt when indentation of
buffer is stopped during initialization.
lisp/org-indent.el