From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Beck" Subject: File mode specification error: (error ":END: line missing at position 63362") Date: Mon, 13 Jan 2014 13:25:55 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2gai-0005MF-Uq for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 07:26:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2gab-0007ey-GL for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 07:26:04 -0500 Received: from mout.web.de ([212.227.15.14]:55467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2gab-0007eW-7F for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 07:25:57 -0500 Received: from 3capp-webde-bs08.server.lan ([172.19.170.8]) by mriweb.server.lan (mriweb003) with ESMTP (Nemesis) id 0LcBMw-1Vd0tC1orF-00jbyL for ; Mon, 13 Jan 2014 13:25:55 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs orgmode-mailinglist
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?
 
Kind regards
 
Martin
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: File mode specification error: (error ":END: line missing at position 63362") Date: Mon, 13 Jan 2014 08:55:21 -0500 Message-ID: <87a9f03s1i.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2hzZ-0003nY-7G for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 08:55:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2hzR-0000EU-Ph for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 08:55:49 -0500 Received: from plane.gmane.org ([80.91.229.3]:35888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2hzR-0000EK-It for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 08:55:41 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2hzO-0000fd-UJ for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 14:55:38 +0100 Received: from pool-98-110-175-184.bstnma.fios.verizon.net ([98.110.175.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jan 2014 14:55:38 +0100 Received: from ndokos by pool-98-110-175-184.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jan 2014 14:55:38 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Martin Beck" 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: File mode specification error: (error ":END: line missing at position 63362") Date: Tue, 14 Jan 2014 21:52:31 +0100 Message-ID: <87iotm1e28.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Ayb-0007vY-4m for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:52:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3AyS-0004uw-Ja for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:52:45 -0500 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:34129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3AyS-0004um-DY for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:52:36 -0500 Received: by mail-wi0-f177.google.com with SMTP id hm2so1317925wib.4 for ; Tue, 14 Jan 2014 12:52:35 -0800 (PST) In-Reply-To: (Martin Beck's message of "Mon, 13 Jan 2014 13:25:55 +0100 (CET)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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