From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: RwN via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69894: 29.1; Icalendar export conflict with calendar iso date Date: Tue, 19 Mar 2024 02:56:57 +0100 Message-ID: <86ttl3rnkm.fsf@mailo.com> Reply-To: RwN Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14082"; mail-complaints-to="usenet@ciao.gmane.io" To: 69894@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 19 05:06:26 2024 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 1rmQk4-0003N2-Hz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Mar 2024 05:06:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmQjN-0003k9-HF; Tue, 19 Mar 2024 00:05:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmQjD-0003h3-KM for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2024 00:05:32 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmQj8-0003C8-9y for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2024 00:05:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmQjk-0006t8-OD for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2024 00:06:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: RwN Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Mar 2024 04:06:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69894 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171082111826267 (code B ref -1); Tue, 19 Mar 2024 04:06:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Mar 2024 04:05:18 +0000 Original-Received: from localhost ([127.0.0.1]:36021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmQiy-0006pQ-32 for submit@debbugs.gnu.org; Tue, 19 Mar 2024 00:05:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmOje-000699-Oh for submit@debbugs.gnu.org; Mon, 18 Mar 2024 21:57:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmOiw-0005Mf-VZ for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 21:57:08 -0400 Original-Received: from msg-2.mailo.com ([213.182.54.12] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmOit-0002a0-KO for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 21:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1710813417; bh=35qESpBlsxxY/Kstos891ztbvF6IBnyHVKLkwk5ukEc=; h=X-EA-Auth:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding; b=ShlQw+pVFGtBBTS9a58YcZXz5ly4tam/LWt7vZrn2q+fMK7AVNsR9e0OhZfZd+N2C ymdEx6Q0S4WXgrSOOqQCQmv1MA4Z3M+SpjRrzFCWLzmTK4to4C0lTP5xCdHxltPvSc Yo/nNB4VWzTSmbrr5zNI/6jbSLRew+5peQV03IiQ= Original-Received: by b221-6.in.mailobj.net [192.168.90.26] with ESMTP via ip-20.mailobj.net [213.182.54.20] Tue, 19 Mar 2024 02:56:57 +0100 (CET) X-EA-Auth: jtTslVM0ZCtXt8VAjmz46D+52zfUwip4WNGMjnAj6MvDb5c+HNEAm51vLGkwQ8Mvqpw6HBck+kMHBzh8CLGDpGwqGCfOdEnTzpNHCiA4Z7o= Received-SPF: pass client-ip=213.182.54.12; envelope-from=rwn@mailo.com; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 19 Mar 2024 00:05:11 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281826 Archived-At: Dear All, In a diary file, with a simple entry entry "2024-03-19 10:00 Appointment", = icalendar-export-file process to an error: "Could not parse date". The entr= y is provided by the default value of calendar-iso-date-display-form. I solve the problem with the following patch mathchin '-' has a separator i= n the function icalendar--datestring-to-isodate : diff -u --label /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz -= -label /tmp/icalendar.el /tmp/jka-commHr8dl /tmp/icalendar.el --- /usr/local/share/emacs/29.1/lisp/calendar/icalendar.el.gz +++ /tmp/icalendar.el @@ -894,8 +894,8 @@ (save-match-data (cond ( ;; iso-style numeric date (string-match (concat "\\s-*" - "\\([0-9]\\{4\\}\\)[ \t/]\\s-*" - "0?\\([1-9][0-9]?\\)[ \t/]\\s-*" + "\\([0-9]\\{4\\}\\)[ \t/-]\\s-*" + "0?\\([1-9][0-9]?\\)[ \t/-]\\s-*" "0?\\([1-9][0-9]?\\)") datestring) (setq year (read (substring datestring (match-beginning 1) Diff finished. Tue Mar 19 02:40:06 2024 Is it a correct solution to proposed?=20 RwN. In GNU Emacs 29.1 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cair= o version 1.16.0) of 2023-10-16 built on laptop Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Ubuntu 22.04.4 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSO= N LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIF= Y PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE = XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: marginalia-mode: t vertico-mode: t recentf-mode: t savehist-mode: t minibuffer-electric-default-mode: t minibuffer-depth-indicate-mode: t windmove-mode: t delete-selection-mode: t server-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/erwan/.emacs.d/etc/custom hides /usr/local/share/emacs/29.1/lisp/cust= om Features: (shadow sort flycheck-grammalecte grammalecte flycheck flyspell ispell mail= -extr emacsbug vertico-directory cl-extra help-mode orderless cursor-sensor= display-line-numbers display-fill-column-indicator rwn-emacs-completion ma= rginalia vertico compat recentf tree-widget savehist minibuf-eldef mb-depth= rwn-emacs-diary mc tempo-api request french-holidays holidays holiday-load= defs appt diary-lib diary-loaddefs solar cal-dst rwn-emacs-windows rwn-emac= s-spelling rwn-emacs-vc rwn-emacs-dired dired-preview rwn-emacs-latex rwn-e= macs-pdf pdf-loader rwn-emacs-mail rwn-mail mu4e mu4e-org org ob ob-tangle = ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pco= mplete org-list org-footnote org-faces org-entities noutline outline icons = ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-c= ore org-keys oc org-loaddefs find-func org-version org-compat org-macs form= at-spec mu4e-notification notifications mu4e-main smtpmail mu4e-view pcase = mu4e-mime-parts thingatpt comint ansi-osc ansi-color ring gnus-art mm-uu mm= l2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus= -start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-= time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus wid-edit cal-menu = calendar cal-loaddefs mu4e-headers mu4e-thread mu4e-actions mu4e-compose nn= header range mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message s= hr pixel-fill kinsoku url-file svg xml dom flow-fill mule-util hl-line mu4e= -contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-serve= r mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window bookmark pp = ido message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-se= c epa derived epg rfc6068 epg-config gnus-util text-property-search time-da= te mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util= ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-obso= lete rwn-emacs-themes standard-dark-theme standard-themes rwn-emacs-package= s finder-inf auctex-autoloads tex-site biblio-autoloads biblio-core-autoloa= ds citar-embark-autoloads citar-autoloads citeproc-autoloads consult-autolo= ads dired-preview-autoloads embark-autoloads f-autoloads dash-autoloads fly= check-grammalecte-autoloads flycheck-autoloads marginalia-autoloads message= s-are-flowing-autoloads orderless-autoloads parsebib-autoloads pdf-tools-au= toloads pkg-info-autoloads epl-autoloads queue-autoloads request-autoloads = s-autoloads standard-themes-autoloads string-inflection-autoloads sudo-edit= -autoloads tablist-autoloads vertico-autoloads info compat-autoloads packag= e browse-url url url-proxy url-privacy url-expand url-methods url-history u= rl-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-p= arse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x= map byte-opt gv bytecomp byte-compile url-vars rwn-emacs-essentials windmo= ve delsel rwn-common cl-loaddefs cl-lib server rmc iso-transl tooltip cconv= eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mo= de mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image= regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode pr= og-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer s= elect scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors = frame minibuffer nadvice seq simple cl-generic indonesian philippine cham g= eorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean ja= panese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopi= c indian cyrillic chinese composite emoji-zwj charscript charprop case-tabl= e epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button l= oaddefs theme-loaddefs faces cus-face macroexp files window text-properties= overlay sha1 md5 base64 format env code-pages mule custom widget keymap ha= shtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-set= ting system-font-setting font-render-setting cairo move-toolbar gtk x-toolk= it xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 468357 33831) (symbols 48 30514 4) (strings 32 153392 6568) (string-bytes 1 4223999) (vectors 16 50001) (vector-slots 8 578847 29215) (floats 8 615 116) (intervals 56 357 175) (buffers 976 11))