From 8614a2476f657a648cecaf0fd7aeafd84ac1ca49 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Tue, 19 Apr 2016 16:19:49 +0200 Subject: [PATCH] Add detailed location to "org-mode fontification error" * lisp/org.el (org-fontify-meta-lines-and-blocks): Update. --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 29224f250..fb3b452d4 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."