emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Friedrich Delgado Friedrichs <friedel@nomaden.org>
To: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: missing :END: error message is not very helpful (patch)
Date: Wed, 19 Aug 2009 16:40:31 +0200	[thread overview]
Message-ID: <20090819144031.GA11292@taupan.ath.cx> (raw)

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 <friedel@nomaden.org>
                             TauPan on Ircnet and Freenode ;)

             reply	other threads:[~2009-08-19 14:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 14:40 Friedrich Delgado Friedrichs [this message]
2009-08-19  9:06 ` missing :END: error message is not very helpful (patch) Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090819144031.GA11292@taupan.ath.cx \
    --to=friedel@nomaden.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).