[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] missing :END: error message is not very helpful (patch)

From: Friedrich Delgado Friedrichs
Subject: [Orgmode] missing :END: error message is not very helpful (patch)
Date: Wed, 19 Aug 2009 16:40:31 +0200
User-agent: Mutt/1.5.18 (2008-05-17)


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
        Friedrich Delgado Friedrichs <address@hidden>
                             TauPan on Ircnet and Freenode ;)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]