Gnus development mailing list
 help / color / mirror / Atom feed
* browse-url-new-window-p doesn't work?
@ 1999-08-18  9:13 Kai Großjohann
  1999-08-18 12:32 ` Michael Piotrowski
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kai Großjohann @ 1999-08-18  9:13 UTC (permalink / raw)


I have set browse-url-new-window-p to t and
browse-url-browser-function to browse-url-netscape.  Yet, hitting
mouse-2 on a link in an article (or RET) doesn't open a new Netscape
window, it reuses an existing window.

Has anyone else seen this, too?

kai
-- 
I like BOTH kinds of music.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: browse-url-new-window-p doesn't work?
  1999-08-18  9:13 browse-url-new-window-p doesn't work? Kai Großjohann
@ 1999-08-18 12:32 ` Michael Piotrowski
  1999-08-18 12:38 ` Andreas Schwab
  1999-08-27 23:29 ` Daniel Neri
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Piotrowski @ 1999-08-18 12:32 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> I have set browse-url-new-window-p to t and
> browse-url-browser-function to browse-url-netscape.  Yet, hitting
> mouse-2 on a link in an article (or RET) doesn't open a new Netscape
> window, it reuses an existing window.
> 
> Has anyone else seen this, too?

Yes, I'm getting the same behavior here, I've just checked it:
Although browse-url-new-window-p is t, Netscape is called with
"-remote openURL(http://...)".  At a first glance the source code
suggests that it should really be "-noraise -remote
openURL(http://...,new-window)".  Also, passing a prefix argument
doesn't have any effect.

-- 
Michael Piotrowski, M.A. <m.piotrowski@springer.de>
Electronic Technologies, Springer-Verlag Heidelberg


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: browse-url-new-window-p doesn't work?
  1999-08-18  9:13 browse-url-new-window-p doesn't work? Kai Großjohann
  1999-08-18 12:32 ` Michael Piotrowski
@ 1999-08-18 12:38 ` Andreas Schwab
  1999-08-18 16:22   ` Kai Großjohann
  1999-08-27 23:29 ` Daniel Neri
  2 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 1999-08-18 12:38 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

|> I have set browse-url-new-window-p to t and
|> browse-url-browser-function to browse-url-netscape.  Yet, hitting
|> mouse-2 on a link in an article (or RET) doesn't open a new Netscape
|> window, it reuses an existing window.

---Buffer: *Help*----
browse-url-netscape is an interactive compiled Lisp function in `browse-url'.
(browse-url-netscape URL &optional NEW-WINDOW)
[...]
When called non-interactively, optional second argument NEW-WINDOW is
used instead of `browse-url-new-window-p'.
---------------------

Use this instead:

(defun browse-url-netscape-new-window (url)
  (browse-url-netscape url t))

-- 
Andreas Schwab                                  "And now for something
schwab@suse.de                                   completely different."
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: browse-url-new-window-p doesn't work?
  1999-08-18 12:38 ` Andreas Schwab
@ 1999-08-18 16:22   ` Kai Großjohann
  0 siblings, 0 replies; 6+ messages in thread
From: Kai Großjohann @ 1999-08-18 16:22 UTC (permalink / raw)


Andreas Schwab <schwab@suse.de> writes:

> (defun browse-url-netscape-new-window (url)
>   (browse-url-netscape url t))

Right.  Thanks.  Why didn't I see this myself?  Oh, well.

kai
-- 
I like BOTH kinds of music.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: browse-url-new-window-p doesn't work?
  1999-08-18  9:13 browse-url-new-window-p doesn't work? Kai Großjohann
  1999-08-18 12:32 ` Michael Piotrowski
  1999-08-18 12:38 ` Andreas Schwab
@ 1999-08-27 23:29 ` Daniel Neri
  1999-09-24 18:31   ` Lars Magne Ingebrigtsen
  2 siblings, 1 reply; 6+ messages in thread
From: Daniel Neri @ 1999-08-27 23:29 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> I have set browse-url-new-window-p to t and
> browse-url-browser-function to browse-url-netscape.  Yet, hitting
> mouse-2 on a link in an article (or RET) doesn't open a new Netscape
> window, it reuses an existing window.

Andreas Schwab <schwab@suse.de> writes:

> Use this instead:
> 
> (defun browse-url-netscape-new-window (url)
>   (browse-url-netscape url t))

Yeah, this fixes it. Though I think gnus-button-url should honour
browse-url-new-window-p instead. This also benefits users of other
browsers with this capability.

I'm attaching my patch (for 0.96).

Regards,
/Daniel



[-- Attachment #2: gnus-button-url patch --]
[-- Type: text/x-patch, Size: 636 bytes --]

*** gnus-art.el	1999/08/27 22:41:21	1.1
--- gnus-art.el	1999/08/27 22:58:00	1.2
***************
*** 4322,4331 ****
  
  (defun gnus-button-url (address)
    "Browse ADDRESS."
!   ;; In Emacs 20, `browse-url-browser-function' may be an alist.
!   (if (listp browse-url-browser-function)
!       (browse-url address)
!     (funcall browse-url-browser-function address)))
  
  (defun gnus-button-embedded-url (address)
    "Browse ADDRESS."
--- 4322,4328 ----
  
  (defun gnus-button-url (address)
    "Browse ADDRESS."
!   (browse-url address browse-url-new-window-p))
  
  (defun gnus-button-embedded-url (address)
    "Browse ADDRESS."

[-- Attachment #3: Type: TEXT/PLAIN, Size: 36 bytes --]


-- 
Daniel Neri
dne@mayonnaise.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: browse-url-new-window-p doesn't work?
  1999-08-27 23:29 ` Daniel Neri
@ 1999-09-24 18:31   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-09-24 18:31 UTC (permalink / raw)


Daniel Neri <dne@mayonnaise.net> writes:

> Yeah, this fixes it. Though I think gnus-button-url should honour
> browse-url-new-window-p instead. This also benefits users of other
> browsers with this capability.

I don't think so.  browse-url should, itself, check its own variables
and not make all its callers supply its own variables to itself.  

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-09-24 18:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-18  9:13 browse-url-new-window-p doesn't work? Kai Großjohann
1999-08-18 12:32 ` Michael Piotrowski
1999-08-18 12:38 ` Andreas Schwab
1999-08-18 16:22   ` Kai Großjohann
1999-08-27 23:29 ` Daniel Neri
1999-09-24 18:31   ` Lars Magne Ingebrigtsen

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).