From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: More clocktable breakage Date: Wed, 26 Apr 2017 19:09:47 +0200 Message-ID: <87tw5bumck.fsf@Rainer.invalid> References: <877f39nr05.fsf@Rainer.invalid> <87d1d0p2qx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3QS1-0000wy-F7 for emacs-orgmode@gnu.org; Wed, 26 Apr 2017 13:10:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3QRw-00079L-Fa for emacs-orgmode@gnu.org; Wed, 26 Apr 2017 13:10:01 -0400 Received: from [195.159.176.226] (port=44106 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3QRw-00076s-9e for emacs-orgmode@gnu.org; Wed, 26 Apr 2017 13:09:56 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d3QRn-0007Ff-Ou for emacs-orgmode@gnu.org; Wed, 26 Apr 2017 19:09:47 +0200 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" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > At the moment, I cannot reproduce it. I tried M-up in the following > document: > > #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>" :tend "<2006-08-10 Thu 12:00>" > #+END: clocktable The breakage happens in this clause in org-at-timestamp-p: --8<---------------cut here---------------start------------->8--- (match (let ((boundaries (org-in-regexp tsr))) (save-match-data (cond ((null boundaries) nil) ((org-at-planning-p)) ((org-at-property-p)) ;; CLOCK lines only contain inactive time-stamps. ((and inactive-ok (org-at-clock-log-p))) (t (eq 'timestamp (save-excursion (when (= pos (cdr boundaries)) (forward-char -1)) (org-element-type (org-element-context)))))))))) --8<---------------cut here---------------end--------------->8--- After matching the timestamp in the header argument correctly, the code falls through to the default cond, where (org-element-type (org-element-context)) returns 'dynamic-block, which isn't a 'timestamp. The successful match gets discarded and the timestamp doesn't get recognized. An empty clause for (org-at-block-p) would fix it, but I'm not sure that is the right thing to do. I haven't looked at org-element-context to see whether it might misinterpret something. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada