From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#33277: 25.1; icalendar-import-file incorrectly imports events with same start/end time Date: Wed, 10 Jul 2019 15:10:04 +0200 Message-ID: <87wogq3uj7.fsf@mouse.gnus.org> References: <87muqnz8ib.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202942"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33277@debbugs.gnu.org To: Stefan van der Walt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 10 15:11:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlCNZ-000qfB-P9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 15:11:25 +0200 Original-Received: from localhost ([::1]:32792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlCNY-0001pB-BS for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 09:11:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45287) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlCNF-0001p4-Ox for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 09:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlCNE-00031d-Ee for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 09:11:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlCNE-00031T-Aa for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 09:11:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlCNC-00030T-GW for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 09:11:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2019 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33277 X-GNU-PR-Package: emacs Original-Received: via spool by 33277-submit@debbugs.gnu.org id=B33277.156276421011484 (code B ref 33277); Wed, 10 Jul 2019 13:11:02 +0000 Original-Received: (at 33277) by debbugs.gnu.org; 10 Jul 2019 13:10:10 +0000 Original-Received: from localhost ([127.0.0.1]:35056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlCMM-0002z9-FG for submit@debbugs.gnu.org; Wed, 10 Jul 2019 09:10:10 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:37394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlCMK-0002yz-OG for 33277@debbugs.gnu.org; Wed, 10 Jul 2019 09:10:09 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlCMG-0000Uj-KX; Wed, 10 Jul 2019 15:10:07 +0200 In-Reply-To: <87muqnz8ib.fsf@berkeley.edu> (Stefan van der Walt's message of "Mon, 05 Nov 2018 10:25:48 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:162626 Archived-At: Stefan van der Walt writes: > When importing an ical file containing an event with the same start and > end time, that event is converted to an all-day event. [...] > I import it using: > > (icalendar-import-file "/tmp/basic.ics" "/tmp/basic.diary") > > And in basic.diary see: > > 11/5/2018 event with same start/end time But is that the same as an all-day event? > Instead of: > > 11/5/2018 12:00-12:00 Yes, that would be more logical... > The source code (icalendar.el) mentions the following: > > ;; Please note: > ;; - Diary entries which have a start time but no end time are assumed to > ;; last for one hour when they are exported. > > Still, then I would expect the diary entry to be: > > 11/5/2018 12:00-13:00 This seems to all be very inconsistent. I rarely use diary myself, but what would users expect here? Exporting the event with 12:00-12:00 would be consistent, at least. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no