From: Juanma Barranquero Date: Wed, 26 Sep 2007 00:10:17 +0000 (+0000) Subject: (icalendar--format-ical-event, icalendar--convert-ical-to-diary): X-Git-Tag: emacs-pretest-23.0.90~10649 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b67b0f7f58838e27627f1c4928eda9ed2567e0a9;p=emacs.git (icalendar--format-ical-event, icalendar--convert-ical-to-diary): Use `mapc' rather than `mapcar'. --- diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index 101aaf96e43..881e7490665 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el @@ -1531,24 +1531,24 @@ buffer `*icalendar-errors*'." ("%t" STATUS icalendar-import-format-status) ("%u" URL icalendar-import-format-url)))) ;; convert the specifiers in the format string - (mapcar (lambda (i) - (let* ((spec (car i)) - (prop (cadr i)) - (format (car (cddr i))) - (contents (icalendar--get-event-property event prop)) - (formatted-contents "")) - (when (and contents (> (length contents) 0)) - (setq formatted-contents - (icalendar--rris "%s" - (icalendar--convert-string-for-import - contents) - (symbol-value format) - t t))) - (setq string (icalendar--rris spec - formatted-contents - string - t t)))) - conversion-list) + (mapc (lambda (i) + (let* ((spec (car i)) + (prop (cadr i)) + (format (car (cddr i))) + (contents (icalendar--get-event-property event prop)) + (formatted-contents "")) + (when (and contents (> (length contents) 0)) + (setq formatted-contents + (icalendar--rris "%s" + (icalendar--convert-string-for-import + contents) + (symbol-value format) + t t))) + (setq string (icalendar--rris spec + formatted-contents + string + t t)))) + conversion-list) string)) (defun icalendar--convert-ical-to-diary (ical-list diary-file @@ -1637,11 +1637,11 @@ written into the buffer `*icalendar-errors*'." (rdate (icalendar--dmsg "rdate event") (setq diary-string "") - (mapcar (lambda (datestring) - (setq diary-string - (concat diary-string - (format "......")))) - (icalendar--split-value rdate))) + (mapc (lambda (datestring) + (setq diary-string + (concat diary-string + (format "......")))) + (icalendar--split-value rdate))) ;; non-recurring event ;; all-day event ((not (string= start-d end-d))