From mboxrd@z Thu Jan 1 00:00:00 1970 From: Friedrich Delgado Friedrichs Subject: missing :END: error message is not very helpful (patch) Date: Wed, 19 Aug 2009 16:40:31 +0200 Message-ID: <20090819144031.GA11292@taupan.ath.cx> Reply-To: friedel@nomaden.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdmLE-0007zv-B2 for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:40:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdmL9-0007wp-Lo for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:40:43 -0400 Received: from [199.232.76.173] (port=54038 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdmL9-0007wj-I5 for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:40:39 -0400 Received: from dudelab.org ([212.12.33.202]:14027 helo=mail.dudelab.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MdmL9-00040P-4I for emacs-orgmode@gnu.org; Wed, 19 Aug 2009 10:40:39 -0400 Received: from abrasax.taupan.ath.cx (p4FDE5392.dip.t-dialin.net [79.222.83.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Friedrich Delgado Friedrichs", Issuer "User CA" (verified OK)) by mail.dudelab.org (Postfix) with ESMTP id EEB2F228148 for ; Wed, 19 Aug 2009 16:40:33 +0200 (CEST) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list 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)))))) =20 (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 --=20 Friedrich Delgado Friedrichs TauPan on Ircnet and Freenode ;)