Function: gnus-icalendar-with-decoded-handle
gnus-icalendar-with-decoded-handle is a macro defined in
gnus-icalendar.el.gz.
Signature
(gnus-icalendar-with-decoded-handle HANDLE &rest BODY)
Documentation
Execute BODY in buffer containing the decoded contents of HANDLE.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-icalendar.el.gz
(defmacro gnus-icalendar-with-decoded-handle (handle &rest body)
"Execute BODY in buffer containing the decoded contents of HANDLE."
(let ((charset (make-symbol "charset")))
`(let ((,charset (downcase
(or (cdr (assoc 'charset (mm-handle-type ,handle)))
"utf-8"))))
(with-temp-buffer
(mm-insert-part ,handle)
(decode-coding-region (point-min) (point-max) (intern ,charset))
,@body))))