From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Please install: Some improvements to doc-view.el Date: Tue, 16 Oct 2007 15:09:54 -0400 Message-ID: References: <87bqbhkhc6.fsf@baldur.tsdh.de> <58152.128.165.0.81.1191330286.squirrel@webmail.lanl.gov> <878x6ljwb4.fsf@baldur.tsdh.de> <87fy0r2u3z.fsf@baldur.tsdh.de> <87wsu1sear.fsf@baldur.tsdh.de> <878x6gqqfa.fsf@baldur.tsdh.de> <87abqt2x52.fsf@jurta.org> <87bqb8rmk2.fsf@jurta.org> <87ejfwgf5k.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192561873 24823 80.91.229.12 (16 Oct 2007 19:11:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2007 19:11:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 16 21:11:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ihroc-0006MH-Ur for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 21:10:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhroV-0002j8-NH for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 15:10:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ihrni-0001kU-DX for emacs-devel@gnu.org; Tue, 16 Oct 2007 15:09:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ihrnf-0001hQ-Sr for emacs-devel@gnu.org; Tue, 16 Oct 2007 15:09:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ihrnf-0001gt-Bv for emacs-devel@gnu.org; Tue, 16 Oct 2007 15:09:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ihrnf-0003cw-66 for emacs-devel@gnu.org; Tue, 16 Oct 2007 15:09:55 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Ihrne-0001NZ-Nl; Tue, 16 Oct 2007 15:09:54 -0400 In-reply-to: <87ejfwgf5k.fsf@jurta.org> (message from Juri Linkov on Tue, 16 Oct 2007 02:45:11 +0300) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81015 Archived-At: > Ok, but when mailcap finds these kinds of documents, > should it run the external program or should it use doc-view? I think on Gnus attachments of PDF/PS/DVI files it should now use doc-view. What do others think about this question? Does anyone disagree with that? > This seems to be a suggestion for changing the Gnus mailcap > feature. Is that right? No, the mailcap feature only returns the names of the external programs. So how to use them is a matter of other packages. Gnus always runs the first found program to view the Gnus attachment. Is there a difference between "the mailcap feature" and "deciding what to do based on mime types"? In your other message you said that it can specify a Lisp expression instead of an external program. If we want Gnus to use doc-view, we would do it that way, right? However, I think Dired should get programs names from the mailcap feature, and present them in the minibuffer activated by ! in Dired to allow the user select the desired program. The usual thing we want Dired to do with a PDF/PS/DVI file is doc-view. But you can do that by typing RET or e. Therefore, it is ok if ! always offers the external program. By contrast, you and I am proposing that Gnus prefer doc-view to the external program, for these files.