Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
Subject: Re: browse-url
Date: Thu, 29 Jul 2004 09:29:51 -0400	[thread overview]
Message-ID: <873c3brlf4.fsf@uwo.ca> (raw)
In-Reply-To: <m3brhzy7ta.fsf@newsguy.com> (Harry Putnam's message of "Wed, 28 Jul 2004 19:29:37 -0500")

Harry Putnam <reader@newsguy.com> writes:

> Steve Youngs <steve@youngs.au.com> writes:
>
>>   Harry Putnam <reader@newsguy.com> 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



  parent reply	other threads:[~2004-07-29 13:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-28 20:21 browse-url Harry Putnam
2004-07-28 22:53 ` browse-url Steve Youngs
2004-07-29  0:29   ` browse-url Harry Putnam
2004-07-29  6:12     ` browse-url Simon Josefsson
2004-07-29 15:59       ` browse-url Harry Putnam
2004-07-29 16:08         ` browse-url Harry Putnam
2004-07-29 16:36         ` browse-url Simon Josefsson
2004-07-29 17:34           ` browse-url Harry Putnam
2004-07-29 13:29     ` Dan Christensen [this message]
2004-07-29 16:16       ` browse-url Harry Putnam
2004-07-28 23:38 ` browse-url Yo Merito
2004-07-29 16:16   ` browse-url Harry Putnam
2004-07-29 16:24   ` browse-url Harry Putnam
  -- strict thread matches above, loose matches on Subject: below --
2001-04-01 15:51 browse-url Laura Conrad

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873c3brlf4.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    /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 NNTP newsgroup(s).