From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: 43318@debbugs.gnu.org
Subject: bug#43318: Unable to open remote pdf directly with eww
Date: Thu, 10 Sep 2020 22:51:04 +0200 [thread overview]
Message-ID: <878sdh5paf.fsf@gnus.org> (raw)
In-Reply-To: <87d02t5ruq.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 10 Sep 2020 21:55:41 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> In that case, it should try using a different pdf viewer, but I'm not
> quite sure how that's handled. mailcap should probably be consulted?
Oh, that is what it's doing:
(defun mailcap-view-mime (type)
"View the data in the current buffer that has MIME type TYPE.
`mailcap--computed-mime-data' determines the method to use."
(let ((method (mailcap-mime-info type)))
(if (stringp method)
(shell-command-on-region (point-min) (point-max)
;; Use stdin as the "%s".
(format method "-")
(current-buffer)
t)
(funcall method))))
eww puts the pdf data in a buffer and calls (for instance) "xpdf -" on
the data.
But this'll fail for most pdf viewers -- most of them don't read from
stdin, so this seems like a pretty gross hack...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-09-10 20:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-10 19:39 bug#43318: Unable to open remote pdf directly with eww Stefan Kangas
2020-09-10 19:55 ` Lars Ingebrigtsen
2020-09-10 20:51 ` Lars Ingebrigtsen [this message]
2020-09-10 21:25 ` Stefan Kangas
2020-09-11 12:07 ` Lars Ingebrigtsen
2020-10-02 14:31 ` Stefan Kangas
2020-10-02 14:32 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878sdh5paf.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=43318@debbugs.gnu.org \
--cc=stefan@marxist.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).