Greg Novak <[EMAIL PROTECTED]> writes:

> * Joe Corneli <[EMAIL PROTECTED]> wrote:
> > Both of these functions appear to require starting a new firefox. (??)
> 
> By a cosmic coincidence I just put the following in my .emacs file,
> which opens a page in a new tab using an existing Firefox.  
> 
> (defun browse-url-firefox (url &optional new-window)
>   (shell-command (concat "/usr/local/firefox/mozilla-xremote-client 
> \"openurl("
>                url
>                ",new-tab)\"")))
> 
> (setq browse-url-browser-function 'browse-url-firefox)

This works for me too, just as Greg says, after customizing for my
paths.  It works like this.

        here's an url www.linux.org

        Put point on url, and do 'M-x browse-url'

        This puts in minibuffer: "URL: http://www.linux.org";

        <enter> makes the url open in a new tab in firefox

        But if I just type in the minibuffer "www.linux.org", it
        doesn't work. I have to type in the full
        '"http://www.linux.org";.


Thanks for all the help everybody.

-- 
Hugh Lawson
[EMAIL PROTECTED]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to