From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61450 Path: news.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.gnus.general Subject: Small article-unsplit-urls fix Date: Thu, 01 Dec 2005 12:54:20 -0500 Message-ID: <87vey8ln3n.fsf@stone.tss.usg.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1133460690 25945 80.91.229.2 (1 Dec 2005 18:11:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2005 18:11:30 +0000 (UTC) Original-X-From: ding-owner+m9982@lists.math.uh.edu Thu Dec 01 19:11:29 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhstY-0002wH-W6 for ding-account@gmane.org; Thu, 01 Dec 2005 19:11:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EhstP-0004Gh-00; Thu, 01 Dec 2005 12:10:51 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Ehslt-0004Fy-00 for ding@lists.math.uh.edu; Thu, 01 Dec 2005 12:03:05 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1Ehslo-00049y-Pm for ding@lists.math.uh.edu; Thu, 01 Dec 2005 12:03:05 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ehsln-0005Kh-00 for ; Thu, 01 Dec 2005 19:02:59 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EhsiS-00079n-5I for ding@gnus.org; Thu, 01 Dec 2005 18:59:32 +0100 Original-Received: from stone.tss.usg.edu ([168.24.82.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2005 18:59:32 +0100 Original-Received: from happy by stone.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2005 18:59:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: stone.tss.usg.edu User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0 (gnu/linux) Cancel-Lock: sha1:7oeaFR93yLgCqaI2QNQP+3KHpRE= X-Spam-Score: -2.2 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61450 Archived-At: --=-=-= article-unsplit-urls (W u from the Summary Buffer) turns this: http://cnn.com http://ibm.com into this: http://cnn.comhttp://ibm.com Attached is a small patch to fix this. --=-=-= Content-Disposition: attachment; filename=diff Content-Description: gnus-art.el patch --- gnus-art.el 2005-11-28 09:37:06.000000000 -0500 +++ gnus-art.el.new 2005-12-01 12:51:02.000000000 -0500 @@ -2494,7 +2494,9 @@ (goto-char (point-min)) (while (re-search-forward "\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t) - (replace-match "\\1\\3" t))) + (if (save-match-data + (not (string-match "^\\(https?\\|ftp\\):" (match-string 3)))) + (replace-match "\\1\\3" t)))) (when (interactive-p) (gnus-treat-article nil)))) --=-=-=--