From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83409 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: eww Date: Tue, 25 Jun 2013 15:27:53 +0200 Organization: Probably a good idea Message-ID: References: <87d2rkb1pi.fsf@fleche.redhat.com> <87y5a755e4.fsf@mail.jurta.org> <87sj06fxet.fsf@yun.yagibdah.de> <87obaumugf.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372166938 16314 80.91.229.3 (25 Jun 2013 13:28:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 13:28:58 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31669@lists.math.uh.edu Tue Jun 25 15:28:58 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 1UrTIn-00022b-D5 for ding-account@gmane.org; Tue, 25 Jun 2013 15:28:57 +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 1UrTI4-0000Gm-Q5; Tue, 25 Jun 2013 08:28:12 -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 1UrTI3-0000Ga-Kr for ding@lists.math.uh.edu; Tue, 25 Jun 2013 08:28:11 -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 1UrTI1-0004O3-FA for ding@lists.math.uh.edu; Tue, 25 Jun 2013 08:28:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UrTHz-0004Sh-HC for ding@gnus.org; Tue, 25 Jun 2013 15:28:07 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UrTHy-0001OO-65 for ding@gnus.org; Tue, 25 Jun 2013 15:28:06 +0200 Original-Received: from steria10.steria.no ([195.204.41.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jun 2013 15:28:06 +0200 Original-Received: from sb by steria10.steria.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jun 2013 15:28:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: steria10.steria.no Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:cbJT5xZzOlSnXrO7gXRDPbaQmO4= X-Spam-Score: -3.2 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83409 Archived-At: >>>>> Tassilo Horn : > 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... It would be ok to respect the MIME-type if available. (Of course, sometimes the PDF comes as application/octet-stream because the client will sniff the file anyway and use heuristics to determine how to view it... so it all "works" fine the way it is...)