Add detailed location to "org-mode fontification error"

* lisp/org.el (org-fontify-meta-lines-and-blocks): Update.
This commit is contained in:
Oleh Krehel 2016-04-19 16:19:49 +02:00
parent e85f80e2f8
commit 8614a2476f
1 changed files with 3 additions and 1 deletions

View File

@ -5848,7 +5848,9 @@ by a #."
(defun org-fontify-meta-lines-and-blocks (limit)
(condition-case nil
(org-fontify-meta-lines-and-blocks-1 limit)
(error (message "org-mode fontification error"))))
(error (message "org-mode fontification error in %S at %d"
(current-buffer)
(line-number-at-pos)))))
(defun org-fontify-meta-lines-and-blocks-1 (limit)
"Fontify #+ lines and blocks."