emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* specifical scheduled/deadline timestamp
@ 2012-12-21 17:34 Jeova Sanctus Unus
  0 siblings, 0 replies; only message in thread
From: Jeova Sanctus Unus @ 2012-12-21 17:34 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-21 17:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 17:34 specifical scheduled/deadline timestamp Jeova Sanctus Unus

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).