From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#4377: marked as done (allow one to still choose xpdf instead of doc-view) Date: Mon, 14 Sep 2009 09:13:26 +0200 Message-ID: <87k5022e3t.fsf@thinkpad.tsdh.de> References: <87skerbnu4.fsf@cyd.mit.edu> <878wgpb89x.fsf@jidanni.org> Reply-To: Tassilo Horn , 4377@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252913255 652 80.91.229.12 (14 Sep 2009 07:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 07:27:35 +0000 (UTC) Cc: 4377@emacsbugs.donarmstrong.com, Chong Yidong , jidanni@jidanni.org, Leo , yamaoka@jpl.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 14 09:27:26 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 1Mn5y7-0000D8-NJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 09:27:24 +0200 Original-Received: from localhost ([127.0.0.1]:34992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn5y6-0002kW-4B for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 03:27:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mn5xz-0002kR-2O for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 03:27:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mn5xu-0002k2-Fo for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 03:27:14 -0400 Original-Received: from [199.232.76.173] (port=50275 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn5xu-0002jx-7t for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 03:27:10 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:30019) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mn5xt-0008DH-MU for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 03:27:09 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mn5xs-0001eV-Ne for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 03:27:09 -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 n8E7R0pL025079; Mon, 14 Sep 2009 00:27:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8E7K44j023891; Mon, 14 Sep 2009 00:20:04 -0700 Resent-Date: Mon, 14 Sep 2009 00:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tassilo Horn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Sep 2009 07:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4377 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4377-submit@emacsbugs.donarmstrong.com id=B4377.125291240922888 (code B ref 4377); Mon, 14 Sep 2009 07:20:04 +0000 Original-Received: (at 4377) by emacsbugs.donarmstrong.com; 14 Sep 2009 07:13:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E7DRpv022885 for <4377@emacsbugs.donarmstrong.com>; Mon, 14 Sep 2009 00:13:29 -0700 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 50B8678A140E; Mon, 14 Sep 2009 09:13:27 +0200 (CEST) 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 04390-03; Mon, 14 Sep 2009 09:13:26 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (wlan-177.uni-koblenz.de [141.26.93.177]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 3493578A141D; Mon, 14 Sep 2009 09:13:26 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Sun, 13 Sep 2009 21:31:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Mon, 14 Sep 2009 03:27:14 -0400 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:31080 Archived-At: Stefan Monnier writes: >> I wonder if it is better not to include doc-view-mode in >> auto-mode-alist. Personally, I can't think of an occasion that I >> would like doc-view mode to view my pdf files except, perhaps, to >> brag about Emacs's capability. > > Is it really better to show the actual underlying PDF file's code in > fundamental-mode? If you don't want to view PDF files in Emacs, than > don't open them in Emacs. IMO, there should be some command in dired to open a file with an external program. The `!' command is not appropriate here, cause it blocks emacs till the command finishes. I have this code in my .emacs for that (and bound it to `e' in dired-mode-map): --8<---------------cut here---------------start------------->8--- (defun th-dired-find-file-externally (arg) "Open file or directory with an external application. If ARG is given use `xdg-open', else query for an app." (interactive "P") (let ((file (dired-get-file-for-visit))) (start-process "dired-external" nil (if arg "xdg-open" (completing-read "Command: " th-external-command-list)) file))) --8<---------------cut here---------------end--------------->8--- th-external-command-list is a list of all executables in PATH, which I use in several places. I think that could be taken out. A default value with the appropriate external app taken from mailcap could be used instead.