From: Daniel Neri <dne@mayonnaise.net>
Subject: Re: browse-url-new-window-p doesn't work?
Date: Sat, 28 Aug 1999 01:29:50 +0200 [thread overview]
Message-ID: <87iu60u7ip.fsf@nowhere.mayonnaise.net> (raw)
In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Wed, 18 Aug 1999 09:23:41 GMT"
[-- 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
next prev parent reply other threads:[~1999-08-27 23:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-18 9:13 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 [this message]
1999-09-24 18:31 ` Lars Magne Ingebrigtsen
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=87iu60u7ip.fsf@nowhere.mayonnaise.net \
--to=dne@mayonnaise.net \
/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).