From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: user-error: :END: line missing at position 3413 Date: Sat, 18 Jan 2014 07:32:16 +0000 Message-ID: <20140118073216.61817a21@london> References: <20140117233315.04106f91@london> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/yRkXirt+0es/Y1MPjhlUuQv"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4QOS-0006BS-HI for Emacs-orgmode@gnu.org; Sat, 18 Jan 2014 02:32:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4QOO-0004Gl-CL for Emacs-orgmode@gnu.org; Sat, 18 Jan 2014 02:32:36 -0500 Received: from out1.ip01ir2.opaltelecom.net ([62.24.128.237]:59608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4QON-0004GN-UQ for Emacs-orgmode@gnu.org; Sat, 18 Jan 2014 02:32:32 -0500 In-Reply-To: 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: M Cc: Emacs-orgmode@gnu.org --Sig_/yRkXirt+0es/Y1MPjhlUuQv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 18 Jan 2014 07:03:21 +0100 M wrote: > > Von: Sharon Kimble > > Datum: Fri, 17 Jan 2014 23:33:15 +0000 > > An: > > Betreff: [O] user-error: :END: line missing at position 3413 > > > > I've updated my emacs to 'Emacs 24.3.50.1' 2014-01-01 on prometheus, > > modified by Debian, and updated org from ELPA. > >=20 > > But now I cant get it to load because it always shows > > 'user-error: :END: line missing at position 3413'. I asked about it > > on #emacs on IRC, and was told this is something to do with > > org-mode. So, can you help me track it down please? >=20 > Hi Sharon, >=20 > I had the same problem several times. Somehow, I seemed to have > deleted the :END: line of a Log Drawer in org-mode. >=20 > It recently helped me to start Emacs with the debug-init option like > this: emacs --debug-init >=20 > Then in the Messages log, I found a trace to the corresponding > org-file and then after opening the file in a buffer you can jump to > the line where the problem occurs with > M-x goto-char > 3413 (in your case) >=20 > There were 2 other solutions proposed which I have not tested yet (see > attached messages below). Thanks for this Martin, it set me on the right track to solving it. It puzzled me why one particular org file would load but nowt else, so I had a close look at it. There were no missing :END: but the goto-char was directing me to a specific place in the file, this file was my 'organizer.org' storing all details of hospital appointments, there was absolutely no way that it could be corrupted. And then I remembered that I had restored the file from an autosave backup, at which point I copied everything over to a organizer.txt, saved and restarted emacs. And everything just loaded up so nicely, problem solved! So I then saved the organiser.txt as organiser.org, and it still all works nicely. Thanks Sharon. >=20 > Kind regards >=20 > Martin >=20 > ------ Weitergeleitete Nachricht > > Von: Bastien > > Datum: Tue, 14 Jan 2014 21:52:31 +0100 > > An: Martin Beck > > Cc: emacs orgmode-mailinglist > > Betreff: Re: File mode specification error: (error ":END: line > > missing at position 63362") > >=20 > > Hi Martin, > >=20 > > maybe you can use this helper function: > >=20 > > (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)))) > >=20 > > A bit rought at the edges, but perhaps useful. > >=20 > > --=20 > > Bastien >=20 > ------ Ende der weitergeleiteten Nachricht >=20 > ------ Weitergeleitete Nachricht > > Von: Brian Wood > > Organisation: UC Berkeley > > Datum: Mon, 04 Mar 2013 13:12:56 -0800 > > An: > > Betreff: Re: [O] [OT]: Search for missing :END: > >=20 > > I just found a few of these errors in *Messages* and since I have > > > 20 .org files, I used this approach > >=20 > > cd ~/orgmode > >=20 > > # this gives me the byte offset & the filename for each matching > > line grep -br 'CLOCK: ' * > ~/tmp/org-missing-end.txt > >=20 > > #this searches within a few bytes of the byte offset reported by > > emacs grep -E ":3007.:" ~/tmp/org-missing-end.txt > >=20 > > Searching within a few bytes was not necessary. In my case I found a > > ":CLOCK:" string at the byte-offset in the error message. > >=20 > > --=20 > > Brian Wood > > Applications Programmer > > UC Berkeley IST > >=20 > >=20 >=20 > ------ Ende der weitergeleiteten Nachricht >=20 >=20 >=20 --=20 =EF=BB=BFA taste of linux =3D http://www.sharons.org.uk efever =3D http://www.efever.blogspot.com/ efever =3D http://sharon04.livejournal.com/ my git repo =3D https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.4.2 Registered Linux user 561944 --Sig_/yRkXirt+0es/Y1MPjhlUuQv Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJS2i4NAAoJEDaBgBkK+INbj8cP/0BnJb7rjYWhw41uyK3eYQpB s/OwhLcH7S39IjKZIdmAAIXNi/o60ZqIRqnqHQ4EcbefPC5bA3Wlr0olKQHipi1l aEoFKVjjvVALKoC6amsS6o8zs+OP/1lXOzFEJobGS3/EXOwWaTU99j3nEj4M+tjV 8dpAEsGQHZf3kxHvWxffGCK9PgiqxsPO+UT0DHTl5zJMmZqoengcl+D4TSuy4lpr r/tUumh78Qif4M6GAQ3q05DSvI6y5YzzSD38tBflunpxYPUWkRCr6oLg2W+Lnizi 9qZIriSuvkzn7vBGfI3lEjgJHkeXmpVuJFo+SEIb8TCrfngcZdp8VaP1ni69Lb0L +cmL2QLwU8I4yB4Uo0PoVOCvN4EgQhAcI7L138r1ymj8hwZ9jC9k0aerKAhOaghP tVFFzWcC79Ms96QXSm+vPMYvl/J53W6N/hNxzl+hzacV0ogD09emCYIWn0Aoozqk jl0kDE1OYzCfw9FtpQuaoGmowJQ7jEzGNUhpF6pZSsV+IdHx4MOELGnCqlM1LRJO oWJmttFGea+4IgXvK/hb4GXvhTytQKZHaaVyt0zRRz+/elDCumXigLi1uV350jXn yEI1JzQbmOf96ByM5kYRGZcW0OkEGPXqXrAD89bFywrRerX6tE2+n8k+w9LCApu8 dde3e3AjU84Z5dsGzFt5 =jD8l -----END PGP SIGNATURE----- --Sig_/yRkXirt+0es/Y1MPjhlUuQv--