Mercurial > emacs
comparison lisp/net/newst-backend.el @ 104029:55ba5af4bf3a
Kevin Ryde <user42 at zip.com.au>
Hyperlink urls in docstrings with URL `...'.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 22 Jul 2009 03:07:18 +0000 |
parents | fcf22206598b |
children | a951b4e69c77 |
comparison
equal
deleted
inserted
replaced
104028:70e5fe445939 | 104029:55ba5af4bf3a |
---|---|
1128 Argument NAME gives the name of a news feed. TIME gives the | 1128 Argument NAME gives the name of a news feed. TIME gives the |
1129 system time at which the data have been retrieved. TOPNODE | 1129 system time at which the data have been retrieved. TOPNODE |
1130 contains the feed data as returned by the xml parser. | 1130 contains the feed data as returned by the xml parser. |
1131 | 1131 |
1132 For the Atom 1.0 specification see | 1132 For the Atom 1.0 specification see |
1133 http://www.atompub.org/2005/08/17/draft-ietf-atompub-format-11.html" | 1133 URL `http://www.atompub.org/2005/08/17/draft-ietf-atompub-format-11.html'" |
1134 (newsticker--debug-msg "Parsing Atom 1.0 feed %s" name) | 1134 (newsticker--debug-msg "Parsing Atom 1.0 feed %s" name) |
1135 (let (new-feed new-item) | 1135 (let (new-feed new-item) |
1136 (setq new-feed (newsticker--parse-generic-feed | 1136 (setq new-feed (newsticker--parse-generic-feed |
1137 name time | 1137 name time |
1138 ;; title | 1138 ;; title |
1182 (defun newsticker--parse-rss-0.91 (name time topnode) | 1182 (defun newsticker--parse-rss-0.91 (name time topnode) |
1183 "Parse RSS 0.91 data. | 1183 "Parse RSS 0.91 data. |
1184 Return value as well as arguments NAME, TIME, and TOPNODE are the | 1184 Return value as well as arguments NAME, TIME, and TOPNODE are the |
1185 same as in `newsticker--parse-atom-1.0'. | 1185 same as in `newsticker--parse-atom-1.0'. |
1186 | 1186 |
1187 For the RSS 0.91 specification see http://backend.userland.com/rss091 or | 1187 For the RSS 0.91 specification see URL `http://backend.userland.com/rss091' |
1188 http://my.netscape.com/publish/formats/rss-spec-0.91.html." | 1188 or URL `http://my.netscape.com/publish/formats/rss-spec-0.91.html'." |
1189 (newsticker--debug-msg "Parsing RSS 0.91 feed %s" name) | 1189 (newsticker--debug-msg "Parsing RSS 0.91 feed %s" name) |
1190 (let* ((channelnode (car (xml-get-children topnode 'channel))) | 1190 (let* ((channelnode (car (xml-get-children topnode 'channel))) |
1191 (pub-date (newsticker--decode-rfc822-date | 1191 (pub-date (newsticker--decode-rfc822-date |
1192 (car (xml-node-children | 1192 (car (xml-node-children |
1193 (car (xml-get-children channelnode 'pubDate)))))) | 1193 (car (xml-get-children channelnode 'pubDate)))))) |
1236 (defun newsticker--parse-rss-0.92 (name time topnode) | 1236 (defun newsticker--parse-rss-0.92 (name time topnode) |
1237 "Parse RSS 0.92 data. | 1237 "Parse RSS 0.92 data. |
1238 Return value as well as arguments NAME, TIME, and TOPNODE are the | 1238 Return value as well as arguments NAME, TIME, and TOPNODE are the |
1239 same as in `newsticker--parse-atom-1.0'. | 1239 same as in `newsticker--parse-atom-1.0'. |
1240 | 1240 |
1241 For the RSS 0.92 specification see http://backend.userland.com/rss092." | 1241 For the RSS 0.92 specification see URL `http://backend.userland.com/rss092'." |
1242 (newsticker--debug-msg "Parsing RSS 0.92 feed %s" name) | 1242 (newsticker--debug-msg "Parsing RSS 0.92 feed %s" name) |
1243 (let* ((channelnode (car (xml-get-children topnode 'channel))) | 1243 (let* ((channelnode (car (xml-get-children topnode 'channel))) |
1244 (pub-date (newsticker--decode-rfc822-date | 1244 (pub-date (newsticker--decode-rfc822-date |
1245 (car (xml-node-children | 1245 (car (xml-node-children |
1246 (car (xml-get-children channelnode 'pubDate)))))) | 1246 (car (xml-get-children channelnode 'pubDate)))))) |
1289 (defun newsticker--parse-rss-1.0 (name time topnode) | 1289 (defun newsticker--parse-rss-1.0 (name time topnode) |
1290 "Parse RSS 1.0 data. | 1290 "Parse RSS 1.0 data. |
1291 Return value as well as arguments NAME, TIME, and TOPNODE are the | 1291 Return value as well as arguments NAME, TIME, and TOPNODE are the |
1292 same as in `newsticker--parse-atom-1.0'. | 1292 same as in `newsticker--parse-atom-1.0'. |
1293 | 1293 |
1294 For the RSS 1.0 specification see http://web.resource.org/rss/1.0/spec." | 1294 For the RSS 1.0 specification see URL `http://web.resource.org/rss/1.0/spec'." |
1295 (newsticker--debug-msg "Parsing RSS 1.0 feed %s" name) | 1295 (newsticker--debug-msg "Parsing RSS 1.0 feed %s" name) |
1296 (let* ((channelnode (car (xml-get-children topnode 'channel))) | 1296 (let* ((channelnode (car (xml-get-children topnode 'channel))) |
1297 is-new-feed has-new-items) | 1297 is-new-feed has-new-items) |
1298 (setq is-new-feed (newsticker--parse-generic-feed | 1298 (setq is-new-feed (newsticker--parse-generic-feed |
1299 name time | 1299 name time |
1340 (defun newsticker--parse-rss-2.0 (name time topnode) | 1340 (defun newsticker--parse-rss-2.0 (name time topnode) |
1341 "Parse RSS 2.0 data. | 1341 "Parse RSS 2.0 data. |
1342 Return value as well as arguments NAME, TIME, and TOPNODE are the | 1342 Return value as well as arguments NAME, TIME, and TOPNODE are the |
1343 same as in `newsticker--parse-atom-1.0'. | 1343 same as in `newsticker--parse-atom-1.0'. |
1344 | 1344 |
1345 For the RSS 2.0 specification see http://blogs.law.harvard.edu/tech/rss." | 1345 For the RSS 2.0 specification see URL `http://blogs.law.harvard.edu/tech/rss'." |
1346 (newsticker--debug-msg "Parsing RSS 2.0 feed %s" name) | 1346 (newsticker--debug-msg "Parsing RSS 2.0 feed %s" name) |
1347 (let* ((channelnode (car (xml-get-children topnode 'channel))) | 1347 (let* ((channelnode (car (xml-get-children topnode 'channel))) |
1348 is-new-feed has-new-items) | 1348 is-new-feed has-new-items) |
1349 (setq is-new-feed (newsticker--parse-generic-feed | 1349 (setq is-new-feed (newsticker--parse-generic-feed |
1350 name time | 1350 name time |