From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: dired-view-command-alist Date: Tue, 04 Jan 2005 11:03:48 +0200 Organization: JURTA Message-ID: <878y79hccd.fsf@jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104830807 9153 80.91.229.6 (4 Jan 2005 09:26:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 09:26:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 04 10:26:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ClkxY-0001jv-00 for ; Tue, 04 Jan 2005 10:26:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cll8k-00064b-Kf for ged-emacs-devel@m.gmane.org; Tue, 04 Jan 2005 04:38:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cll4H-0004YJ-Jr for emacs-devel@gnu.org; Tue, 04 Jan 2005 04:33:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cll4F-0004Xm-UF for emacs-devel@gnu.org; Tue, 04 Jan 2005 04:33:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cll4F-0004XZ-1G for emacs-devel@gnu.org; Tue, 04 Jan 2005 04:33:31 -0500 Original-Received: from [194.126.101.98] (helo=MXR-2.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ClkpA-0001sR-Fn; Tue, 04 Jan 2005 04:17:56 -0500 Original-Received: from mail.neti.ee (80-235-33-180-dsl.mus.estpak.ee [80.235.33.180]) by MXR-2.estpak.ee (Postfix) with ESMTP id 05AF9151502; Tue, 4 Jan 2005 11:17:42 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 03 Jan 2005 22:38:23 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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: main.gmane.org gmane.emacs.devel:31802 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31802 Richard Stallman writes: > The plan is to replace that with a better implementation that already > exists. The plan to replace that with Gnus mailcap functions has several problems: 1. Moving MIME-related files out of Gnus and eliminating the dependencies is a too drastic change. Maybe at least now we could put code that uses Gnus functions in dired.el and call it conditionally when `mailcap' and `mm-decode' are available? 2. Mailcap may contain different commands for viewing a file. Before running one of them, dired should ask the user which command to run. Even if there is only one command, dired should ask for confirmation and allow the user to edit that command. A user interface for that already exists in `dired-guess-default' in dired-x.el. But there is one difference: dired uses ? and * to substitute file names in shell commands, while mailcap uses %s. Using %s instead of special markers ? and * in Dired shell commands might solve the problem of their ambiguity where the same symbol is used for the list of Dired file names or shell wildcards. 3. Usually a list of commands in mailcap is incomplete. Dired should provide an option to extend it. A good starting point is `dired-guess-shell-alist-default' in dired-x. -- Juri Linkov http://www.jurta.org/emacs/