summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleh Krehel <ohwoeowho@gmail.com>2016-04-19 16:19:49 +0200
committerOleh Krehel <ohwoeowho@gmail.com>2016-04-20 17:22:09 +0200
commit8614a2476f657a648cecaf0fd7aeafd84ac1ca49 (patch)
tree78859824103c650816ead9ab7d0ccd0934b15a91
parente85f80e2f8b7487017f19c39821b352f0eccd8ad (diff)
downloadorg-mode-8614a2476f657a648cecaf0fd7aeafd84ac1ca49.tar.gz
Add detailed location to "org-mode fontification error"
* lisp/org.el (org-fontify-meta-lines-and-blocks): Update.
-rw-r--r--lisp/org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 29224f2..fb3b452 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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."