emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please install: Some improvements to doc-view.el


From: Juri Linkov
Subject: Re: Please install: Some improvements to doc-view.el
Date: Wed, 17 Oct 2007 02:52:01 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> 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?

Yes, it seems this is just a matter of adding

     ("application/postscript"
      (viewer . doc-view-mode)
      (test   . (fboundp 'doc-view-mode))
      (type   . "application/postscript"))
     ("application/pdf"
      (viewer . doc-view-mode)
      (test   . (fboundp 'doc-view-mode))
      (type   . "application/pdf"))
     ("application/dvi"
      (viewer . doc-view-mode)
      (test   . (fboundp 'doc-view-mode))
      (type   . "application/dvi"))

to `mailcap-mime-data'.

>       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.

I agree.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]