From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.bugs Subject: bug#19270: 25.0.50; Make PDF Mode in EWW customizable Date: Fri, 5 Dec 2014 12:02:13 +0100 Message-ID: <4277296C-E82D-41DF-9114-C460BE30EF66@lunaryorn.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417777401 20805 80.91.229.3 (5 Dec 2014 11:03:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 11:03:21 +0000 (UTC) Cc: 19270@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 05 12:03:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XwqfK-0005ic-J7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2014 12:03:14 +0100 Original-Received: from localhost ([::1]:49741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwqfK-0007dj-8Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2014 06:03:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwqfD-0007dd-79 for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2014 06:03:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xwqf8-0002Sj-5A for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2014 06:03:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwqf8-0002Se-1g for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2014 06:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xwqf7-00072B-PK for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2014 06:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Wiesner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Dec 2014 11:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19270 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19270-submit@debbugs.gnu.org id=B19270.141777734026990 (code B ref 19270); Fri, 05 Dec 2014 11:03:01 +0000 Original-Received: (at 19270) by debbugs.gnu.org; 5 Dec 2014 11:02:20 +0000 Original-Received: from localhost ([127.0.0.1]:54275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwqeR-00071G-Ga for submit@debbugs.gnu.org; Fri, 05 Dec 2014 06:02:19 -0500 Original-Received: from vega.uberspace.de ([95.143.172.245]:59946) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwqeO-000716-ND for 19270@debbugs.gnu.org; Fri, 05 Dec 2014 06:02:17 -0500 Original-Received: (qmail 30169 invoked from network); 5 Dec 2014 11:02:14 -0000 Original-Received: from localhost (HELO ?IPv6:2001:a60:1690:f801:41fa:538d:9033:761?) (127.0.0.1) by vega.uberspace.de with SMTP; 5 Dec 2014 11:02:14 -0000 In-Reply-To: X-Mailer: Apple Mail (2.1993) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96883 Archived-At: > Am 04.12.2014 um 17:20 schrieb Stefan Monnier = : >=20 >> Currently EWW uses `doc-view-mode' to view PDF data. This choice is >> hard-coded in `eww-display-pdf' and cannot be customized. >=20 > I wonder: do you sometimes prefer doc-view-mode? >=20 > If not, then rather than configuring EWW, you'd probably be better off > with a way to configure Emacs to always use my-pdf-mode for PDF files. That's not possible either. As I said, it's hard-coded in EWW = currently. > IOW, maybe adding configurability to EWW is good in itself, but I = think > your use case would be better served by a config elsewhere, which = would > cover EWW as well as other cases where we might want to view PDF = files. Well, whatever way you want, but just add a way to tell EWW what to use = for PDFs. But do we really need a new setting? I don't know EWW, so please excuse = me, if I'm asking a stupid question, but why does EWW not rely on = `auto-mode-alist'? Instead of using a generic buffer without a file = name, it could create a separate buffer and set it's name and file name = according to the URL of the PDF file, and then just use `set-auto-mode'. = Would that work, or am I missing something?=