]> git.eshelyaron.com Git - emacs.git/commitdiff
Export Gnus calendar events to org even if they have no description
authorRobert Pluim <rpluim@gmail.com>
Sat, 22 Jun 2019 11:16:24 +0000 (13:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jun 2019 11:17:18 +0000 (13:17 +0200)
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry):
Don't ignore events that have no description.

lisp/gnus/gnus-icalendar.el

index 53a20b90ebd3475442cbe078446c77185bf4aebf..402e233d7fdf53a85936d1111fa763b9301ee841 100644 (file)
@@ -480,14 +480,13 @@ Return nil for non-recurring EVENT."
                 (org-entry-put (point) (car prop) (cdr prop)))
               props))
 
-      (when description
-        (save-restriction
-          (narrow-to-region (point) (point))
-          (insert (gnus-icalendar-event:org-timestamp event)
-                  "\n\n"
-                  description)
-          (indent-region (point-min) (point-max) 2)
-          (fill-region (point-min) (point-max))))
+      (save-restriction
+        (narrow-to-region (point) (point))
+        (insert (gnus-icalendar-event:org-timestamp event)
+                "\n\n"
+                description)
+        (indent-region (point-min) (point-max) 2)
+        (fill-region (point-min) (point-max)))
 
       (buffer-string))))