Procházet zdrojové kódy

Add detailed location to "org-mode fontification error"

* lisp/org.el (org-fontify-meta-lines-and-blocks): Update.
Oleh Krehel před 9 roky
rodič
revize
8614a2476f
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      lisp/org.el

+ 3 - 1
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."