Re: browse-url

2005-04-07 Thread Hugh Lawson
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 br

Re: browse-url

2005-04-07 Thread Hugh Lawson
Christian Lynbech <[EMAIL PROTECTED]> writes: > > "Joe" == Joe Corneli <[EMAIL PROTECTED]> writes: > > Joe> Well, I don't know what's different out our environments, but for me, > Joe> evaluating > > Joe> (progn (call-process "firefox" nil 0 nil "http://www.gnu.org";) > Joe>(call-pro

Re: browse-url

2005-04-07 Thread Christian Lynbech
> "Joe" == Joe Corneli <[EMAIL PROTECTED]> writes: Joe> Well, I don't know what's different out our environments, but for me, Joe> evaluating Joe> (progn (call-process "firefox" nil 0 nil "http://www.gnu.org";) Joe>(call-process "firefox" nil 0 nil "http://www.google.com";)) Joe> giv

Re: browse-url

2005-04-05 Thread Joe Corneli
Well here's a version that works for me & that will either open a new firefox or use an existing one. I think I'll send a bug report about the issue I was seeing doing this the "simple way". (defun browse-url-firefox (url &optional new-window) (when (eq (shell-

Re: browse-url

2005-04-05 Thread Hugh Lawson
Hugh Lawson <[EMAIL PROTECTED]> writes: > Joe Corneli <[EMAIL PROTECTED]> writes: > > > > > > 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 ni

Re: browse-url

2005-04-05 Thread Hugh Lawson
Joe Corneli <[EMAIL PROTECTED]> writes: > > 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 wind

Re: browse-url

2005-04-05 Thread Greg Novak
* 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 &option

Re: browse-url

2005-04-05 Thread Joe Corneli
Joe Corneli <[EMAIL PROTECTED]> 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 UR

Re: browse-url

2005-04-05 Thread Hugh Lawson
Joe Corneli <[EMAIL PROTECTED]> 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 &#

Re: browse-url

2005-04-04 Thread Joe Corneli
Both of these functions appear to require starting a new firefox. (??) (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))) ;;; (

Re: browse-url

2005-04-04 Thread Hugh Lawson
David Kastrup <[EMAIL PROTECTED]> writes: > However, this should be quite equivalent to what you wrote, so if you > are experiencing problems, you'll need to describe them in more detail > to make it possible to guess what might be amiss. At least in my > opinion, what you wrote looks like it sho

Re: browse-url

2005-04-04 Thread David Kastrup
Thanks for the explanation, David. I had trouble making it work, so >as a trial, I added the following two functions to my ~/.emacs file. > > Please critique. I did this purely empirically, with no real > understanding. > > > > (defun browse-url-firefox (url &optional new

Re: browse-url

2005-04-04 Thread Hugh Lawson
David Kastrup <[EMAIL PROTECTED]> writes: > Hugh Lawson <[EMAIL PROTECTED]> writes: > > > David Kastrup <[EMAIL PROTECTED]> writes: > > > >> Hugh Lawson <[EMAIL PROTECTED]> writes: > >> > >> > Debian sarge > >>

Re: browse-url

2005-04-04 Thread David Kastrup
Hugh Lawson <[EMAIL PROTECTED]> writes: > David Kastrup <[EMAIL PROTECTED]> writes: > >> Hugh Lawson <[EMAIL PROTECTED]> writes: >> >> > Debian sarge >> > Emacs 21.4.1 >> > >> > browse-url works fine if firefox is already

Re: browse-url

2005-04-04 Thread Hugh Lawson
David Kastrup <[EMAIL PROTECTED]> writes: > Hugh Lawson <[EMAIL PROTECTED]> writes: > > > Debian sarge > > Emacs 21.4.1 > > > > browse-url works fine if firefox is already running. > > > > But suppose firefox isn't running. > > &g

Re: browse-url

2005-04-01 Thread David Kastrup
nfreimann <[EMAIL PROTECTED]> writes: > David Kastrup wrote: > >>The definition of browse-url-generic in browse-url.el needs to get >>replaced with: >> >> >> > > In browse-url-generic: > .emacs:78:14:Warning: reference to free variable `browse-

Re: browse-url

2005-03-31 Thread nfreimann
David Kastrup wrote: The definition of browse-url-generic in browse-url.el needs to get replaced with: In browse-url-generic: .emacs:78:14:Warning: reference to free variable `browse-url-generic-args' In end of data: .emacs:86:1:Warning: the function `browse-url-interactive-arg' is

Re: browse-url

2005-03-31 Thread David Kastrup
Hugh Lawson <[EMAIL PROTECTED]> writes: > Debian sarge > Emacs 21.4.1 > > browse-url works fine if firefox is already running. > > But suppose firefox isn't running. > > If I do 'M-x browse-url' and fill in the url, then firefox pops up for > a sec

browse-url

2005-03-31 Thread Hugh Lawson
Debian sarge Emacs 21.4.1 browse-url works fine if firefox is already running. But suppose firefox isn't running. If I do 'M-x browse-url' and fill in the url, then firefox pops up for a second and then disappears. The same thing happens with links I click on in Emacs. I thin