emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Martin Beck <elwood151@web.de>
Cc: emacs orgmode-mailinglist <emacs-orgmode@gnu.org>
Subject: Re: File mode specification error: (error ":END: line missing at position 63362")
Date: Tue, 14 Jan 2014 21:52:31 +0100	[thread overview]
Message-ID: <87iotm1e28.fsf@bzg.ath.cx> (raw)
In-Reply-To: <trinity-214d22a9-80d0-4487-9e0d-1d2f84ba382c-1389615955327@3capp-webde-bs08> (Martin Beck's message of "Mon, 13 Jan 2014 13:25:55 +0100 (CET)")

Hi Martin,

maybe you can use this helper function:

(defun bzg-find-corrupted-property-drawers ()
  "Find corrupted property drawers."
  (interactive)
  (let (msgs)
    (save-excursion
      (goto-char (point-min))
      (while (search-forward ":PROPERTIES:" nil t)
	(let ((search-end (save-excursion (org-end-of-subtree t))))
	  (if (not (search-forward ":END:" search-end t))
	      (push (format "Missing :END: at %d in %s\n"
			    (point) (buffer-name))
		    msgs)))))
    (if (not msgs)
	(message "No corrupted property drawers")
      (switch-to-buffer-other-window " *Org missing :END:")
      (mapcar 'insert msgs))))

A bit rought at the edges, but perhaps useful.

-- 
 Bastien

      parent reply	other threads:[~2014-01-14 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13 12:25 File mode specification error: (error ":END: line missing at position 63362") Martin Beck
2014-01-13 13:55 ` Nick Dokos
2014-01-14 20:52 ` Bastien [this message]

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=87iotm1e28.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=elwood151@web.de \
    --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).