emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1b96dd6: Export Gnus calendar events to org even if


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 1b96dd6: Export Gnus calendar events to org even if they have no description
Date: Sat, 22 Jun 2019 07:17:26 -0400 (EDT)

branch: master
commit 1b96dd69246fc820abd959536e6e73812ee3e12e
Author: Robert Pluim <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 53a20b9..402e233 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))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]