(gnus-summary-show-article): Take `t' as the arg to mean "raw".
[gnus] / lisp / gnus-sum.el
index 2e793dd..aed707d 100644 (file)
@@ -9330,38 +9330,26 @@ to save in."
   (ps-despool filename))
 
 (defun gnus-print-buffer ()
-  (let ((buffer (current-buffer)))
-    (with-temp-buffer
-      (insert-buffer-substring buffer)
-      (gnus-remove-text-with-property 'gnus-decoration)
-      (when (gnus-visual-p 'article-highlight 'highlight)
-       ;; Copy-to-buffer doesn't copy overlays.  So redo the
-       ;; highlighting.
-       (let ((gnus-article-buffer buffer))
-         (gnus-article-highlight-citation t)
-         (gnus-article-highlight-signature)
-         (gnus-article-emphasize)
-         (gnus-article-delete-invisible-text)))
-      (let ((ps-left-header
-            (list
-             (concat "("
-                     (gnus-summary-print-truncate-and-quote
-                      (mail-header-subject gnus-current-headers)
-                      66) ")")
-             (concat "("
-                     (gnus-summary-print-truncate-and-quote
-                      (mail-header-from gnus-current-headers)
-                      45) ")")))
-           (ps-right-header
-            (list
-             "/pagenumberstring load"
-             (concat "("
-                     (mail-header-date gnus-current-headers) ")"))))
-       (gnus-run-hooks 'gnus-ps-print-hook)
-       (save-excursion
-         (if ps-print-color-p
-             (ps-spool-buffer-with-faces)
-           (ps-spool-buffer)))))))
+  (let ((ps-left-header
+        (list
+         (concat "("
+                 (gnus-summary-print-truncate-and-quote
+                  (mail-header-subject gnus-current-headers)
+                  66) ")")
+         (concat "("
+                 (gnus-summary-print-truncate-and-quote
+                  (mail-header-from gnus-current-headers)
+                  45) ")")))
+       (ps-right-header
+        (list
+         "/pagenumberstring load"
+         (concat "("
+                 (mail-header-date gnus-current-headers) ")"))))
+    (gnus-run-hooks 'gnus-ps-print-hook)
+    (save-excursion
+      (if ps-print-color-p
+         (ps-spool-buffer-with-faces)
+       (ps-spool-buffer)))))
 
 (defun gnus-summary-show-complete-article ()
   "Show a complete version of the current article.
@@ -9435,7 +9423,8 @@ C-u g', show the raw article."
    ((not arg)
     ;; Select the article the normal way.
     (gnus-summary-select-article nil 'force))
-   ((equal arg '(16))
+   ((or (equal arg '(16))
+       (eq arg t))
     ;; C-u C-u g
     ;; We have to require this here to make sure that the following
     ;; dynamic binding isn't shadowed by autoloading.