Hi!

I had a missing :END: line in a long file due to some editing screwups
and the (error ":END: line missing")))))) wasn't too helpful.

I propose the following patch:

diff --git a/lisp/org.el b/lisp/org.el
index ab7f243..aaefc72 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5005,7 +5005,7 @@
         "^[ \t]*:END:"
         (save-excursion (outline-next-heading) (point)) t)
        (outline-flag-region b (point-at-eol) flag)
-     (error ":END: line missing"))))))
+      (error ":END: line missing at position %s" b))))))
 
 (defun org-subtree-end-visible-p ()
   "Is the end of the current subtree visible?"

This will at least allow the user to use M-x goto-char to find the
culprit (in my case a duplicated :PROPERTIES:).

Kind regards
     Friedel
-- 
        Friedrich Delgado Friedrichs <frie...@nomaden.org>
                             TauPan on Ircnet and Freenode ;)


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to