Gnus development mailing list
 help / color / mirror / Atom feed
From: Mark Plaksin <happy@usg.edu>
Subject: Small article-unsplit-urls fix
Date: Thu, 01 Dec 2005 12:54:20 -0500	[thread overview]
Message-ID: <87vey8ln3n.fsf@stone.tss.usg.edu> (raw)

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

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.


[-- Attachment #2: gnus-art.el patch --]
[-- Type: text/plain, Size: 504 bytes --]

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

             reply	other threads:[~2005-12-01 17:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-01 17:54 Mark Plaksin [this message]
2005-12-01 23:16 ` Mark Plaksin
2006-04-13  6:46   ` 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=87vey8ln3n.fsf@stone.tss.usg.edu \
    --to=happy@usg.edu \
    /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).