Vagn Johansen <[email protected]> writes:

Hi Vagn,

> Does anyone know if it is possible to use doc-view(*) mode with gnus?

I know that! ;-)

It's not possible to inline the PDF images, but as a workaround you
could write your own command that saves the pdf part in a temp file and
opens that with emacs.

This is not tested, but might work:

--8<---------------cut here---------------start------------->8---
(defun th-gnus-mime-view-internally ()
  (interactive)
  (gnus-article-check-buffer)
  (let ((data (get-text-property (point) 'gnus-data)))
    (when data
      (let ((f (make-temp-file "mime-part" nil ".pdf")))
        (mm-save-part-to-file data f)
        (find-file f)))))
--8<---------------cut here---------------end--------------->8---

Bind it to some nice key in `gnus-article-mode-map' and have fun.

Bye,
Tassilo



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to