diff options
author | Oleh Krehel <ohwoeowho@gmail.com> | 2016-04-20 17:20:46 +0200 |
---|---|---|
committer | Oleh Krehel <ohwoeowho@gmail.com> | 2016-04-20 17:22:09 +0200 |
commit | 7dd0d7a567719b43ab16fcb5be464a7aea01f35b (patch) | |
tree | 7c4941c631707f873a090603381e157e772a8713 | |
parent | 8614a2476f657a648cecaf0fd7aeafd84ac1ca49 (diff) | |
download | org-mode-7dd0d7a567719b43ab16fcb5be464a7aea01f35b.tar.gz |
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.
-rw-r--r-- | lisp/org-indent.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org-indent.el b/lisp/org-indent.el index bd09dc0..d99e5c7 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -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) |