From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nicholas Harrison Newsgroups: gmane.emacs.bugs Subject: bug#44338: 27.1; EWW can't download and view pdf Date: Fri, 30 Oct 2020 16:20:19 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ecd46905b2eace4d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16182"; mail-complaints-to="usenet@ciao.gmane.io" To: 44338@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 23:21:11 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 1kYcli-00042D-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 23:21:10 +0100 Original-Received: from localhost ([::1]:53166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYclh-0006ZJ-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 18:21:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYclb-0006Z9-5J for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 18:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYcla-0005cE-Rk for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 18:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYcla-0003Lp-N9 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 18:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicholas Harrison Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 22:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44338 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160409645412842 (code B ref -1); Fri, 30 Oct 2020 22:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2020 22:20:54 +0000 Original-Received: from localhost ([127.0.0.1]:60057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYclR-0003L4-RQ for submit@debbugs.gnu.org; Fri, 30 Oct 2020 18:20:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYclP-0003Kw-Uv for submit@debbugs.gnu.org; Fri, 30 Oct 2020 18:20:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYclP-0006YK-On for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 18:20:51 -0400 Original-Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:43896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYclN-0005V3-5D for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 18:20:51 -0400 Original-Received: by mail-pg1-x52b.google.com with SMTP id r10so6362718pgb.10 for ; Fri, 30 Oct 2020 15:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CU1qkOjMhWWp7V7Aef3i1Llc8DkZM8CvyG8wlYvI1OI=; b=bvTsj20fGSQBEHAO2HdmHli9evMIt8ekxo8Wt5B2t65zimLe9j5dVcfOwn872Yev4J lRc4DkMPsIbv5mznol5ziiRpW75RIyift+wnDPyJMhf7i2p5vEFuEpRWSnhqSD+w0GO2 kFwbdkO56hMm8jP/Oo08xz3IadVuMykG1Ng8GgoYdk5QiOdJ5ZnZnxPV1OaG6q7ZCvfZ 6OYTu3DwIgoW5ObiH43W4T2GhMkHlqWaAmORCBeX4HoP6oK09Jq1nog25uw0gsdO5Yon QMJTK5Y0aHwCjOoMKmOyvFbB3wRkOvj6kGiqU91Km7I1aUFRxYnXMcEJ5q9ZxIxzdQJq ZbRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CU1qkOjMhWWp7V7Aef3i1Llc8DkZM8CvyG8wlYvI1OI=; b=HlzfNlds+iDHG6hoNwQ1mcTrOB7I4tnjWleQHrjbeHdU6H0O+8WD6IhoSql6V06tKk 5Q1o+JRIzgmQAxFlEKxksk4TV4AlqOHt7C+0rHdWFsswvxi5gRfu+gOhkLBBeVH1T7L8 R09oiDKaeNZj5Q0oKtm7gp5FbPo7xpWkuhka6KX1pq0WfobAtClBIJNZ+USOMUeBWAPF ZfD7DvFO6VWjVdmE5JvvhsN9tUvJtO6GIaRf5GtOUGNgOji5R/GDHu1Gp+Y7Ty3uJJQ2 KQxYDG/uK1wDzO1A+xH3BeJ+M3VWUbxQS72wprkN4Yh6kXRVxODW839jW89GqdofRW97 LRRg== X-Gm-Message-State: AOAM531+1g7JhzAU1eRRFSfMq5O7TSe0HzSJrPMQroS/T6QIT+u0Lu64 ULws6NGBxOH3nYGF4JVj/5FOA+FFQ06/uj2+jIR7xE13knGUqA== X-Google-Smtp-Source: ABdhPJyvgZCwZuvbG2VOxTRKlVo38Zi8YSsopFGlueemntWNd3/l8Bz8IOMI0XCkjsUzYcionN8s8CMD0fWJJq0vDJU= X-Received: by 2002:a63:4414:: with SMTP id r20mr3962942pga.141.1604096447270; Fri, 30 Oct 2020 15:20:47 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=nicholas.victoryofthepeople@gmail.com; helo=mail-pg1-x52b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:192214 Archived-At: --000000000000ecd46905b2eace4d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. --System Info-- In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-21 built on CIRROCUMULUS Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19041 System Description: Microsoft Windows 10 Home (v10.0.2004.19041.572) Recent messages: [yas] Prepared just-in-time loading of snippets successfully. For information about GNU Emacs and the GNU system, type C-h C-a. Contacting host: www.restek.com:443 error in process filter: mailcap-view-mime: Symbol=E2=80=99s function defin= ition is void: nil error in process filter: Symbol=E2=80=99s function definition is void: nil Making completion list... [2 times] Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Fundamental Minor modes in effect: pyvenv-mode: t shell-dirtrack-mode: t global-linum-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail gnutls network-stream url-http mail-parse rfc2231 url-gw nsm rmc url-cache url-auth eww mm-url gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr url-queue url url-proxy url-privacy url-expand url-methods url-history mailcap shr text-property-search url-cookie url-domsuf url-util puny svg xml dom cl-extra yasnippet highlight-indentation flymake-proc flymake warnings thingatpt company-capf company pcase help-fns radix-tree help-mode elpy advice edmacro kmacro elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django s elpy-refactor python tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat shell pcomplete parse-time iso8601 time-date format-spec ido grep compile comint ansi-color files-x etags fileloop generator xref project ring cus-edit cus-start cus-load wid-edit linum material-theme finder-inf package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 286983 9790) (symbols 48 22710 1) (strings 32 96281 3012) (string-bytes 1 2696643) (vectors 16 30701) (vector-slots 8 394315 14882) (floats 8 139 245) (intervals 56 410 0) (buffers 1000 15)) --000000000000ecd46905b2eace4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Using the EWW browser, I can navigate around to webpag= es, but navigating
to a pdf fails. It appears to download an unreadable = pdf. Downloading
and viewing the pdf manually in emacs (pdf-view-mode) w= orks fine.

I've tried these solutions to no avail:
- Adding &= quot;application/pdf; emacsclient %s" to a ~/.mailcap file. This
= =C2=A0 makes the process hang indefinitely.
- Running the following elis= p code:
=C2=A0 `(add-to-list 'mailcap-user-mime-data
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'((type . "app= lication/pdf")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(viewer . pdf-view-mode)))`
=C2=A0 This doesn't see= m to have an effect.


--System Info--
In GNU Emacs 27.1 (build= 1, x86_64-w64-mingw32)
=C2=A0of 2020-08-21 built on CIRROCUMULUS
Rep= ository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8
Repository br= anch: HEAD
Windowing system distributor 'Microsoft Corp.', versi= on 10.0.19041
System Description: Microsoft Windows 10 Home (v10.0.2004.= 19041.572)

Recent messages:
[yas] Prepared just-in-time loading o= f snippets successfully.
For information about GNU Emacs and the GNU sys= tem, type C-h C-a.
Contacting host: www.restek.com:443
error in process filter: mailcap-view-mime: Sym= bol=E2=80=99s function definition is void: nil
error in process filter: = Symbol=E2=80=99s function definition is void: nil
Making completion list= ... [2 times]

Configured using:
=C2=A0'configure --without-db= us --host=3Dx86_64-w64-mingw32
=C2=A0--without-compress-install 'CFL= AGS=3D-O2 -static''

Configured features:
XPM JPEG TIFF GI= F PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLK= IT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important sett= ings:
=C2=A0 value of $LANG: ENU
=C2=A0 locale-coding-system: cp1252<= br>
Major mode: Fundamental

Minor modes in effect:
=C2=A0 pyve= nv-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 global-linum-mode: t<= br>=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric= -indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 globa= l-font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-compositi= on-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mod= e: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

= Load-path shadows:
None found.

Features:
(shadow sort mail-ext= r emacsbug message dired dired-loaddefs rfc822 mml
mml-sec epa derived e= pg epg-config mm-decode mm-bodies mm-encode
mailabbrev gmm-utils mailhea= der sendmail gnutls network-stream url-http
mail-parse rfc2231 url-gw ns= m rmc url-cache url-auth eww mm-url gnus
nnheader gnus-util rmail rmail-= loaddefs rfc2047 rfc2045 ietf-drums
mail-utils mm-util mail-prsvr url-qu= eue url url-proxy url-privacy
url-expand url-methods url-history mailcap= shr text-property-search
url-cookie url-domsuf url-util puny svg xml do= m cl-extra yasnippet
highlight-indentation flymake-proc flymake warnings= thingatpt
company-capf company pcase help-fns radix-tree help-mode elpy= advice
edmacro kmacro elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt es= h-proc
esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-pro= file
elpy-django s elpy-refactor python tramp-sh tramp tramp-loaddefstrampver tramp-integration tramp-compat shell pcomplete parse-time
iso8= 601 time-date format-spec ido grep compile comint ansi-color files-x
eta= gs fileloop generator xref project ring cus-edit cus-start cus-load
wid-= edit linum material-theme finder-inf package easymenu browse-url
url-han= dlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loadde= fs password-cache json subr-x map url-vars seq byte-opt gv
bytecomp byte= -compile cconv cl-loaddefs cl-lib tooltip eldoc electric
uniquify ediff-= hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
disp-table term/w32= -win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-= opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-m= ode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer s= elect scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term= /tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-la= ng vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932= hebrew greek romanian slovak czech
european ethiopic indian cyrillic ch= inese composite charscript charprop
case-table epa-hook jka-cmpr-hook he= lp simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-= face macroexp files
text-properties overlay sha1 md5 base64 format env c= ode-pages mule
custom widget hashtable-print-readable backquote threads = w32notify w32
lcms2 multi-tty make-network-process emacs)

Memory = information:
((conses 16 286983 9790)
=C2=A0(symbols 48 22710 1)
= =C2=A0(strings 32 96281 3012)
=C2=A0(string-bytes 1 2696643)
=C2=A0(v= ectors 16 30701)
=C2=A0(vector-slots 8 394315 14882)
=C2=A0(floats 8 = 139 245)
=C2=A0(intervals 56 410 0)
=C2=A0(buffers 1000 15))
--000000000000ecd46905b2eace4d--