From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: SCHEDULED in a comment line is not ignored by sparse-tree Date: Tue, 23 Dec 2014 12:24:04 +0100 Message-ID: <87mw6e38yz.fsf@nicolasgoaziou.fr> References: <87oarljl1h.wl-jamshark70@qq.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3NYc-0003wd-JK for emacs-orgmode@gnu.org; Tue, 23 Dec 2014 06:23:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3NYT-0001p6-LL for emacs-orgmode@gnu.org; Tue, 23 Dec 2014 06:23:18 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:45257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3NYT-0001lN-GC for emacs-orgmode@gnu.org; Tue, 23 Dec 2014 06:23:09 -0500 In-Reply-To: <87oarljl1h.wl-jamshark70@qq.com> (James Harkins's message of "Wed, 03 Dec 2014 14:37:46 +0800") 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: James Harkins Cc: orgmode Hello, James Harkins writes: > This appears to be buggy behavior, but I'm asking here first in case it might already have been fixed. > > A couple of months ago, I was trying to create a repeating timestamp for two different days of the week. First I tried a diary-sexp, but that wasn't compatible with habits, so I gave that up. But I didn't want to throw away the string completely, because it took some digging to figure it out. So I put "# " at the beginning of the SCHEDULED line and thought that would be the end of it. (In the source block, "#" has two spaces before it. These come from C-c ' editing. In my original file, the "#" for the comment is flush left.) > > #+BEGIN_SRC org > ,** TODO Update lesson grades 2 :Comp: > SCHEDULED: <2014-12-06 Sat 23:59 .+1w> > :PROPERTIES: > :STYLE: habit > :LOGGING: TODO MAYBE INPROG MTG | DONE(!) POSTPONED CANCELED > :END: > # SCHEDULED: <%%(memq (calendar-day-of-week date) '(3 6))> > #+END_SRC > > Just now, I tried to open a sparse-tree view with a scheduled date range -- C-c / c c D (set range) -- and got the message: > > byte-code: Bad timestamp `%%(memq (calendar-day-of-week date) '(3 6))' > Error was: (Not a standard Org-mode time string: %%(memq > (calendar-day-of-week date) '(3 6))) This should be fixed. Thank you for reporting it. Regards, -- Nicolas Goaziou