diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nndoc.el | 33 |
3 files changed, 34 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1edc8247fd0..be773219137 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | 6 | ||
| 7 | 2010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 8 | 8 | ||
| 9 | * nndoc.el (nndoc-type-alist): Added a new type for Google digests. | ||
| 10 | |||
| 9 | * gnus-html.el (gnus-html-wash-tags): Check the value of | 11 | * gnus-html.el (gnus-html-wash-tags): Check the value of |
| 10 | gnus-blocked-images in the summary buffer. | 12 | gnus-blocked-images in the summary buffer. |
| 11 | 13 | ||
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 9e85937577e..2d6637f253b 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -260,9 +260,6 @@ fit these criteria." | |||
| 260 | (window-height (truncate (* gnus-max-image-proportion | 260 | (window-height (truncate (* gnus-max-image-proportion |
| 261 | (- (nth 3 edges) (nth 1 edges))))) | 261 | (- (nth 3 edges) (nth 1 edges))))) |
| 262 | scaled-image) | 262 | scaled-image) |
| 263 | (when (> width window-width) | ||
| 264 | (setq window-height (truncate (* window-height | ||
| 265 | (/ (* 1.0 window-width) width))))) | ||
| 266 | (or | 263 | (or |
| 267 | (cond ((> height window-height) | 264 | (cond ((> height window-height) |
| 268 | (create-image file 'imagemagick nil | 265 | (create-image file 'imagemagick nil |
diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el index 8b10906ce4c..6acae6dcdd5 100644 --- a/lisp/gnus/nndoc.el +++ b/lisp/gnus/nndoc.el | |||
| @@ -118,6 +118,16 @@ from the document.") | |||
| 118 | (file-end . "^End of") | 118 | (file-end . "^End of") |
| 119 | (prepare-body-function . nndoc-unquote-dashes) | 119 | (prepare-body-function . nndoc-unquote-dashes) |
| 120 | (subtype digest guess)) | 120 | (subtype digest guess)) |
| 121 | |||
| 122 | (pre-dissection-function . nndoc-decode-content-transfer-encoding) | ||
| 123 | (article-begin . "^== [0-9]+ of [0-9]+ ==$") | ||
| 124 | (head-begin . "^Date:") | ||
| 125 | (head-end . "^$") | ||
| 126 | (body-end-function . nndoc-digest-body-end) | ||
| 127 | (body-begin . "^$") | ||
| 128 | (file-end . "^==============================================================================$") | ||
| 129 | (prepare-body-function . nndoc-unquote-dashes) | ||
| 130 | (subtype digest guess)) | ||
| 121 | (lanl-gov-announce | 131 | (lanl-gov-announce |
| 122 | (article-begin . "^\\\\\\\\\n") | 132 | (article-begin . "^\\\\\\\\\n") |
| 123 | (head-begin . "^\\(Paper.*:\\|arXiv:\\)") | 133 | (head-begin . "^\\(Paper.*:\\|arXiv:\\)") |
| @@ -186,6 +196,7 @@ from the document.") | |||
| 186 | (defvoo nndoc-article-begin-function nil) | 196 | (defvoo nndoc-article-begin-function nil) |
| 187 | (defvoo nndoc-generate-article-function nil) | 197 | (defvoo nndoc-generate-article-function nil) |
| 188 | (defvoo nndoc-dissection-function nil) | 198 | (defvoo nndoc-dissection-function nil) |
| 199 | (defvoo nndoc-pre-dissection-function nil) | ||
| 189 | 200 | ||
| 190 | (defvoo nndoc-status-string "") | 201 | (defvoo nndoc-status-string "") |
| 191 | (defvoo nndoc-group-alist nil) | 202 | (defvoo nndoc-group-alist nil) |
| @@ -363,7 +374,8 @@ from the document.") | |||
| 363 | nndoc-generate-head-function nndoc-body-begin-function | 374 | nndoc-generate-head-function nndoc-body-begin-function |
| 364 | nndoc-head-begin-function | 375 | nndoc-head-begin-function |
| 365 | nndoc-generate-article-function | 376 | nndoc-generate-article-function |
| 366 | nndoc-dissection-function))) | 377 | nndoc-dissection-function |
| 378 | nndoc-pre-dissection-function))) | ||
| 367 | (while vars | 379 | (while vars |
| 368 | (set (pop vars) nil))) | 380 | (set (pop vars) nil))) |
| 369 | (let (defs) | 381 | (let (defs) |
| @@ -445,6 +457,22 @@ from the document.") | |||
| 445 | (forward-line 1) | 457 | (forward-line 1) |
| 446 | (goto-char (+ (point) (string-to-number (match-string 1)))))) | 458 | (goto-char (+ (point) (string-to-number (match-string 1)))))) |
| 447 | 459 | ||
| 460 | (defun nndoc-google-type-p () | ||
| 461 | (when (re-search-forward "^=3D=3D 1 of [0-9]+ =3D=3D$" nil t) | ||
| 462 | t)) | ||
| 463 | |||
| 464 | (defun nndoc-decode-content-transfer-encoding () | ||
| 465 | (let ((encoding | ||
| 466 | (save-restriction | ||
| 467 | (message-narrow-to-head) | ||
| 468 | (message-fetch-field "content-transfer-encoding")))) | ||
| 469 | (when (and encoding | ||
| 470 | (search-forward "\n\n" nil t)) | ||
| 471 | (save-restriction | ||
| 472 | (narrow-to-region (point) (point-max)) | ||
| 473 | (mm-decode-content-transfer-encoding | ||
| 474 | (intern (downcase (mail-header-strip encoding)))))))) | ||
| 475 | |||
| 448 | (defun nndoc-babyl-type-p () | 476 | (defun nndoc-babyl-type-p () |
| 449 | (when (re-search-forward "\^_\^L *\n" nil t) | 477 | (when (re-search-forward "\^_\^L *\n" nil t) |
| 450 | t)) | 478 | t)) |
| @@ -807,6 +835,9 @@ from the document.") | |||
| 807 | ;; Remove blank lines. | 835 | ;; Remove blank lines. |
| 808 | (while (eq (following-char) ?\n) | 836 | (while (eq (following-char) ?\n) |
| 809 | (delete-char 1)) | 837 | (delete-char 1)) |
| 838 | (when nndoc-pre-dissection-function | ||
| 839 | (save-excursion | ||
| 840 | (funcall nndoc-pre-dissection-function))) | ||
| 810 | (if nndoc-dissection-function | 841 | (if nndoc-dissection-function |
| 811 | (funcall nndoc-dissection-function) | 842 | (funcall nndoc-dissection-function) |
| 812 | ;; Find the beginning of the file. | 843 | ;; Find the beginning of the file. |