From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5387 Path: news.gmane.org!not-for-mail From: Steven Woody Newsgroups: gmane.emacs.gnus.user Subject: Re: Firefox/Mozilla default browser Date: Thu, 14 Jul 2005 02:47:52 +0800 Organization: Bentium Ltd. (CN99) Message-ID: <87fyui1r1j.fsf@narke.yellow.line> References: <87ackqabv5.fsf@mail.augustmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671113 27205 80.91.229.2 (31 Jan 2006 01:31:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:31:53 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:12 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!news.nask.pl!newsfeed.pionier.net.pl!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!narke.yellow.line!news Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 219.131.238.225 Original-X-Trace: mail.cn99.com 1121282598 93002 219.131.238.225 (13 Jul 2005 19:23:18 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Wed, 13 Jul 2005 19:23:18 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:485dEwvEtA+kfzOBLu3/ZF0SX4s= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5529 Original-Lines: 46 X-Gnus-Article-Number: 5529 Tue Jan 17 17:35:12 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5387 Archived-At: Lance Hoffmeyer writes: > Hey, > > I am having problems getting mozilla as my default browser. > I have put > > (setq browse-url-browser-function 'browse-url-mozilla) > > in both ~/.xemacs/custom.el and ~/.gnus > > but whenever I click on a link in rss://whatever it still > brings up the link inline via w3 or w3m. I wouldn't mind > using w3/w3m (what is the difference between the two of these?) > but > 1) as slow as firefox is loading up I think w3 is slower > 2) W3 does not load a lot of the pages properly > > > Maybe part of this is my configuration of W3 but until I figure it > out I would prefer to use firefox as my default browser. > > Perhaps there is a way to have xemacs ask me which browser I want to > use (firefox or w3m) when I RET on a link? Or, perhaps I can add > some conditions for either firefox or w3m to load when in a certain > RSS group? Any thoughts? I know just enough about lisp to be really > dangerous! Wish one could use perl or python instead (no flames please :) > Not that good with these but at least a little more knowledgeable. > > Lance if what you want is just lauch firefox or mozilla, here is a smaple for you, (defun browse-url-firefox-new-tab (url &optional new-window) "Open URL in a new tab in Firefox." (interactive (browse-url-interactive-arg "URL: ")) (let ((cmd (shell-command-to-string (concat "~/src/firefox/mozilla-xremote-client -a any 'openURL(" url ",new-tab)'")))) (unless (string= "" cmd) (message "Starting Firefox...") (start-process (concat "firefox " url) nil "/usr/local/bin/firefox" url) (message "Starting Firefox...done")))) (setq browse-url-browser-function 'browse-url-firefox-new-tab)