From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.bugs Subject: bug#14349: org-agenda does not handle diary appointments with days Date: Sat, 04 May 2013 22:42:15 +0100 Message-ID: <87obcqo214.fsf@ferrier.me.uk> References: <87bo8qppne.fsf@ferrier.me.uk> <8738u2pmiz.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368296813 31374 80.91.229.3 (11 May 2013 18:26:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 May 2013 18:26:53 +0000 (UTC) Bcc: rgm@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 20:26:53 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UbEVP-0001fn-89 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2013 20:26:51 +0200 Original-Received: from localhost ([::1]:34585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbEVO-0002kj-OD for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2013 14:26:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbEVK-0002kU-Vi for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 14:26:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbEVJ-0006CL-Oq for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 14:26:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbEVJ-0006CG-LO for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 14:26:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UbEVa-00058a-Dy for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nic Ferrier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2013 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14349 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14349-submit@debbugs.gnu.org id=B14349.136829677019589 (code B ref 14349); Sat, 11 May 2013 18:27:02 +0000 Original-Received: (at 14349) by debbugs.gnu.org; 11 May 2013 18:26:10 +0000 Original-Received: from localhost ([127.0.0.1]:36801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbEUi-00055p-Lz for submit@debbugs.gnu.org; Sat, 11 May 2013 14:26:10 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:56872) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbEUf-00055f-QF for 14349@debbugs.gnu.org; Sat, 11 May 2013 14:26:06 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UbEUO-0001de-Mq for 14349@debbugs.gnu.org; Sat, 11 May 2013 14:25:48 -0400 Resent-Message-ID: <20878.36140.628416.481800@gnu.org> Resent-Date: Sat, 11 May 2013 14:25:48 -0400 Resent-From: Glenn Morris Resent-To: 14349@debbugs.gnu.org In-Reply-To: (Glenn Morris's message of "Sat, 04 May 2013 16:36:16 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Bogosity: no, spamicity=0.060332, v1.2.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74171 Archived-At: Glenn Morris 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