From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83397 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: eww Date: Tue, 25 Jun 2013 11:05:20 +0200 Message-ID: <87obaumugf.fsf@thinkpad.tsdh.de> References: <87d2rkb1pi.fsf@fleche.redhat.com> <87y5a755e4.fsf@mail.jurta.org> <87sj06fxet.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372151210 586 80.91.229.3 (25 Jun 2013 09:06:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 09:06:50 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31657@lists.math.uh.edu Tue Jun 25 11:06:48 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrPD5-0007DF-DL for ding-account@gmane.org; Tue, 25 Jun 2013 11:06:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1UrPBl-00078P-0T; Tue, 25 Jun 2013 04:05:25 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1UrPBj-00078H-Uw for ding@lists.math.uh.edu; Tue, 25 Jun 2013 04:05:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UrPBi-0003Na-2l for ding@lists.math.uh.edu; Tue, 25 Jun 2013 04:05:23 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UrPBg-0006Py-Km for ding@gnus.org; Tue, 25 Jun 2013 11:05:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 9ACC11A829B for ; Tue, 25 Jun 2013 11:05:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6h991S6ExHju for ; Tue, 25 Jun 2013 11:05:20 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 4035A1A8250 for ; Tue, 25 Jun 2013 11:05:20 +0200 (CEST) Mail-Followup-To: ding@gnus.org In-Reply-To: <87sj06fxet.fsf@yun.yagibdah.de> (lee@yun.yagibdah.de's message of "Tue, 25 Jun 2013 09:43:22 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -3.5 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83397 Archived-At: lee writes: Hi! > Another question: Emacs can display PDF nicely. When I browse to a > PDF with eww, I get the raw data displayed. It would be cool if eww > would display PDF as PDF :) When seeing the raw PDF, just do `M-x doc-view-mode' and you'll get the rendered version. The reason it's not shows by default is that `doc-view-mode' usually gets triggered by the PDF file extension in `auto-mode-alist', but the *eww* buffer isn't associated with a file. Maybe we could add an entry to `magic-mode-alist' that triggers `doc-view-mode-maybe' if a file starts with %PDF- but I'm not sure if that would lead to false positives... Another issue with eww <-> doc-view interaction is that once `doc-view-mode' is enabled in the *eww* buffer, you cannot go back anymore. I think it would be a good idea if eww created new buffers for things it can't handle on its own (so everything except for HTML). Bye, Tassilo