emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeova Sanctus Unus <jeova.sanctus.unus@gmail.com>
To: emacs-orgmode@gnu.org
Subject: specifical scheduled/deadline timestamp
Date: Sat, 22 Dec 2012 01:34:23 +0800	[thread overview]
Message-ID: <CAN5KaobpS4LL=LuKCcVDCaxUdL3a7-gsO=SA09eNvYkdyckvkw@mail.gmail.com> (raw)

hi,all

I write a elisp code create specfical scheduled/deadline timestamp,
Sometimes,we might want to create scheduled/deadline on a specfical
day,such as the last work day of month.
Using sexp(like <%%(org-float t 42)>) in scheduling and deadline
timestamp is limited,
like info says:
Org mode does not know enough about the internals of each sexp
function to issue early and late warnings.

I write a elisp code to solve the problem,with it,all you need to do
is setting a property.
You can download it from here:
https://github.com/chenfengyuan/elisp/blob/master/next-spec-day.el

you can write your task like these:
 * TODO test
   SCHEDULED: <2013-03-29 Fri>
   :PROPERTIES:
   :NEXT-SPEC-SCHEDULED: last-workday-of-month
   :END:
 * TODO test2
    SCHEDULED: <2013-06-16 Sun> DEADLINE: <2012-12-31 Mon -3d>
    :PROPERTIES
    :NEXT-SPEC-DEADLINE: (= (calendar-extract-day date)
(calendar-last-day-of-month (calendar-extract-month date)
(calendar-extract-year date)))
    :NEXT-SPEC-SCHEDULED: (org-float 6 0 3)
    :END:
After changing the todo state of the task,the schedule timestamp will
be set automaticly.

                 reply	other threads:[~2012-12-21 17:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAN5KaobpS4LL=LuKCcVDCaxUdL3a7-gsO=SA09eNvYkdyckvkw@mail.gmail.com' \
    --to=jeova.sanctus.unus@gmail.com \
    --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 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).