diff options
| author | Lars Magne Ingebrigtsen | 2010-11-01 23:11:37 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-01 23:11:37 +0000 |
| commit | 285cf7c8fe81d9110fd03486c6d5a0661b9ef71f (patch) | |
| tree | d5fbd0af5a8ec5f0d4ddb5a7a31cc40c81f8f8bb | |
| parent | 9310f19da1b42a9da2f4cde15e605d04b9420655 (diff) | |
| download | emacs-285cf7c8fe81d9110fd03486c6d5a0661b9ef71f.tar.gz emacs-285cf7c8fe81d9110fd03486c6d5a0661b9ef71f.zip | |
gnus-sum.el (gnus-print-buffer): Rewrite to use with-temp-buffer.
gnus-sum.el (gnus-print-buffer): Just print the buffer as is.
gnus-cite.el (gnus-article-foldable-buffer): Protect against degenerate articles.
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-cite.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 55 |
3 files changed, 29 insertions, 36 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index d233a667126..a9424496bd7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-11-01 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-11-01 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-cite.el (gnus-article-foldable-buffer): Protect against | ||
| 4 | degenerate articles. | ||
| 5 | |||
| 6 | * gnus-sum.el (gnus-print-buffer): Rewrite to use with-temp-buffer. | ||
| 7 | (gnus-print-buffer): Just print the buffer as is, without any copying | ||
| 8 | to a buffer and then re-highlighting. | ||
| 9 | |||
| 3 | * nnimap.el (nnimap-request-group): Store the new updated info. | 10 | * nnimap.el (nnimap-request-group): Store the new updated info. |
| 4 | (nnimap-request-group): Select the group when we don't know whether it | 11 | (nnimap-request-group): Select the group when we don't know whether it |
| 5 | exists or not. | 12 | exists or not. |
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el index 2d44e36258a..c99cb5cf2e3 100644 --- a/lisp/gnus/gnus-cite.el +++ b/lisp/gnus/gnus-cite.el | |||
| @@ -571,7 +571,8 @@ longer than the frame width." | |||
| 571 | columns) | 571 | columns) |
| 572 | (goto-char (point-min)) | 572 | (goto-char (point-min)) |
| 573 | (while (not (eobp)) | 573 | (while (not (eobp)) |
| 574 | (forward-char (length prefix)) | 574 | (unless (> (length prefix) (- (point-max) (point))) |
| 575 | (forward-char (length prefix))) | ||
| 575 | (skip-chars-forward " \t") | 576 | (skip-chars-forward " \t") |
| 576 | (unless (eolp) | 577 | (unless (eolp) |
| 577 | (let ((elem (assq (current-column) columns))) | 578 | (let ((elem (assq (current-column) columns))) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 7de7a0a4a26..0f49ed84fac 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -9330,41 +9330,26 @@ to save in." | |||
| 9330 | (ps-despool filename)) | 9330 | (ps-despool filename)) |
| 9331 | 9331 | ||
| 9332 | (defun gnus-print-buffer () | 9332 | (defun gnus-print-buffer () |
| 9333 | (let ((buffer (generate-new-buffer " *print*"))) | 9333 | (let ((ps-left-header |
| 9334 | (unwind-protect | 9334 | (list |
| 9335 | (progn | 9335 | (concat "(" |
| 9336 | (copy-to-buffer buffer (point-min) (point-max)) | 9336 | (gnus-summary-print-truncate-and-quote |
| 9337 | (set-buffer buffer) | 9337 | (mail-header-subject gnus-current-headers) |
| 9338 | (gnus-remove-text-with-property 'gnus-decoration) | 9338 | 66) ")") |
| 9339 | (when (gnus-visual-p 'article-highlight 'highlight) | 9339 | (concat "(" |
| 9340 | ;; Copy-to-buffer doesn't copy overlay. So redo | 9340 | (gnus-summary-print-truncate-and-quote |
| 9341 | ;; highlight. | 9341 | (mail-header-from gnus-current-headers) |
| 9342 | (let ((gnus-article-buffer buffer)) | 9342 | 45) ")"))) |
| 9343 | (gnus-article-highlight-citation t) | 9343 | (ps-right-header |
| 9344 | (gnus-article-highlight-signature) | 9344 | (list |
| 9345 | (gnus-article-emphasize) | 9345 | "/pagenumberstring load" |
| 9346 | (gnus-article-delete-invisible-text))) | 9346 | (concat "(" |
| 9347 | (let ((ps-left-header | 9347 | (mail-header-date gnus-current-headers) ")")))) |
| 9348 | (list | 9348 | (gnus-run-hooks 'gnus-ps-print-hook) |
| 9349 | (concat "(" | 9349 | (save-excursion |
| 9350 | (gnus-summary-print-truncate-and-quote | 9350 | (if ps-print-color-p |
| 9351 | (mail-header-subject gnus-current-headers) | 9351 | (ps-spool-buffer-with-faces) |
| 9352 | 66) ")") | 9352 | (ps-spool-buffer))))) |
| 9353 | (concat "(" | ||
| 9354 | (gnus-summary-print-truncate-and-quote | ||
| 9355 | (mail-header-from gnus-current-headers) | ||
| 9356 | 45) ")"))) | ||
| 9357 | (ps-right-header | ||
| 9358 | (list | ||
| 9359 | "/pagenumberstring load" | ||
| 9360 | (concat "(" | ||
| 9361 | (mail-header-date gnus-current-headers) ")")))) | ||
| 9362 | (gnus-run-hooks 'gnus-ps-print-hook) | ||
| 9363 | (save-excursion | ||
| 9364 | (if ps-print-color-p | ||
| 9365 | (ps-spool-buffer-with-faces) | ||
| 9366 | (ps-spool-buffer))))) | ||
| 9367 | (kill-buffer buffer)))) | ||
| 9368 | 9353 | ||
| 9369 | (defun gnus-summary-show-complete-article () | 9354 | (defun gnus-summary-show-complete-article () |
| 9370 | "Show a complete version of the current article. | 9355 | "Show a complete version of the current article. |