* Re: missing :END: error message is not very helpful (patch)
2009-08-19 14:40 missing :END: error message is not very helpful (patch) Friedrich Delgado Friedrichs
@ 2009-08-19 9:06 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2009-08-19 9:06 UTC (permalink / raw)
To: Emacs-orgmode mailing list
Friedrich Delgado Friedrichs <friedel@nomaden.org> writes:
> 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:
Applied, thanks.
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
* missing :END: error message is not very helpful (patch)
@ 2009-08-19 14:40 Friedrich Delgado Friedrichs
2009-08-19 9:06 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Friedrich Delgado Friedrichs @ 2009-08-19 14:40 UTC (permalink / raw)
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))))))
(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 ;)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-19 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 14:40 missing :END: error message is not very helpful (patch) Friedrich Delgado Friedrichs
2009-08-19 9:06 ` Bastien
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).