summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-icalendar.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-09-11 23:47:07 -0700
committerGlenn Morris <rgm@gnu.org>2013-09-11 23:47:07 -0700
commita99f655b99b9596ab6b11d6890c39c2dde93d6e1 (patch)
treec8b0c9494a5eee9417673fae338e726c67c03ccc /lisp/gnus/gnus-icalendar.el
parent44915370e8c39adf7c9d65c29241269c454964aa (diff)
downloademacs-a99f655b99b9596ab6b11d6890c39c2dde93d6e1.tar.gz
emacs-a99f655b99b9596ab6b11d6890c39c2dde93d6e1.tar.bz2
emacs-a99f655b99b9596ab6b11d6890c39c2dde93d6e1.zip
gnus-icalendar small fix
* gnus/gnus-icalendar.el (gnus-icalendar-event--build-reply-event-body): Avoid using `find', which i) might not be defined at runtime; ii) does not work, since its default test is eql, not equal. (gnus-mime-action-alist): Declare.
Diffstat (limited to 'lisp/gnus/gnus-icalendar.el')
-rw-r--r--lisp/gnus/gnus-icalendar.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
index a946a586033..e4e1ec29ae9 100644
--- a/lisp/gnus/gnus-icalendar.el
+++ b/lisp/gnus/gnus-icalendar.el
@@ -257,9 +257,9 @@ status will be retrieved from the first matching attendee record."
((string= key "ATTENDEE") (update-attendee-status line))
((string= key "SUMMARY") (update-summary line))
((string= key "DTSTAMP") (update-dtstamp))
- ((find key '("ORGANIZER" "DTSTART" "DTEND"
- "LOCATION" "DURATION" "SEQUENCE"
- "RECURRENCE-ID" "UID")) line)
+ ((member key '("ORGANIZER" "DTSTART" "DTEND"
+ "LOCATION" "DURATION" "SEQUENCE"
+ "RECURRENCE-ID" "UID")) line)
(t nil))))
(when new-line
(push new-line reply-event-lines))))))
@@ -816,6 +816,8 @@ is searched."
(gnus-icalendar-show-org-agenda
(with-current-buffer gnus-article-buffer gnus-icalendar-event)))
+(defvar gnus-mime-action-alist) ; gnus-art
+
(defun gnus-icalendar-setup ()
(add-to-list 'mm-inlined-types "text/calendar")
(add-to-list 'mm-automatic-display "text/calendar")