X-Git-Url: https://gitweb.fperrin.net/?p=atom.el.git;a=blobdiff_plain;f=atom.el;h=c73c7d90704d10c8140183bff29e23e9d18a4603;hp=c645cdabe08313b160472b6e32767c179dadd351;hb=26f96667d51b3fbe8509db1534b3786ed384046d;hpb=2b75d2a99cd209df02c6ee21f69e7499e5dc4a52 diff --git a/atom.el b/atom.el index c645cda..c73c7d9 100644 --- a/atom.el +++ b/atom.el @@ -167,6 +167,12 @@ fragment. See `atom-add-entry' for additional details." (xml-print atom) (insert "\n")) +(defun atom-write-file (atom filename) + "Writes the feed ATOM to FILENAME." + (with-temp-buffer + (atom-print atom) + (write-region (point-min) (point-max) filename))) + (defun atom-format-time (&optional time) "Format a time according to RFC3339."