From: Robert Pluim Date: Sat, 22 Jun 2019 11:16:24 +0000 (+0200) Subject: Export Gnus calendar events to org even if they have no description X-Git-Tag: emacs-27.0.90~2319 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1b96dd69246fc820abd959536e6e73812ee3e12e;p=emacs.git 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. --- 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))))