From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18210 Path: news.gmane.org!not-for-mail From: Charles Philip Chan Newsgroups: gmane.emacs.gnus.user Subject: Re: Display attached pdf's with external view, not with doc-view-mode Date: Fri, 01 Apr 2016 12:38:27 -0400 Message-ID: <87k2khgu7w.fsf@bell.net> References: <8760w19xaf.fsf@iki.fi> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3252739519733547454==" X-Trace: ger.gmane.org 1459528783 24631 80.91.229.3 (1 Apr 2016 16:39:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 16:39:43 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Apr 01 18:39:35 2016 Return-path: Envelope-to: gegu-info-gnus-english@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 1am26e-0006zl-KA for gegu-info-gnus-english@m.gmane.org; Fri, 01 Apr 2016 18:39:32 +0200 Original-Received: from localhost ([::1]:45459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am26d-0005Pv-O3 for gegu-info-gnus-english@m.gmane.org; Fri, 01 Apr 2016 12:39:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am26b-0005PZ-Un for info-gnus-english@gnu.org; Fri, 01 Apr 2016 12:39:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1am26Y-0007Xp-Om for info-gnus-english@gnu.org; Fri, 01 Apr 2016 12:39:29 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am26Y-0007Xk-IM for info-gnus-english@gnu.org; Fri, 01 Apr 2016 12:39:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1am26R-0006sa-3n for info-gnus-english@gnu.org; Fri, 01 Apr 2016 18:39:19 +0200 Original-Received: from toroon017dw-lp140-03-845488723.dsl.bell.ca ([50.101.34.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Apr 2016 18:39:19 +0200 Original-Received: from cpchan by toroon017dw-lp140-03-845488723.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Apr 2016 18:39:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: toroon017dw-lp140-03-845488723.dsl.bell.ca X-Face: G; Z,`sm>)4t4LB/GUrgH$W`!AmfHMj,LG)Z}X0ax@s9:0>0)B&@vcm{v-le)wng)?|o]D\Z}0:6X User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:MwLIo3l4ge6CUOqxm7IiqqpuIiQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:18210 Archived-At: --===============3252739519733547454== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Teemu Likonen writes: > I've been using Emacs 25.0.92 for a while and noticed that Gnus has > started to display attached pdf files with doc-view-mode (inside Emacs) > instead of launching an external viewer. In mailcap-mime-data variable I > have external viewer (Okular) first for the application/pdf MIME type > but Gnus doesn't want to respect that. This is not a Gnus problem, but Emacs have changed to default to docview-mode for pdf files, ignoring mailcap. > How do configure Gnus to use external viewer for attached pdf files? ;;Remove doc-view so pdf will open with ocular (setcdr (assoc "application" mailcap-mime-data) (remove '("pdf" (viewer . doc-view-mode) (type . "application/pdf") (test eq window-system 'x)) (cdr (assoc "application" mailcap-mime-data)))) Charles =2D-=20 "If you want to travel around the world and be invited to speak at a lot of different places, just write a Unix operating system." (By Linus Torvalds) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlb+pAQACgkQ3epPyyKbwPYMdgCeKxSG2R9l+OKkrDgnLtxygbJx S3sAn1uROXyDU15ttreW1n5REP1e7q7M =9oot -----END PGP SIGNATURE----- --=-=-=-- --===============3252739519733547454== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline