]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix detecting dotted pairs in icalendar-export-region
authorhokomo <hokomo@airmail.cc>
Mon, 27 Jun 2022 08:03:30 +0000 (10:03 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 27 Jun 2022 08:03:30 +0000 (10:03 +0200)
* lisp/calendar/icalendar.el (icalendar-export-region): Fix detecting
dotted pairs (bug#56241).
Copyright-paperwork-exempt: yes

lisp/calendar/icalendar.el

index 1a5a071e202627ecf3d2601d1fbb44e957273eae..cf5429398971469befffd2c3e06d1bb670edb08c 100644 (file)
@@ -1144,7 +1144,8 @@ FExport diary data into iCalendar file: ")
                                      (cdr contents-n-summary))))
                       (setq result (concat result header contents alarm
                                            "\nEND:VEVENT")))
-                    (if (consp cns-cons-or-list)
+                    (if (and (consp cns-cons-or-list)
+                             (not (listp (cdr cns-cons-or-list))))
                         (list cns-cons-or-list)
                       cns-cons-or-list)))
           ;; handle errors