From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#44338: 27.1; EWW can't download and view pdf Date: Sat, 31 Oct 2020 13:43:51 +0000 Message-ID: <878sbmo6i0.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14626"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44338@debbugs.gnu.org To: Nicholas Harrison Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 31 14:45:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYrBv-0003dJ-29 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 14:45:11 +0100 Original-Received: from localhost ([::1]:36140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYrBu-0003oy-03 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 09:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYrBm-0003oY-77 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 09:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYrBl-0005I4-Ty for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 09:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYrBl-0005Wb-RT for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 09:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Oct 2020 13:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44338 X-GNU-PR-Package: emacs Original-Received: via spool by 44338-submit@debbugs.gnu.org id=B44338.160415184321153 (code B ref 44338); Sat, 31 Oct 2020 13:45:01 +0000 Original-Received: (at 44338) by debbugs.gnu.org; 31 Oct 2020 13:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:60722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYrAp-0005V7-3l for submit@debbugs.gnu.org; Sat, 31 Oct 2020 09:44:03 -0400 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:51961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYrAm-0005UQ-3Q for 44338@debbugs.gnu.org; Sat, 31 Oct 2020 09:44:01 -0400 Original-Received: by mail-wm1-f47.google.com with SMTP id v5so5254478wmh.1 for <44338@debbugs.gnu.org>; Sat, 31 Oct 2020 06:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Duva6GnzBHkB/3hlY6nz+bNUZN7iuB0SdnFW2im+9m8=; b=DtdSojYOzWMXrVrYh3T6RHUt+D0NE7A8ciqQyhVmBe7t6p0A9vJZGVbSaK/PYXcq/J wsXNpNsI0vqakBMfIz0km0/kgqaB8Gtoas3yaQgkxfQ7HnBQWNcLp7ERvR9BkufcR7Bf E6lKkB2oM9bg5AidAdPkPLgfAST1BXafKg+I6D8/mp2LXiKnsKF3COaXVGlQR3IDJE8K sUmm1ukWQRXgFDL2fe7V9aP+xNi67mzCda4clEpWHdGkhMnKOF7Q+v4tN+FPd2dtvZFR 1AENXdtYwhElc93Z78iSZ1GqexYTThHk/IPhHAAZZ6ERIsgaXoC41Xb0kxmbt+4GhiSp HVHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Duva6GnzBHkB/3hlY6nz+bNUZN7iuB0SdnFW2im+9m8=; b=mduQzsppSXMLMc0YvDhbk91rQTyfYcYKF+VONfDqaBXko4X19aBzZ8N+uTIth9z66Z F3BxJqpWqXC6aMNN1CZ7nYQR3W4ClRefzVu6Og8hH2WpsWfpaSMzootYvVK6UY0Qyw/8 l6BT7ce/U9+dza0g88pVNgTkC7Vw21R8l2M+vdeHSalo3qTafNvIPxLdLlMnUwJuMC6t BT3JwZO8StU+0EDFNE03gYJL/2NDQ0xZEJYVKKwlq5QcRuR2t/d2QvLpy+Z/Yb3kQF62 kJzMVKFaj/Br8VtE/w3lLrUrxuHK4O71L4STr3iecYVylVxyFYGHqp4ddwo5ABBLsG4z XXWw== X-Gm-Message-State: AOAM530PvwNGeIGD1fP0ctfXy/gYN/pVOZv9f1m4UU3MflyZRK1geL2Z HU3lQsHHaxpahaQSAsXGdwsaiA== X-Google-Smtp-Source: ABdhPJx5jx4zz/zMUKufGMKJ75ekQBY1ofLw5yfKL/k3KGtzA7D9RKzcu2l4SjzxuKHyxmLt0/nXPw== X-Received: by 2002:a1c:bdc4:: with SMTP id n187mr8585136wmf.185.1604151834064; Sat, 31 Oct 2020 06:43:54 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id 130sm9090195wmd.18.2020.10.31.06.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 06:43:53 -0700 (PDT) In-Reply-To: (Nicholas Harrison's message of "Fri, 30 Oct 2020 16:20:19 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192269 Archived-At: Nicholas Harrison writes: > Using the EWW browser, I can navigate around to webpages, but navigating > to a pdf fails. It appears to download an unreadable pdf. Downloading > and viewing the pdf manually in emacs (pdf-view-mode) works fine. > > I've tried these solutions to no avail: > - Adding "application/pdf; emacsclient %s" to a ~/.mailcap file. This > makes the process hang indefinitely. > - Running the following elisp code: > `(add-to-list 'mailcap-user-mime-data > '((type . "application/pdf") > (viewer . pdf-view-mode)))` > This doesn't seem to have an effect. Seems to have been fixed on master: 1. emacs -Q 2. M-x eww RET https://www.gnu.org/software/emacs/manual/emacs.html RET 3. C-s extra pdf RET RET This opens the "Specialized Emacs Features" manual in a *eww pdf* buffer in doc-view-mode. With PDF Tools and the mailcap-user-mime-data setting above installed, it opens in pdf-view-mode instead. I'm surprised the setting for mailcap-user-mime-data is needed though, since pdf-view-mode appears before doc-view-mode in both mailcap-mime-data and my version of auto-mode-alist. Lars? -- Basil