unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: J G Miller <miller@yoyo.ORG>
To: help-gnu-emacs@gnu.org
Subject: Re: Dired command for a GUI browser?
Date: Thu, 21 Mar 2013 13:58:42 +0000 (UTC)	[thread overview]
Message-ID: <kif3mi$aau$1@dont-email.me> (raw)
In-Reply-To: 87vc8lar5w.fsf@engels.HistoricalMaterialism.info

On Thursday, March 21st, 2013, at 08:11:39h -0400, Haines Brown complained:

> I daily have to run the "! w3m" command on an .html file selected in
> dired. However these .html files are from a particular source, and their
> organization makes the w3m display very difficult to read. I am running
> Emacs under Debian Squeeze.
> 
> I would like to run a Firefox or Conkeror command on those files, but
> when I try "! firefox", Firebox starts but reports page not found. As
> best I can make out none of the emacs or dired extensions address this
> problem.

More than likely because doing the command manually done as

     firefox some_file.html

does not work if the command is launched from a directory
other than where the file is located.

Strangely enough if I used dired to navigate to a directory with an
.html file and then invoke firefox on the html file it does actually
show the html file in a new window of the browser.

Also remember that quite often the firefox binary is not called directly
but "firefox" invokes a shell script first which may set various things
before actually calling the binary which may well be located not under
bin but under lib in /usr/lib/firefox.  (All this depends on the 
GNU/Linux distribution being used.)

My suggestion would be to have a look at the web page at

<http://sachachua.COM/blog/2008/09/emacs-w3m-open-pages-in-external-browsers/>

to either invoke firefox from w3m or you will have to dig deeper into
the dired lisp to ensure that the full path to the file is passed to
firefox preferably with file:// prepended.



  reply	other threads:[~2013-03-21 13:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 12:11 Dired command for a GUI browser? Haines Brown
2013-03-21 13:58 ` J G Miller [this message]
     [not found] ` <kif7on$ctj$1@news.sap-ag.de>
2013-03-21 19:04   ` Haines Brown

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='kif3mi$aau$1@dont-email.me' \
    --to=miller@yoyo.org \
    --cc=help-gnu-emacs@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.
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).