emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ben Finney <ben+emacs@benfinney.id.au>
To: emacs-orgmode@gnu.org
Subject: Re: Monthly events based on count of specific weekdays
Date: Mon, 09 Nov 2009 07:52:13 +1100	[thread overview]
Message-ID: <87bpjc4u4i.fsf@benfinney.id.au> (raw)
In-Reply-To: m2y6mhb2aj.fsf@fastmail.fm

Matt Lundin <mdl@imapmail.org> writes:

> Ben Finney <ben+emacs@benfinney.id.au> writes:
>
> > Hmm. [a sexp] makes the entry unreadable as a date+time. One of the
> > main advantages of the usual Org date+time specifications is they're
> > perfectly readable even to people who know nothing about Org, Emacs,
> > or Lisp.
>
> Well, yes. But not for every possible niche usage.

That's partly my point: “second Tuesday of the month” isn't niche, it is
pretty common, I would have thought.

> Org-mode provides human readable syntax for the majority of scenarios,
> but allows power users to harness the capabilities of emacs and elisp
> for the rest.

Much appreciated.

> > Is there a way to get a readable format that still behaves as I
> > described?
>
> Not that I know of. But since this is org-mode, you could add a note
> under the diary sexp explaining what it represents.
>
> You'd have to ask Carsten to implement a new timestamp syntax. What
> would you propose as a more readable designation?

How about this:

    <2009-10-13 Tue 14:00 +1m Tue>
    Repeat each month, on the second Tuesday of the month. Calculated
    because this date is the second Tuesday of the month, and the repeat
    weekday is specified.

    <2009-10-13 Tue 14:00 +1m>
    Repeat each month, on the 13th day of the month. Calculated because
    this date is the 8th of the month, and the repeat weekday is not
    specified.

    <2009-10-13 Tue 14:00 +1m Fri>
    Invalid, since this date is not on a Friday.

Or, rather than introducing syntax that makes it easy to put invalid
syntax:

    <2009-10-13 Tue 14:00 +1m dow>
    Repeat each month, on the second Tuesday of the month. Calculated
    because this date is the second Tuesday of the month, and “dow” is
    the specified repeat type.

    <2009-10-13 Tue 14:00 +1m dom>
    Repeat each month, on the 13th day of the month. Calculated because
    this date is the 8th of the month, and “dom” is the specified repeat
    type.

    <2009-10-13 Tue 14:00 +1m>
    Repeat each month, on the 13th day of the month. Calculated because
    this date is the 8th of the month, and “dom” is the default repeat
    type.

I somewhat prefer this latter syntax, because it uses a brief keyword,
allowing for other keywords in the future if a case can be made for
other repeat types.

-- 
 \        “Read not to contradict and confute, nor to believe and take |
  `\          for granted … but to weigh and consider.” —Francis Bacon |
_o__)                                                                  |
Ben Finney

  reply	other threads:[~2009-11-08 20:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-08  5:41 Monthly events based on count of specific weekdays Ben Finney
2009-11-08 11:58 ` Matt Lundin
2009-11-08 12:23   ` Ben Finney
2009-11-08 12:59     ` Matt Lundin
2009-11-08 20:52       ` Ben Finney [this message]
2009-11-09 10:13         ` Giovanni Ridolfi
2009-11-09 10:34           ` Ben Finney
2009-11-19 22:43         ` Feature request: Periodic events based on count of specific weekdays (was: Monthly events based on count of specific weekdays) Ben Finney
2009-11-20  7:37           ` Carsten Dominik
2009-11-20 22:56             ` Feature request: Periodic events based on count of specific weekdays Ben Finney
2009-11-21  3:31               ` Samuel Wales
2009-11-21  7:08               ` Carsten Dominik
2009-11-21 21:06               ` David Bremner

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=87bpjc4u4i.fsf@benfinney.id.au \
    --to=ben+emacs@benfinney.id.au \
    --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).