]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous gnus-icalendar sanitization
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 16 Oct 2020 08:46:14 +0000 (10:46 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 16 Oct 2020 08:46:14 +0000 (10:46 +0200)
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
Fix previous change -- respect nil values passed in.

lisp/gnus/gnus-icalendar.el

index bc1bb83822303ae79eed754f93195c8f11bebbbc..389bce85e8b1b516ff3a742141e28f914f164e11 100644 (file)
        (cl-loop for slot in (eieio-class-slots event-class)
                for keyword = (intern
                               (format ":%s" (eieio-slot-descriptor-name slot)))
-               when (plist-get args keyword)
+               when (plist-member args keyword)
                append (list keyword (plist-get args keyword)))))))
 
 (defun gnus-icalendar-event-from-buffer (buf &optional attendee-name-or-email)