From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to track down "No heading for this item in buffer or region."? Date: Thu, 24 Jan 2013 13:31:42 -0500 Message-ID: <3382.1359052302@alphaville> References: <20130124123204.GB24543@boo.workgroup> <87y5fioimf.fsf@bzg.ath.cx> <20130124162311.GE24543@boo.workgroup> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyRi5-0001gs-Ad for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 13:39:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyRhx-0003ku-RD for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 13:39:37 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:32753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyRhx-0003jg-I3 for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 13:39:29 -0500 Received: from g1t0038.austin.hp.com (g1t0038.austin.hp.com [16.236.32.44]) by g1t0028.austin.hp.com (Postfix) with ESMTP id 589A71C4E6 for ; Thu, 24 Jan 2013 18:39:21 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (alphaville.americas.hpqcorp.net [16.117.226.11]) by g1t0038.austin.hp.com (Postfix) with ESMTP id 32830300E4 for ; Thu, 24 Jan 2013 18:39:21 +0000 (UTC) Received: from alphaville (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id 04601444F7 for ; Thu, 24 Jan 2013 13:31:43 -0500 (EST) In-Reply-To: Message from Gregor Zattler of "Thu, 24 Jan 2013 17:23:11 +0100." <20130124162311.GE24543@boo.workgroup> 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 Gregor Zattler wrote: > 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. > > I am puzzled. The bug is almost certainly related to commit 211b137ef46d04b17b46f256696eb5c1c3a1d2be which changed org-agenda-skip to check text properties rather than # explicitly. I can attest that the bug does not show with a version earlier than that commit. OTOH, it does not show *consistently* with the most recent version. In a minimal test, I have the following file as the only file in the agenda list: --8<---------------cut here---------------start------------->8--- # timestamp: <2013-01-24 Thu> * TODO foo SCHEDULED: <2013-01-24 Thu> --8<---------------cut here---------------end--------------->8--- and when I construct the agenda, I get the no-heading message; but if I visit the file, and M-x describe-text-properties RET on the # in the first line, it correctly says that the face is font-lock-comment-face; constructing the agenda after that does *not* produce the message. Are text properties assigned lazily perhaps? If so, they will need to be somehow forced in this case. Nick PS. BTW, can you reproduce this behavior or am I tilting at windmills?