Avoid "Marker points into wrong buffer"

* lisp/org-indent.el (org-indent-initialize-buffer): Add a check.  The
bug occurred when trying to capture before any Org buffers were open.
This commit is contained in:
Oleh Krehel 2016-04-20 17:20:46 +02:00
parent 8614a2476f
commit 7dd0d7a567
1 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,8 @@ a time value."
(catch 'interrupt
(and org-indent--initial-marker
(marker-position org-indent--initial-marker)
(equal (marker-buffer org-indent--initial-marker)
buffer)
(org-indent-add-properties org-indent--initial-marker
(point-max)
delay)