unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 4377@emacsbugs.donarmstrong.com,
	Chong Yidong <cyd@stupidchicken.com>,
	jidanni@jidanni.org, Leo <sdl.web@gmail.com>,
	yamaoka@jpl.org
Subject: bug#4377: marked as done (allow one to still choose xpdf instead of doc-view)
Date: Mon, 14 Sep 2009 09:13:26 +0200	[thread overview]
Message-ID: <87k5022e3t.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <mailman.6626.1252892829.2239.bug-gnu-emacs@gnu.org> (Stefan Monnier's message of "Sun, 13 Sep 2009 21:31:15 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I wonder if it is better not to include doc-view-mode in
>> auto-mode-alist.  Personally, I can't think of an occasion that I
>> would like doc-view mode to view my pdf files except, perhaps, to
>> brag about Emacs's capability.
>
> Is it really better to show the actual underlying PDF file's code in
> fundamental-mode?  If you don't want to view PDF files in Emacs, than
> don't open them in Emacs.

IMO, there should be some command in dired to open a file with an
external program.  The `!' command is not appropriate here, cause it
blocks emacs till the command finishes.  I have this code in my .emacs
for that (and bound it to `e' in dired-mode-map):

--8<---------------cut here---------------start------------->8---
(defun th-dired-find-file-externally (arg)
  "Open file or directory with an external application.
If ARG is given use `xdg-open', else query for an app."
  (interactive "P")
  (let ((file (dired-get-file-for-visit)))
    (start-process "dired-external"
                   nil
                   (if arg
                       "xdg-open"
                     (completing-read "Command: "
                                      th-external-command-list))
                   file)))
--8<---------------cut here---------------end--------------->8---

th-external-command-list is a list of all executables in PATH, which I
use in several places.  I think that could be taken out.  A default
value with the appropriate external app taken from mailcap could be
used instead.





  parent reply	other threads:[~2009-09-14  7:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87skerbnu4.fsf@cyd.mit.edu>
     [not found] ` <878wgpb89x.fsf@jidanni.org>
2009-09-13  2:10   ` bug#4377: marked as done (allow one to still choose xpdf instead of doc-view) Emacs bug Tracking System
2009-09-13 15:10     ` Leo
2009-09-13 15:21       ` jidanni
2009-09-14  1:31       ` Stefan Monnier
2009-09-14 14:55         ` James Cloos
2009-09-15 13:31           ` Chong Yidong
2009-09-16  1:01             ` Stefan Monnier
     [not found]           ` <mailman.6712.1253022430.2239.bug-gnu-emacs@gnu.org>
2009-09-15 19:25             ` Tassilo Horn
     [not found]       ` <mailman.6626.1252892829.2239.bug-gnu-emacs@gnu.org>
2009-09-14  7:13         ` Tassilo Horn [this message]
2009-09-14 15:27           ` Stefan Monnier
2009-09-14 18:09             ` Tassilo Horn

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=87k5022e3t.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=4377@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=jidanni@jidanni.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=sdl.web@gmail.com \
    --cc=yamaoka@jpl.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).