From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Please install: Some improvements to doc-view.el Date: Tue, 16 Oct 2007 02:45:11 +0300 Organization: JURTA Message-ID: <87ejfwgf5k.fsf@jurta.org> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192494085 15832 80.91.229.12 (16 Oct 2007 00:21:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2007 00:21:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 16 02:21:14 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 1IhZfD-00038y-4Q for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 01:47:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhZf6-0006kn-0g for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2007 19:47:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhZf2-0006kT-5T for emacs-devel@gnu.org; Mon, 15 Oct 2007 19:47:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhZf0-0006js-II for emacs-devel@gnu.org; Mon, 15 Oct 2007 19:47:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhZf0-0006jo-Bc for emacs-devel@gnu.org; Mon, 15 Oct 2007 19:47:46 -0400 Original-Received: from mailman.kiev.sovam.com ([89.162.150.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IhZeu-0001A2-0U; Mon, 15 Oct 2007 19:47:40 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by mailman.kiev.sovam.com with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IhcSL-000HgX-QK; Tue, 16 Oct 2007 02:46:53 +0000 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IhZer-0003RH-1d; Tue, 16 Oct 2007 02:47:37 +0300 In-Reply-To: (Richard Stallman's message of "Sun\, 14 Oct 2007 21\:37\:39 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Scanner-Signature: 7b1a4900bea4ee3727a65c989d5962bc X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1612 [Oct 15 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 25 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) 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:80971 Archived-At: > I think both methods are very useful. > > Why are they both useful? The mailcap feature is useful to get the names of the external programs. Doc-view is useful to view rendered images of PDF/PS/DVI files in a Emacs buffer. > The Gnus mailcap mechanism provides several alternatives of external > programs to run. There are many different file types associated with > programs in the mailcap file, not only documents supported by doc-view. > > 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. > But I think a better way would be to allow the user to select the > preferred program, inspect the command line and be able to edit the > command line before running a command. This can be achieved by putting > program names found by the Gnus mailcap mechanism to the default value > in the minibuffer activated after typing ! in Dired. > > 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. 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. -- Juri Linkov http://www.jurta.org/emacs/