emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting recurring deadlines
@ 2009-02-09 12:18 Varnit Suri
  2009-02-09 14:33 ` Manish
  0 siblings, 1 reply; 6+ messages in thread
From: Varnit Suri @ 2009-02-09 12:18 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I am having trouble with something pretty basic. I am trying to setup a
recurring deadline on the last day of every month. However, when I set
it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28, rather
than 31st March.

I don't use appt/diary. Is there a way to do this in org-mode? Any
comments are appreciated. Thanks.

V.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Setting recurring deadlines
  2009-02-09 12:18 Setting recurring deadlines Varnit Suri
@ 2009-02-09 14:33 ` Manish
  2009-02-09 21:07   ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Manish @ 2009-02-09 14:33 UTC (permalink / raw)
  To: Varnit Suri; +Cc: emacs-orgmode

On Mon, Feb 9, 2009 at 5:48 PM, Varnit Suri wrote:
> Hi all,
>
> I am having trouble with something pretty basic. I am trying to setup a
> recurring deadline on the last day of every month. However, when I set
> it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28, rather
> than 31st March.
>
> I don't use appt/diary. Is there a way to do this in org-mode?

Currently not possible to the best of my knowledge.  IMHO, including via diary
seems to be a reasonable workaround.

-- 
Manish

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Setting recurring deadlines
  2009-02-09 14:33 ` Manish
@ 2009-02-09 21:07   ` Tassilo Horn
  2009-02-09 21:37     ` Carsten Dominik
  2009-02-09 22:32     ` Nick Dokos
  0 siblings, 2 replies; 6+ messages in thread
From: Tassilo Horn @ 2009-02-09 21:07 UTC (permalink / raw)
  To: emacs-orgmode

Manish <mailtomanish.sharma@gmail.com> writes:

>> I am having trouble with something pretty basic. I am trying to setup
>> a recurring deadline on the last day of every month. However, when I
>> set it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28,
>> rather than 31st March.
>>
>> I don't use appt/diary. Is there a way to do this in org-mode?
>
> Currently not possible to the best of my knowledge.  IMHO, including
> via diary seems to be a reasonable workaround.

I was curious how to get that done, but I couldn't find a diary for
"each last day of a month" in diary, too.  "Each second thursday in a
month" is on emacswiki, but all those complex dates I found are wired to
a specific day of the week...

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Setting recurring deadlines
  2009-02-09 21:07   ` Tassilo Horn
@ 2009-02-09 21:37     ` Carsten Dominik
  2009-02-09 22:32     ` Nick Dokos
  1 sibling, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2009-02-09 21:37 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: emacs-orgmode

Try thinking about the last day of the month being one day before the  
first day of the next month.....

- Carsten

On Feb 9, 2009, at 10:07 PM, Tassilo Horn wrote:

> Manish <mailtomanish.sharma@gmail.com> writes:
>
>>> I am having trouble with something pretty basic. I am trying to  
>>> setup
>>> a recurring deadline on the last day of every month. However, when I
>>> set it as <2009-02-28 +1m>, the next deadline shows up at  
>>> 2009-03-28,
>>> rather than 31st March.
>>>
>>> I don't use appt/diary. Is there a way to do this in org-mode?
>>
>> Currently not possible to the best of my knowledge.  IMHO, including
>> via diary seems to be a reasonable workaround.
>
> I was curious how to get that done, but I couldn't find a diary for
> "each last day of a month" in diary, too.  "Each second thursday in a
> month" is on emacswiki, but all those complex dates I found are  
> wired to
> a specific day of the week...
>
> Bye,
> Tassilo
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Setting recurring deadlines
  2009-02-09 21:07   ` Tassilo Horn
  2009-02-09 21:37     ` Carsten Dominik
@ 2009-02-09 22:32     ` Nick Dokos
  2009-02-10  9:03       ` Tassilo Horn
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2009-02-09 22:32 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: emacs-orgmode

Tassilo Horn <tassilo@member.fsf.org> wrote:

> Manish <mailtomanish.sharma@gmail.com> writes:
> 
> >> I am having trouble with something pretty basic. I am trying to setup
> >> a recurring deadline on the last day of every month. However, when I
> >> set it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28,
> >> rather than 31st March.
> >>
> >> I don't use appt/diary. Is there a way to do this in org-mode?
> >
> > Currently not possible to the best of my knowledge.  IMHO, including
> > via diary seems to be a reasonable workaround.
> 
> I was curious how to get that done, but I couldn't find a diary for
> "each last day of a month" in diary, too.  "Each second thursday in a
> month" is on emacswiki, but all those complex dates I found are wired to
> a specific day of the week...
> 

"Bah, how hard can that be?" - famous last words, now eaten (I did choke
on them along the way) ...

Here's my attempt (tested *very* lightly):

&%%(let ((lastday (calendar-last-day-of-month (calendar-extract-month date)
                                              (calendar-extract-year date)))
         (day (calendar-extract-day date)))
        (= day lastday))         last day of month

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Setting recurring deadlines
  2009-02-09 22:32     ` Nick Dokos
@ 2009-02-10  9:03       ` Tassilo Horn
  0 siblings, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2009-02-10  9:03 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

Hi Nick,

>> I was curious how to get that done, but I couldn't find a diary for
>> "each last day of a month" in diary, too.  "Each second thursday in a
>> month" is on emacswiki, but all those complex dates I found are wired
>> to a specific day of the week...
>
> "Bah, how hard can that be?" - famous last words, now eaten (I did
> choke on them along the way) ...
>
> Here's my attempt (tested *very* lightly):
>
> &%%(let ((lastday (calendar-last-day-of-month (calendar-extract-month date)
>                                               (calendar-extract-year date)))
>          (day (calendar-extract-day date)))
>         (= day lastday))         last day of month

Using `calendar-last-day-of-month' is unfair. ;-)

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-10  9:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 12:18 Setting recurring deadlines Varnit Suri
2009-02-09 14:33 ` Manish
2009-02-09 21:07   ` Tassilo Horn
2009-02-09 21:37     ` Carsten Dominik
2009-02-09 22:32     ` Nick Dokos
2009-02-10  9:03       ` Tassilo Horn

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