diff options
| author | Miles Bader | 2005-10-15 00:20:58 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-10-15 00:20:58 +0000 |
| commit | d3a597b7b41c2ebdb457e7c8bb037958138028f2 (patch) | |
| tree | d1053570f246598e695e42e71ecb715778928c15 /lisp | |
| parent | 03ab074b43d210ccf8481bac00f3c2697bf3a019 (diff) | |
| download | emacs-d3a597b7b41c2ebdb457e7c8bb037958138028f2.tar.gz emacs-d3a597b7b41c2ebdb457e7c8bb037958138028f2.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-597
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 133-141)
- Update from CVS
- Merge from emacs--cvs-trunk--0
- Update from CVS: texi/gnus.texi (RSS): Fix key description.
- Update from CVS: texi/gnus.texi (Document Server Internals): Addition.
2005-10-04 David Hansen <david.hansen@gmx.net>
* lisp/gnus/nnrss.el (nnrss-request-article): Add support for the comments tag.
(nnrss-check-group): Ditto.
2005-10-14 Katsumi Yamaoka <yamaoka@jpl.org>
* man/gnus.texi (Document Server Internals): Addition.
2005-10-13 Katsumi Yamaoka <yamaoka@jpl.org>
* man/gnus.texi (A note on namespaces): Fix RFC reference.
2005-10-12 Katsumi Yamaoka <yamaoka@jpl.org>
* man/gnus.texi (RSS): Fix key description.
2005-10-11 Katsumi Yamaoka <yamaoka@jpl.org>
* man/gnus.texi: Emacs/w3 -> Emacs/W3.
(Browsing the Web): Fix description.
(Web Searches): Ditto.
(Customizing W3): Ditto.
2005-10-07 Katsumi Yamaoka <yamaoka@jpl.org>
* man/gnus.texi (Maildir): Clarify expire-age and expire-group.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnrss.el | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 23e5564770f..abbfb096ab1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -21,6 +21,11 @@ | |||
| 21 | * pgg-def.el (top-level): Don't require custom, it is | 21 | * pgg-def.el (top-level): Don't require custom, it is |
| 22 | autoloaded. (To sync with No Gnus.) | 22 | autoloaded. (To sync with No Gnus.) |
| 23 | 23 | ||
| 24 | 2005-10-04 David Hansen <david.hansen@gmx.net> | ||
| 25 | |||
| 26 | * nnrss.el (nnrss-request-article): Add support for the comments tag. | ||
| 27 | (nnrss-check-group): Ditto. | ||
| 28 | |||
| 24 | 2005-10-04 Reiner Steib <Reiner.Steib@gmx.de> | 29 | 2005-10-04 Reiner Steib <Reiner.Steib@gmx.de> |
| 25 | 30 | ||
| 26 | * mm-url.el (mm-url-predefined-programs): Add switches for curl. | 31 | * mm-url.el (mm-url-predefined-programs): Add switches for curl. |
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index 5018701ee42..adef035c830 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el | |||
| @@ -197,6 +197,7 @@ for decoding when the cdr that the data specify is not available.") | |||
| 197 | " "))) | 197 | " "))) |
| 198 | (link (nth 2 e)) | 198 | (link (nth 2 e)) |
| 199 | (enclosure (nth 7 e)) | 199 | (enclosure (nth 7 e)) |
| 200 | (comments (nth 8 e)) | ||
| 200 | ;; Enable encoding of Newsgroups header in XEmacs. | 201 | ;; Enable encoding of Newsgroups header in XEmacs. |
| 201 | (default-enable-multibyte-characters t) | 202 | (default-enable-multibyte-characters t) |
| 202 | (rfc2047-header-encoding-alist | 203 | (rfc2047-header-encoding-alist |
| @@ -205,7 +206,7 @@ for decoding when the cdr that the data specify is not available.") | |||
| 205 | rfc2047-header-encoding-alist) | 206 | rfc2047-header-encoding-alist) |
| 206 | rfc2047-header-encoding-alist)) | 207 | rfc2047-header-encoding-alist)) |
| 207 | rfc2047-encode-encoded-words body) | 208 | rfc2047-encode-encoded-words body) |
| 208 | (when (or text link enclosure) | 209 | (when (or text link enclosure comments) |
| 209 | (insert "\n") | 210 | (insert "\n") |
| 210 | (insert "<#multipart type=alternative>\n" | 211 | (insert "<#multipart type=alternative>\n" |
| 211 | "<#part type=\"text/plain\">\n") | 212 | "<#part type=\"text/plain\">\n") |
| @@ -220,6 +221,8 @@ for decoding when the cdr that the data specify is not available.") | |||
| 220 | (insert (car enclosure) " " | 221 | (insert (car enclosure) " " |
| 221 | (nth 2 enclosure) " " | 222 | (nth 2 enclosure) " " |
| 222 | (nth 3 enclosure) "\n")) | 223 | (nth 3 enclosure) "\n")) |
| 224 | (when comments | ||
| 225 | (insert comments "\n")) | ||
| 223 | (setq body (buffer-substring body (point))) | 226 | (setq body (buffer-substring body (point))) |
| 224 | (insert "<#/part>\n" | 227 | (insert "<#/part>\n" |
| 225 | "<#part type=\"text/html\">\n" | 228 | "<#part type=\"text/html\">\n" |
| @@ -232,6 +235,8 @@ for decoding when the cdr that the data specify is not available.") | |||
| 232 | (insert "<p><a href=\"" (car enclosure) "\">" | 235 | (insert "<p><a href=\"" (car enclosure) "\">" |
| 233 | (cadr enclosure) "</a> " (nth 2 enclosure) | 236 | (cadr enclosure) "</a> " (nth 2 enclosure) |
| 234 | " " (nth 3 enclosure) "</p>\n")) | 237 | " " (nth 3 enclosure) "</p>\n")) |
| 238 | (when comments | ||
| 239 | (insert "<p><a href=\"" comments "\">comments</a></p>\n")) | ||
| 235 | (insert "</body></html>\n" | 240 | (insert "</body></html>\n" |
| 236 | "<#/part>\n" | 241 | "<#/part>\n" |
| 237 | "<#/multipart>\n")) | 242 | "<#/multipart>\n")) |
| @@ -528,7 +533,7 @@ nnrss: %s: Not valid XML %s and w3-parse doesn't work %s" | |||
| 528 | 533 | ||
| 529 | (defun nnrss-check-group (group server) | 534 | (defun nnrss-check-group (group server) |
| 530 | (let (file xml subject url extra changed author date | 535 | (let (file xml subject url extra changed author date |
| 531 | enclosure rss-ns rdf-ns content-ns dc-ns) | 536 | enclosure comments rss-ns rdf-ns content-ns dc-ns) |
| 532 | (if (and nnrss-use-local | 537 | (if (and nnrss-use-local |
| 533 | (file-exists-p (setq file (expand-file-name | 538 | (file-exists-p (setq file (expand-file-name |
| 534 | (nnrss-translate-file-chars | 539 | (nnrss-translate-file-chars |
| @@ -576,6 +581,7 @@ nnrss: %s: Not valid XML %s and w3-parse doesn't work %s" | |||
| 576 | (setq date (or (nnrss-node-text dc-ns 'date item) | 581 | (setq date (or (nnrss-node-text dc-ns 'date item) |
| 577 | (nnrss-node-text rss-ns 'pubDate item) | 582 | (nnrss-node-text rss-ns 'pubDate item) |
| 578 | (message-make-date))) | 583 | (message-make-date))) |
| 584 | (setq comments (nnrss-node-text rss-ns 'comments item)) | ||
| 579 | (when (setq enclosure (cadr (assq (intern (concat rss-ns "enclosure")) item))) | 585 | (when (setq enclosure (cadr (assq (intern (concat rss-ns "enclosure")) item))) |
| 580 | (let ((url (cdr (assq 'url enclosure))) | 586 | (let ((url (cdr (assq 'url enclosure))) |
| 581 | (len (cdr (assq 'length enclosure))) | 587 | (len (cdr (assq 'length enclosure))) |
| @@ -606,7 +612,8 @@ nnrss: %s: Not valid XML %s and w3-parse doesn't work %s" | |||
| 606 | (and author (nnrss-mime-encode-string author)) | 612 | (and author (nnrss-mime-encode-string author)) |
| 607 | date | 613 | date |
| 608 | (and extra (nnrss-decode-entities-string extra)) | 614 | (and extra (nnrss-decode-entities-string extra)) |
| 609 | enclosure) | 615 | enclosure |
| 616 | comments) | ||
| 610 | nnrss-group-data) | 617 | nnrss-group-data) |
| 611 | (gnus-sethash (or url extra) t nnrss-group-hashtb) | 618 | (gnus-sethash (or url extra) t nnrss-group-hashtb) |
| 612 | (setq changed t)) | 619 | (setq changed t)) |