gnus-icalendar small fix
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Sep 2013 06:47:07 +0000 (23:47 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Sep 2013 06:47:07 +0000 (23:47 -0700)
* 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.

lisp/gnus/ChangeLog
lisp/gnus/gnus-icalendar.el

index 1bf7bb5..2eea1fb 100644 (file)
@@ -1,3 +1,10 @@
+2013-09-12  Glenn Morris  <rgm@gnu.org>
+
+       * 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.
+
 2013-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * score-mode.el (gnus-score-mode-map): Move initialization
index a946a58..e4e1ec2 100644 (file)
@@ -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")