From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: More clocktable breakage
Date: Thu, 27 Apr 2017 19:56:56 +0200 [thread overview]
Message-ID: <87shkt4tuf.fsf@Rainer.invalid> (raw)
In-Reply-To: 87tw5bumck.fsf@Rainer.invalid
Achim Gratz writes:
> 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:
>
> (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))))))))))
>
> 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.
I did look at org-element-context and the code in org-at-timstamp-p
makes even less sense to me now. The only time org-element-context
returns 'timestamp is when it is on a planning line, but
org-at-timstamp-p has already left the cond in that case in the second
clause.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
next prev parent reply other threads:[~2017-04-27 17:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 19:24 More clocktable breakage Achim Gratz
2017-03-29 14:38 ` Nicolas Goaziou
2017-04-26 17:09 ` Achim Gratz
2017-04-27 17:56 ` Achim Gratz [this message]
2017-04-27 18:56 ` Nicolas Goaziou
2017-04-27 20:09 ` Achim Gratz
2017-04-27 22:49 ` Nicolas Goaziou
2017-04-28 18:56 ` Achim Gratz
2017-04-30 7:21 ` Nicolas Goaziou
2017-05-01 8:27 ` Achim Gratz
2017-05-02 16:47 ` Nicolas Goaziou
2017-05-02 17:32 ` Achim Gratz
2017-05-06 8:10 ` Nicolas Goaziou
2017-05-06 9:53 ` Achim Gratz
2017-05-07 10:15 ` Nicolas Goaziou
2017-05-07 10:36 ` Achim Gratz
2017-05-14 9:10 ` Nicolas Goaziou
2017-05-14 9:50 ` Achim Gratz
2017-05-15 16:28 ` Achim Gratz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shkt4tuf.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.