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: Wed, 04 Nov 2020 00:23:39 +0000 Message-ID: <87lffi55ro.fsf@tcd.ie> References: <878sbmo6i0.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11423"; 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 Wed Nov 04 01:24:15 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 1ka6b0-0002rs-Ew for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 01:24:14 +0100 Original-Received: from localhost ([::1]:56416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka6az-0004iz-Bq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 19:24:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka6ao-0004ir-56 for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 19:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka6an-0003KV-Sx for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 19:24:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ka6an-0002Od-MU for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 19:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Nov 2020 00:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44338 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 44338-submit@debbugs.gnu.org id=B44338.16044494289192 (code B ref 44338); Wed, 04 Nov 2020 00:24:01 +0000 Original-Received: (at 44338) by debbugs.gnu.org; 4 Nov 2020 00:23:48 +0000 Original-Received: from localhost ([127.0.0.1]:46856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka6aa-0002OC-6h for submit@debbugs.gnu.org; Tue, 03 Nov 2020 19:23:48 -0500 Original-Received: from mail-wr1-f49.google.com ([209.85.221.49]:47000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka6aY-0002Nz-Nq for 44338@debbugs.gnu.org; Tue, 03 Nov 2020 19:23:47 -0500 Original-Received: by mail-wr1-f49.google.com with SMTP id k10so18937206wrw.13 for <44338@debbugs.gnu.org>; Tue, 03 Nov 2020 16:23:46 -0800 (PST) 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:content-transfer-encoding; bh=yYOjoH8676E8AQYEIncE/b5ufE0clNKfiTsSLY0n8ns=; b=HM7P7H6cOTOZe/SfZzZXeyMfUOX5Q1gywLOXh5fTUePJy8BG2QdJz9eFBiDxnv7ztU iWwr9ax7ZU0D7uAz13MoWC6sa+vLTBZMN1pcehNGVNEX53q6NqPfMcTXvW0svhXmFKOL HIxiev+UE/WGk0+zBsfTpPExt+NsXwXzF1XsZ4SwSwzLozoH1MHT2BWTDip+y9v+uySP cdqRuxfbpiA8C+M9lYX0npXLPbMmdQ0XUo+x/gvdUWgiYlW3a9jd4hEzsfKP624uxqsP ag1gaDXDZMwQjo/nYQFacIUT3z0xArTVWjNW3+t/HZLnqn4XnBnEEE/9TYMHuAnprw/S e60g== 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:content-transfer-encoding; bh=yYOjoH8676E8AQYEIncE/b5ufE0clNKfiTsSLY0n8ns=; b=YIL5paiMndv4mhk5IBJioZvZlAA35bZmiRyVM8l2mKXv9UfxGqD6wxseYsqMq53/1o 6hOf/iPXk5bTYM9kjwQEShnkjA5pDuXOFYP8ELfuXgsFyK6tC7WMpf0TlFkJph5T+kxM 1XrANRI/b0xeG46Xwvo1rHDajc2qHL12555gsb9lKcqVJ1i/gVm3iHapwJe1Wlk4eO22 TKuiQahMbk50GBdRyaBlCnzGS7yNj9m+u7LjVTBe5gLr/Ck/Z0BN/cOvy9xEUeNylEXS wBhzRmCUZGIKF9JUbdCC/hCztB8i1H5i4J7SE4Y3r2/Z1bis8WAbFkXHPE9bdu20brny XqjA== X-Gm-Message-State: AOAM533Sk594SI8DsR5O0Q0cVA1N2FhQ1MRjkkfmImNpIf+pMzqb616y vUgyorH5Tx7x8/nhRqPDb37Q2w== X-Google-Smtp-Source: ABdhPJyTNLeQ7BBxCv6KMGHYJ2walAWp2oZ1+xp+VuFCiJtxbHLtf46bJ82ioeLrDIQgo41gEf+NRQ== X-Received: by 2002:a05:6000:18f:: with SMTP id p15mr22371807wrx.185.1604449420859; Tue, 03 Nov 2020 16:23:40 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id y4sm385368wmj.2.2020.11.03.16.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 16:23:40 -0800 (PST) In-Reply-To: (Nicholas Harrison's message of "Tue, 3 Nov 2020 16:52:40 -0700") 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:192655 Archived-At: Nicholas Harrison writes: > I'll make a couple more comments on the original problem I > explained. It looks like you may have identified additional > improvements in the process. > > I believe the first problem for me is that both mailcap-mime-data and > mailcap-user-mime-data are nil. This causes the `error in process > filter: mailcap-view-mime: Symbol=E2=80=99s function definition is void: = nil` > and makes the pdf download and appear in Fundamental mode. This occurs > whether I will be using doc-view-mode or pdf-view-mode. I'll use > DocView for the rest of this example. > > 1. emacs -Q > 2. M-x eww > 3. https://www.gnu.org/software/emacs/manual/pdf/emacs-xtra.pdf > > This results in the error message and the following: > image.png > > This can be (partially) corrected by running the following code before th= e steps 2 and 3: > (add-to-list 'mailcap-user-mime-data > '((type . "application/pdf") > (viewer . doc-view-mode))) > > This chooses a view mode for the pdf but that brings the second > problem. This selects the default encoding of raw-text and the > conversion fails: > > Instead I choose doc-view-mode manually for the eww pdf buffer: > > Then selecting binary for the encoding finally gets a viewable pdf: > > I hope this is in some way helpful. Thanks. I cannot reproduce these on what will be Emacs 27.2 or Emacs 28.1 on GNU/Linux. Perhaps they have been fixed already, or are specific to MS Windows. If someone on MS Windows could check whether they still occur on master and emacs-27, that would be helpful. --=20 Basil In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo versio= n 1.16.0, Xaw3d scroll bars) of 2020-11-03 built on thunk Repository revision: f9d6e463d310db0e1931f26609d938531c56f9c3 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure 'CC=3Dccache gcc' 'CFLAGS=3D-O2 -march=3Dnative' --config-cache --prefix=3D/home/blc/.local --with-x-toolkit=3Dlucid --with-file-notification=3Dyes --with-x' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 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 rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 51798 5028) (symbols 48 6742 1) (strings 32 18899 1840) (string-bytes 1 612322) (vectors 16 12192) (vector-slots 8 168066 8842) (floats 8 23 45) (intervals 56 221 0) (buffers 992 10))