emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* File mode specification error: (error ":END: line missing at position 63362")
@ 2014-01-13 12:25 Martin Beck
  2014-01-13 13:55 ` Nick Dokos
  2014-01-14 20:52 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Beck @ 2014-01-13 12:25 UTC (permalink / raw)
  To: emacs orgmode-mailinglist

[-- Attachment #1: Type: text/html, Size: 923 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: File mode specification error: (error ":END: line missing at position 63362")
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2014-01-13 13:55 UTC (permalink / raw)
  To: emacs-orgmode

"Martin Beck" <elwood151@web.de> writes:

> Hi,
>  
> after startup of emacs I get an error message in my *Messages* Buffer, saying
>  
> File mode specification error: (error ":END: line missing at position 63362")
>  
> I had this several times already and it seems that in one of my org-mode buffers, I have messed up somethign and accidently deleted a line.
> The error message is created during startup when the buffers in the agenda files list are loaded.
>  
> However, I have many of them and it is difficult to track it down and find the right one.
> Is there a way to make the log file tell me, in which buffer this error was produced?
>  

Start emacs like this:

   emacs --debug-init

-- 
Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: File mode specification error: (error ":END: line missing at position 63362")
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2014-01-14 20:52 UTC (permalink / raw)
  To: Martin Beck; +Cc: emacs orgmode-mailinglist

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-14 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).