From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: J G Miller Newsgroups: gmane.emacs.help Subject: Re: Dired command for a GUI browser? Date: Thu, 21 Mar 2013 13:58:42 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <87vc8lar5w.fsf@engels.HistoricalMaterialism.info> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1363880687 19523 80.91.229.3 (21 Mar 2013 15:44:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 15:44:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 21 16:45:13 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIhft-0008Kz-Rm for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 16:45:05 +0100 Original-Received: from localhost ([::1]:37164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIhfW-0002h8-Bc for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 11:44:42 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Injection-Date: Thu, 21 Mar 2013 13:58:42 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="30a0f57c235b4c822d9d6fef9356d088"; logging-data="10590"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GXz4RFie0rjdbTRu2YXnYBJZon2KeZy4=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:Yl3GM+JbqbSd2FwnhCrPYSi3FHQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:197358 X-Mailman-Approved-At: Thu, 21 Mar 2013 11:42:21 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89634 Archived-At: 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 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.