unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@ferrier.me.uk>
To: Glenn Morris <rgm@gnu.org>
Subject: bug#14349: org-agenda does not handle diary appointments with days
Date: Sat, 04 May 2013 22:42:15 +0100	[thread overview]
Message-ID: <87obcqo214.fsf@ferrier.me.uk> (raw)
In-Reply-To: <mjk3nexz27.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 04 May 2013 16:36:16 -0400")

Glenn Morris <rgm@gnu.org> writes:

> Nic Ferrier wrote:
>
>> Take that first entry out and it's the same problem.
>
> Sure. The first line is simply the only thing that tells me you are
> using European date format. It isn't the default and you didn't say.
>
>> The problem is the addition of the day. But the day is added by default
>> by `calendar-date-string'.
>
> ?
>
> emacs -Q -f calendar
> i d
> -> May 4, 2013
>
> (no day)
>
> Please give a complete recipe starting from emacs -Q.

Thanks for taking the time here. I've always found the calendar and
diary to be a bit "difficult".

But I didn't say anything about the diary insert functions available
from calendar. Specifically I called out:

 (calendar-date-string '(05 13 2013)) 
   => "Monday, May 13, 2013"

This is used by the Outlook integration I was referring to on the devel
list:

  https://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00067.html


The reason that function behaves like that is because the function is
supposed to be separately customized with calendar-date-display-form.


You're right, my emacs does have:

  calendar-date-style => 'european

so calendar-date-string should be expected to insert in that style
should it not?


I've tested from -Q and it all looks good, but that makes sense.

When you have:

  calendar-date-style => 'american

and no customization of:

  calendar-date-display-form 

then inserting dates with calender-date-string is fine.

But when you have:

  calendar-date-style => 'european

and no customization of:

  calendar-date-display-form 

then inserting dates with calender-date-string is not fine, it's broken
in the way I described.

Which means we should either tie calendar-date-style and
calendar-date-display-form together or nor use
calendar-date-display-form to insert directly into the diary?


Nic





  reply	other threads:[~2013-05-04 21:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-04 18:26 bug#14349: org-agenda does not handle diary appointments with days Nic Ferrier
2013-05-04 18:45 ` Glenn Morris
2013-05-04 19:34   ` Nic Ferrier
2013-05-04 20:36     ` Glenn Morris
2013-05-04 21:42       ` Nic Ferrier [this message]
2013-05-12  1:34         ` Glenn Morris

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obcqo214.fsf@ferrier.me.uk \
    --to=nferrier@ferrier.me.uk \
    --cc=rgm@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.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).