From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56241: [PATCH] icalendar doesn't correctly process arbitrary diary sexp entries Date: Mon, 27 Jun 2022 10:04:53 +0200 Message-ID: <87edza8rbu.fsf@gnus.org> References: <21bff87f-b8dc-c7bc-41ab-97c7077a0535@airmail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35027"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56241@debbugs.gnu.org To: hokomo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 10:07:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5jm1-0008tJ-VS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 10:07:09 +0200 Original-Received: from localhost ([::1]:49362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5jm0-0001XA-L3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 04:07:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5jkw-0001UY-GG for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 04:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5jkv-0004yC-Ti for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 04:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5jkv-0007bv-Og for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 04:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56241-submit@debbugs.gnu.org id=B56241.165631710729181 (code B ref 56241); Mon, 27 Jun 2022 08:06:01 +0000 Original-Received: (at 56241) by debbugs.gnu.org; 27 Jun 2022 08:05:07 +0000 Original-Received: from localhost ([127.0.0.1]:49736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5jk3-0007aa-CZ for submit@debbugs.gnu.org; Mon, 27 Jun 2022 04:05:07 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:34442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5jk0-0007ZS-QV for 56241@debbugs.gnu.org; Mon, 27 Jun 2022 04:05:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZnarujxQk3TU5g9Qaxl0MOWVFm6x94ex6eytLt6QC3o=; b=lFKCYlEyuqLDzRtfm9wm5+zbZg KZDxvkagbHBN8NhDRXhbOT6rxigwLEB9Rd5bry7e1ixYfbI8n/Ghs2KU+qUbzfGwVC6ZnYprUsgB0 6exuO77gEoU7FIDlcVN0kZpc849pFTgYa2xXugGBPZ/7Ej0iGIds73pwSecjvxhpO9ek=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5jjq-0003Ny-0g; Mon, 27 Jun 2022 10:04:56 +0200 In-Reply-To: <21bff87f-b8dc-c7bc-41ab-97c7077a0535@airmail.cc> (hokomo@airmail.cc's message of "Sun, 26 Jun 2022 20:36:46 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235416 Archived-At: hokomo writes: > Exporting the my-float sexp will fail with: > > "Error in line 0 -- (wrong-type-argument listp First Sunday in July > 2): =E2=80=98%%(my-float 7 0 1) First Sunday in July 2" > > because the returned list is confused for a dotted pair. Thanks; patch pushed to Emacs 29. > `icalendar-export-sexp-enumeration-days' is set to 366 to guarantee > that the sexp event occurs at least once. It looks like there's a > different bug (?) where, even if an entry is recognized as an > arbitrary diary sexp, if it doesn't produce any events, the converter > will go ahead with trying to interpret it in a different way and > eventually fail. E.g., lowering the enumeration days to 0 gives: > > "Error in line 0 -- (error Could not parse date): =E2=80=98%%(my-float 7 = 0 1) > First Sunday in July 2=E2=80=99" > > after exhausting all of the known entry types. Should I file this as a > separate bug? No, we can work on this problem here in this bug report. Do you have a recipe to reproduce the problem, starting from "emacs -Q"? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no