unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* icalendar.el bug fix patch
@ 2019-10-23 13:33 Rajeev Narang via Emacs development discussions.
  2019-11-01  9:40 ` Eli Zaretskii
  0 siblings, 1 reply; 24+ messages in thread
From: Rajeev Narang via Emacs development discussions. @ 2019-10-23 13:33 UTC (permalink / raw)
  To: emacs-devel

icalendar-export-region does not export multi-line Desc as it is imported by icalendar-import-file.  The following patch fixes the issue.  If acceptable, please commit. Thanks.

diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index 1186ced3fb..1f4e582aa5 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -1244,7 +1244,7 @@ icalendar--parse-summary-and-rest
                      (concat "\\(" icalendar-import-format-uid "\\)??"))))
 	;; Need the \' regexp in order to detect multi-line items
         (setq s (concat "\\`"
-                        (replace-regexp-in-string "%s" "\\(.*?\\)" s nil t)
+                        (replace-regexp-in-string "%s" "\\([^z-a]*?\\)" s nil t)
                         "\\'"))
         (if (string-match s summary-and-rest)
             (let (cla des loc org sta url uid) ;; sum



^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-11-04 15:16 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23 13:33 icalendar.el bug fix patch Rajeev Narang via Emacs development discussions.
2019-11-01  9:40 ` Eli Zaretskii
2019-11-01 10:51   ` Mattias Engdegård
2019-11-01 13:00     ` Eli Zaretskii
2019-11-01 11:12   ` Rajeev Narang via Emacs development discussions.
2019-11-01 13:05     ` Eli Zaretskii
2019-11-01 13:24       ` Mattias Engdegård
2019-11-01 13:33         ` Eli Zaretskii
2019-11-01 21:19           ` Paul Eggert
2019-11-01 21:38             ` Mattias Engdegård
2019-11-02 18:39             ` Juri Linkov
2019-11-03 13:21               ` Richard Stallman
2019-11-03 16:55                 ` Drew Adams
2019-11-03 19:55               ` Stefan Monnier
2019-11-03 20:54                 ` Juri Linkov
2019-11-03 21:10                   ` Stefan Monnier
2019-11-03 21:32                     ` Juri Linkov
     [not found]                     ` <E81C3456-834F-469D-B8CA-80B1CDD311F8@acm.org>
2019-11-04  0:50                       ` Paul Eggert
2019-11-04 11:56                         ` Mattias Engdegård
2019-11-04 15:16                           ` Drew Adams
2019-11-03  3:24             ` Richard Stallman
2019-11-03 16:54               ` Drew Adams
2019-11-01 16:44         ` Howard Melman
2019-11-01 14:30       ` Richard Stallman

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).