From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Samuel Loury <konubinix@gmail.com>
Cc: OrgMode ML <emacs-orgmode@gnu.org>
Subject: Re: Repeated tasks repeats even if the time stamp is commented
Date: Thu, 24 Jul 2014 10:17:11 +0200 [thread overview]
Message-ID: <87vbqulug0.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87iomuyk2h.fsf@konixwork.incubateur.ens-lyon.fr> (Samuel Loury's message of "Fri, 18 Jul 2014 13:37:10 +0200")
Hello,
Samuel Loury <konubinix@gmail.com> writes:
> Thank you for the answer, do you know where I should look at to start
> investigating to fix the issue?
I think `org-add-planning-info' may be a good candidate, though I didn't
look closely into it.
One possible way to use `org-element-at-point' is something like the
following
(let ((element (org-element-at-point)))
(when (eq (org-element-type element) 'planning)
...))
Then it is sure to be on a planning line. Storing ELEMENT also gives you
a lot of information without further parsing.
Also, when you need to find the next object of a given type, the usual
construct is
(catch 'exit
(while (re-search-forward some-regexp nil t)
(let ((context (org-element-context)))
(when (eq (org-element-type context) expected-type)
...
(throw 'exit some-value)))))
It is useful to find, e.g., a timestamp within a section.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-07-24 8:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 9:19 Repeated tasks repeats even if the time stamp is commented Samuel Loury
2014-07-18 10:32 ` Nicolas Goaziou
2014-07-18 11:37 ` Samuel Loury
2014-07-24 8:17 ` Nicolas Goaziou [this message]
2014-07-28 14:13 ` Bastien
2014-07-29 15:45 ` Samuel Loury
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbqulug0.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=konubinix@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).