From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4377: marked as done (allow one to still choose xpdf instead of doc-view) Date: Sun, 13 Sep 2009 02:10:05 +0000 Message-ID: References: <87skerbnu4.fsf@cyd.mit.edu> <878wgpb89x.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1252807805-4310-0" X-Trace: ger.gmane.org 1252808840 8930 80.91.229.12 (13 Sep 2009 02:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 02:27:20 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 13 04:27:13 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mmeo5-0004K1-7j for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 04:27:13 +0200 Original-Received: from localhost ([127.0.0.1]:56886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmeo4-0003xL-En for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Sep 2009 22:27:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mmenz-0003ws-Lt for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2009 22:27:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mmenu-0003vy-SH for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2009 22:27:07 -0400 Original-Received: from [199.232.76.173] (port=52948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmenu-0003vo-Hn for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2009 22:27:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37735) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mment-0005HS-Vl for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2009 22:27:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8D2QxQl006622; Sat, 12 Sep 2009 19:27:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8D2A529004331; Sat, 12 Sep 2009 19:10:05 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4377 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31028 Archived-At: This is a multi-part message in MIME format... ------------=_1252807805-4310-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 12 Sep 2009 22:06:11 -0400 with message-id <87skerbnu4.fsf@cyd.mit.edu> and subject line Re: allow one to still choose xpdf instead of doc-view has caused the Emacs bug report #4377, regarding allow one to still choose xpdf instead of doc-view to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4377: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4377 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1252807805-4310-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2009 18:28:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.9 required=4.0 tests=AWL,SARE_RECV_SPAM_DOMN0b autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n88ISqP6010616 for ; Tue, 8 Sep 2009 11:28:53 -0700 Received: from mx10.gnu.org ([199.232.76.166]:60556) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ml5Qx-0008HT-FX for emacs-pretest-bug@gnu.org; Tue, 08 Sep 2009 14:28:51 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ml5Qw-0006ZL-49 for emacs-pretest-bug@gnu.org; Tue, 08 Sep 2009 14:28:51 -0400 Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:57745 helo=homiemail-a4.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ml5Qv-0006YV-F9 for emacs-pretest-bug@gnu.org; Tue, 08 Sep 2009 14:28:49 -0400 Received: from jidanni.org (218-163-0-86.dynamic.hinet.net [218.163.0.86]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id 249B2418A0; Tue, 8 Sep 2009 11:28:44 -0700 (PDT) From: jidanni@jidanni.org To: yamaoka@jpl.org Cc: emacs-w3m@namazu.org, emacs-pretest-bug@gnu.org Subject: allow one to still choose xpdf instead of doc-view References: Date: Wed, 09 Sep 2009 02:28:42 +0800 Message-ID: <878wgpb89x.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) My god, that's tons and tons of lisp to add to one's .emacs file, just to say "I wish to have emacs still call xpdf when encountering a .pdf file, like back before they introduced doc-view". I'm filing an emacs-pretest-bug so they will make it easier to allow one to choose if one wants doc-view, or stick with xpdf. >>>>> "KY" == Katsumi Yamaoka writes: >>>>> jidanni@jidanni.org wrote: >> The only way to get xpdf called on them is via dired-do-shell-command, >> which knows about xpdf. KY> Is what you want the one like this? KY> (defadvice dired-view-file (around use-xpdf activate) KY> "Use xpdf to view a pdf file." KY> (unless (let ((file (dired-get-file-for-visit))) KY> (and (not (file-directory-p file)) KY> (let ((case-fold-search t)) KY> (string-match "\\.pdf\\'" file)) KY> (prog1 KY> t KY> (call-process "xpdf" nil nil nil file)))) KY> ad-do-it)) KY> The `v' key in the dired buffer uses xpdf to display a file iff KY> its extension is ".pdf". KY> Otherwise, KY> (autoload 'mailcap-parse-mailcaps "mailcap" nil t) KY> (autoload 'mm-mailcap-command "mm-decode") KY> (defadvice dired-view-file (around use-mailcap-mime-data activate) KY> "Use an external viewer to view a file according to `mailcap-mime-data'." KY> (unless (let ((file (dired-get-file-for-visit)) KY> extension type command) KY> (and (not (file-directory-p file)) KY> (progn KY> (mailcap-parse-mailcaps) KY> (setq extension (file-name-extension file))) KY> (setq type (mailcap-extension-to-mime extension)) KY> (setq command (mailcap-mime-info type)) KY> (setq command (mm-mailcap-command command file nil)) KY> (prog1 KY> t KY> (shell-command command)))) KY> ad-do-it)) KY> There will be other ELisp packages that use external viewers. KY> `gnus-dired-find-file-mailcap' is it, though it may not be your KY> taste. ------------=_1252807805-4310-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4377-done) by emacsbugs.donarmstrong.com; 13 Sep 2009 02:04:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8D24jFQ002818 for <4377-done@emacsbugs.donarmstrong.com>; Sat, 12 Sep 2009 19:04:46 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 1BDC257E259; Sat, 12 Sep 2009 22:06:11 -0400 (EDT) From: Chong Yidong To: jidanni@jidanni.org Cc: yamaoka@jpl.org, 4377-done@emacsbugs.donarmstrong.com Subject: Re: allow one to still choose xpdf instead of doc-view Date: Sat, 12 Sep 2009 22:06:11 -0400 Message-ID: <87skerbnu4.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > My god, that's tons and tons of lisp to add to one's .emacs file, just > to say "I wish to have emacs still call xpdf when encountering a .pdf > file, like back before they introduced doc-view". One line solution: (setq auto-mode-alist (rassq-delete-all 'doc-view-mode auto-mode-alist)) ------------=_1252807805-4310-0--