From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2457 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.user Subject: Re: (setq-default browse-url-browser-function 'browse-url-mozilla) Date: Sat, 10 May 2003 01:10:00 GMT Organization: Still searching... Message-ID: References: <87r877zvth.fsf@desktop.xx.yy> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668881 15185 80.91.229.2 (31 Jan 2006 00:54:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:54:41 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:43 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.equant.no!uninett.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!c03.atl99!news.webusenet.com!diablo.voicenet.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!cbca52ab!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:gra90CsA3R31iiM1Lu4qlAD/ExU= Original-NNTP-Posting-Host: 63.206.48.91 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr21.news.prodigy.com 1052529000 ST000 63.206.48.91 (Fri, 09 May 2003 21:10:00 EDT) Original-NNTP-Posting-Date: Fri, 09 May 2003 21:10:00 EDT X-UserInfo1: OH[]BVGAFRVURUXXARKFOPLI[B]NQHQHDY^L\UQHWIWDUWYADNVOPCKZBL\NX_KHV^GY[KVMG^ZPNHSCZNS[^UXFJVWYXVXKBH[XRWWBBDTN@AX\JSBVH]_@T\EKJHBMZ\_WZJFNRY]YWKSPED_U^NC\HSZ\WS[KEAYI@DO@\K@BP\LD[\GTMPLDFVU]ASJM Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2597 Original-Lines: 41 X-Gnus-Article-Number: 2597 Tue Jan 17 17:30:43 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2457 Archived-At: Hugh Lawson writes: > When 'browse-url-new-window-flag' is set to 'nil' I get an error after > clicking on a url in a gnus window. So I have it set to 't', which > makes the url open in a new window. > > I tried fiddling with this, but my elisp is not up to the challenge. Hugh, I think you've fixed my setup... However, its sort of backwards from what you report. Disregarding Andrews code for a moment... and with a restart: (setq-default browse-url-browser-function 'browse-url-mozilla) is in force. Checking browse-url-new-window-flag shows `nil'. clicking a url creates a new Browser frame as reported. However if I set it to `t' with M-x set-variable Then I get the behavior I wanted. ie existing browser browses url with no new frame or tab. This seems to be the reverse of what the variable is advertised to do. except for the small print at: C-h v browse-url-new-window-flag browse-url-new-window-flag's value is t *If non-nil, always open a new browser window with appropriate browsers. Passing an interactive argument to M-x browse-url, or specific browser commands reverses the effect of this variable. Requires Netscape version 1.1N or later or XMosaic version 2.5 or later if using those browsers. I'm not really sure what this means but it does mention reversing the effect. I think this line in above: `Passing an interactive argument to M-x browse-url,' is what happens when one clicks a link in a message. Anyone know if that is correct? Anyway it appears in my case just setting browse-url-new-window-flag to `t' creates the behavior I was after.