emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] File mode specification error: (error ":END: line missing at pos


From: Bastien
Subject: Re: [O] File mode specification error: (error ":END: line missing at position 63362")
Date: Tue, 14 Jan 2014 21:52:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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



reply via email to

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