Fixes: debbugs:19270
* net/eww.el (eww-display-pdf): Let mailcap determine how to
display PDF files.
interact with this DOM. See the Emacs Lisp manual for interface
details.
+*** `mailcap-mime-data' is now consulted when displaying PDF files.
+
** Message mode
*** text/html messages that contain inline image parts will be
+2014-12-05 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * net/eww.el (eww-display-pdf): Let mailcap determine how to
+ display PDF files (bug#19270).
+
2014-12-05 Juri Linkov <juri@linkov.net>
Compare with the most recent window by default.
(shr-put-image data nil))
(goto-char (point-min)))))
+(declare-function mailcap-view-mime "mailcap" (type))
(defun eww-display-pdf ()
(let ((data (buffer-substring (point) (point-max))))
(switch-to-buffer (get-buffer-create "*eww pdf*"))
(inhibit-read-only t))
(erase-buffer)
(insert data)
- (doc-view-mode)))
+ (mailcap-view-mime "application/pdf")))
(goto-char (point-min)))
(defun eww-setup-buffer ()