From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: browse-url Date: Tue, 05 Apr 2005 04:11:10 -0500 Message-ID: References: <877jjn742a.fsf@desktop.xx.yy> <877jjjsbub.fsf@desktop.xx.yy> <87r7hqktbr.fsf@desktop.xx.yy> <87y8byj9gm.fsf@desktop.xx.yy> <87ekdp4rlc.fsf@desktop.xx.yy> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112692785 21388 80.91.229.2 (5 Apr 2005 09:19:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2005 09:19:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 05 11:19:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DIkCn-0007Wa-1n for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Apr 2005 11:18:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIjlb-0006Lc-HT for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Apr 2005 04:50:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DIjhN-0005rk-E6 for help-gnu-emacs@gnu.org; Tue, 05 Apr 2005 04:46:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DIjhK-0005rH-Oh for help-gnu-emacs@gnu.org; Tue, 05 Apr 2005 04:46:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIjfD-0005Dt-Lg for help-gnu-emacs@gnu.org; Tue, 05 Apr 2005 04:43:59 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DIk5k-0002u6-9R for help-gnu-emacs@gnu.org; Tue, 05 Apr 2005 05:11:24 -0400 Original-Received: from lab45.ma.utexas.edu (mail@lab45.ma.utexas.edu [128.83.133.159]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id j359BEf25396; Tue, 5 Apr 2005 04:11:14 -0500 Original-Received: from jcorneli by lab45.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1DIk5W-00076k-00; Tue, 05 Apr 2005 04:11:10 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <87ekdp4rlc.fsf@desktop.xx.yy> (message from Hugh Lawson on Tue, 05 Apr 2005 08:20:15 GMT) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25391 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25391 Joe Corneli writes: > Both of these functions appear to require starting a new firefox. (??) > #1 > (defun browse-url-firefox (url &optional new-window ) > ;;new-window ignored > "Ask the firefox browser to load URL." > (apply 'call-process "firefox" nil > 0 nil (list url))) > > ;;; #2 > (defun browse-url-firefox (url &optional new-window) > (call-process "firefox" nil 0 nil url)) Perhaps they do not. I just did: 'M-x browse-url' twice, inputting two different urls, and still have just one instance of firefox visible on the screen. I can display the two different pages by clicking the navigation toolbar arrows. Before trying these functions, I could find no way by setting emacs variables to start firefox if it was not already running. There's probably a way, but I didn't find it. :( Well, I don't know what's different out our environments, but for me, evaluating (progn (call-process "firefox" nil 0 nil "http://www.gnu.org") (call-process "firefox" nil 0 nil "http://www.google.com")) gives me one firefox window browsing gnu.org, and one of those idiot boxes that I hate telling me to choose a new user (i.e. if no firefox window is open; if a window is open, 2 X idiot box).