From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Re: How to track down "No heading for this item in buffer or region."? Date: Thu, 24 Jan 2013 17:23:11 +0100 Message-ID: <20130124162311.GE24543@boo.workgroup> References: <20130124123204.GB24543@boo.workgroup> <87y5fioimf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyPb1-0003m5-WE for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 11:24:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyPay-0003Ff-9S for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 11:24:11 -0500 Received: from mout.gmx.net ([212.227.17.20]:61809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyPay-0003FV-04 for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 11:24:08 -0500 Received: from mailout-de.gmx.net ([10.1.76.28]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MY1JW-1UT7l03Rbc-00Uo6z for ; Thu, 24 Jan 2013 17:24:06 +0100 Content-Disposition: inline In-Reply-To: <87y5fioimf.fsf@bzg.ath.cx> 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 Hi Bastien, * Bastien [24. Jan. 2013]: > Gregor Zattler writes: >> my agenda shows a line: >> >> "No heading for this item in buffer or region." > > It means the agenda contains tasks like > > * TODO > > with no heading. > >> how should I track down the problematic part of my org files? > > You can run this in your Org buffer: > > M-: (while (and (re-search-forward org-complex-heading-regexp nil t) (match-string 4))) RET > > It will stop at the problematic headlines. That really helped to eliminate all empty headlines. I later checked via egrep -- "^[*]+[[:space:]]*$" on my agenda files that there are no further empty headlines. But alas, the message "No heading for this item in buffer or region." still appears two times in my agenda -- for today. When I move the cursor over this lines a message appears in the echo area: byte-code: Before first headline at position 64 in buffer org.org [14 times] The second line of org.org begins at character 64 in the buffer. It's a timestamp: #Time-stamp: <2013-01-24 16:30:39 grfz> Till recently this was no problem since it is a comment line. Obviously org-mode somehow interprets this timestamp, since the messages disappeared after I changed the time stamp delimiter from `<' and `>' respectively to `"'. I consider this to be a bug since these time stamps are a standard Emacs feature and this line is a comment org-mode-wise. Thanks for your help to clean up my org files and tracking down the offending lines in my org agenda files. Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-