From 1b96dd69246fc820abd959536e6e73812ee3e12e Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Sat, 22 Jun 2019 13:16:24 +0200 Subject: Export Gnus calendar events to org even if they have no description * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry): Don't ignore events that have no description. --- lisp/gnus/gnus-icalendar.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 53a20b90ebd..402e233d7fd 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -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)))) -- cgit v1.2.1