Gnus development mailing list
 help / color / mirror / Atom feed
From: nospam2159@daimi.au.dk (Peter von der Ahé)
Subject: PATCH: Browse URLs in new window
Date: 24 Nov 1999 21:46:35 +0100	[thread overview]
Message-ID: <yc0aeo34nys.fsf@ufleku.daimi.au.dk> (raw)

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

Hi!

I have noticed that Gnus ignores the variable
browse-url-new-window-p.  Please apply the attached patch.

/Peter


[-- Attachment #2: Browse in new window --]
[-- Type: text/x-patch, Size: 1926 bytes --]

diff -rc pgnus-0.98-orig/lisp/ChangeLog pgnus-0.98/lisp/ChangeLog
*** pgnus-0.98-orig/lisp/ChangeLog	Fri Nov  5 20:13:54 1999
--- pgnus-0.98/lisp/ChangeLog	Wed Nov 24 21:39:09 1999
***************
*** 1,3 ****
--- 1,8 ----
+ 1999-11-24  Peter von der Ahé  <nospam2159@daimi.au.dk>
+ 
+ 	* gnus-art.el (gnus-button-url): Use browse-url-new-window-p
+ 	(gnus-button-embedded-url): Ditto
+ 
  Fri Nov  5 19:10:02 1999  Lars Magne Ingebrigtsen  <larsi@menja.ifi.uio.no>
  
  	* gnus.el: Pterodactyl Gnus v0.98 is released.
diff -rc pgnus-0.98-orig/lisp/gnus-art.el pgnus-0.98/lisp/gnus-art.el
*** pgnus-0.98-orig/lisp/gnus-art.el	Fri Nov  5 20:13:54 1999
--- pgnus-0.98/lisp/gnus-art.el	Wed Nov 24 21:33:47 1999
***************
*** 4384,4397 ****
    ;; 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."
    ;; In Emacs 20, `browse-url-browser-function' may be an alist.
    (if (listp browse-url-browser-function)
        (browse-url (gnus-strip-whitespace address))
!     (funcall browse-url-browser-function (gnus-strip-whitespace address))))
  
  ;;; Next/prev buttons in the article buffer.
  
--- 4384,4397 ----
    ;; 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 browse-url-new-window-p)))
  
  (defun gnus-button-embedded-url (address)
    "Browse ADDRESS."
    ;; In Emacs 20, `browse-url-browser-function' may be an alist.
    (if (listp browse-url-browser-function)
        (browse-url (gnus-strip-whitespace address))
!     (funcall browse-url-browser-function (gnus-strip-whitespace address) browse-url-new-window-p)))
  
  ;;; Next/prev buttons in the article buffer.
  

[-- Attachment #3: Type: text/plain, Size: 177 bytes --]

-- 
              · Peter von der Ahé · Systems programmer ·
         · Office phone: +45 89 42 31 41 · Office: 540.030 ·
               · <URL:http://www.daimi.au.dk/~pahe/> ·

             reply	other threads:[~1999-11-24 20:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-24 20:46 Peter von der Ahé [this message]
1999-11-25  0:33 ` Daniel Neri
1999-11-25  1:51   ` Daniel Pittman
1999-12-01 20:51     ` Lars Magne Ingebrigtsen
1999-12-02 21:12       ` David S. Goldberg
1999-12-03  0:27         ` 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=yc0aeo34nys.fsf@ufleku.daimi.au.dk \
    --to=nospam2159@daimi.au.dk \
    /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).