From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58175 Path: main.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: browse-url Date: Thu, 29 Jul 2004 09:29:51 -0400 Sender: ding-owner@lists.math.uh.edu Message-ID: <873c3brlf4.fsf@uwo.ca> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091107938 22297 80.91.224.253 (29 Jul 2004 13:32:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2004 13:32:18 +0000 (UTC) Original-X-From: ding-owner+M6716@lists.math.uh.edu Thu Jul 29 15:32:02 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BqB0r-0002lJ-00 for ; Thu, 29 Jul 2004 15:32:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BqB0Y-0008VJ-00; Thu, 29 Jul 2004 08:31:42 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BqB0R-0008VD-00 for ding@lists.math.uh.edu; Thu, 29 Jul 2004 08:31:35 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BqB0Q-0006q5-Su for ding@lists.math.uh.edu; Thu, 29 Jul 2004 08:31:34 -0500 Original-Received: from pony.its.uwo.ca (pony.its.uwo.ca [129.100.2.63]) by justine.libertine.org (Postfix) with ESMTP id 4E95B3A0055 for ; Thu, 29 Jul 2004 08:31:33 -0500 (CDT) Original-Received: from spork.its.uwo.ca (ride.its.uwo.ca [10.10.10.10]) by pony.its.uwo.ca (8.12.10/8.12.10) with ESMTP id i6TDV6Uq015212 for ; Thu, 29 Jul 2004 09:31:17 -0400 (EDT) Original-Received: from localhost (jdc.math.uwo.ca [129.100.75.77]) by spork.its.uwo.ca (8.12.10/8.12.10) with ESMTP id i6TDU3dx026916 for ; Thu, 29 Jul 2004 09:30:23 -0400 Original-Received: from jdc by localhost with local (Exim 3.36 #1 (Debian)) id 1BqAyl-0005Jq-00; Thu, 29 Jul 2004 09:29:51 -0400 Original-To: ding@gnus.org In-Reply-To: (Harry Putnam's message of "Wed, 28 Jul 2004 19:29:37 -0500") Mail-Copies-To: nobody User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-Scanned-By: MIMEDefang 2.39 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58175 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58175 Harry Putnam writes: > Steve Youngs writes: > >> Harry Putnam writes: >> > How can I arrange things so that I get the clicked url in a mozilla >> > tab? >> >> Probably not much use to you but in XEmacs' browse-url.el there is >> `browse-url-mozilla-new-window-is-tab'. > > Yeah, probably not. But I think someone here will have code to do it > in fsf emacs ... hasn't been much activity here for day or two. I don't see that variable in my version of browse-url. Here's what I use in emacs: (if window-system (setq browse-url-browser-function 'jh:browse-url-mozilla-new-tab) (setq browse-url-browser-function 'browse-url-w3)) ; From Jesper Harder (defun jh:browse-url-mozilla-new-tab (url &optional new-window) ;; new-window ignored "Open URL in a new tab in Mozilla." (interactive (browse-url-interactive-arg "URL: ")) (unless (string= "" (shell-command-to-string (concat "mozilla -remote 'openURL(" url ",new-tab)'"))) (message "Starting Mozilla...") (start-process (concat "mozilla " url) nil "mozilla" url) (message "Starting Mozilla...done"))) Dan