unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: dired-view-command-alist
Date: Tue, 04 Jan 2005 11:03:48 +0200	[thread overview]
Message-ID: <878y79hccd.fsf@jurta.org> (raw)
In-Reply-To: <E1ClfWZ-0007ss-5n@fencepost.gnu.org> (Richard Stallman's message of "Mon, 03 Jan 2005 22:38:23 -0500")

Richard Stallman <rms@gnu.org> 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/

  reply	other threads:[~2005-01-04  9:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03 19:27 dired-view-command-alist Sam Steingold
2005-01-04  3:38 ` dired-view-command-alist Richard Stallman
2005-01-04  9:03   ` Juri Linkov [this message]
2005-01-05  3:30     ` dired-view-command-alist Richard Stallman
2005-01-04 14:38   ` dired-view-command-alist Sam Steingold
2005-01-04 19:54     ` dired-view-command-alist Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-09-27  2:00 dired-view-command-alist Reinhard Kotucha
2004-09-27  3:44 ` dired-view-command-alist Miles Bader
2004-09-27 14:54 ` dired-view-command-alist Richard Stallman
2004-10-02 20:33   ` dired-view-command-alist Juri Linkov
2004-10-04 15:17     ` dired-view-command-alist Richard Stallman
2004-10-05  0:31       ` dired-view-command-alist Reinhard Kotucha
2004-10-05  7:43         ` dired-view-command-alist Miles Bader
2004-10-05  8:05           ` dired-view-command-alist David Kastrup
2004-10-05  8:42             ` dired-view-command-alist Miles Bader
2004-10-05 21:14             ` dired-view-command-alist Reinhard Kotucha
2004-10-06 17:10             ` dired-view-command-alist Richard Stallman
2004-10-05 13:38           ` dired-view-command-alist Robert J. Chassell
2004-10-05 21:41           ` dired-view-command-alist Reinhard Kotucha
2004-10-06  1:31             ` dired-view-command-alist Miles Bader
2004-10-06  5:29         ` dired-view-command-alist Richard Stallman
2004-10-06 19:17           ` dired-view-command-alist Reinhard Kotucha
2004-10-07 16:45             ` dired-view-command-alist Richard Stallman
2004-10-07  6:00         ` dired-view-command-alist Juri Linkov
2004-10-08 15:51         ` dired-view-command-alist Kai Grossjohann
2004-10-08 18:48           ` dired-view-command-alist Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878y79hccd.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).