From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Date: Fri, 26 Nov 2010 02:31:57 +0000 (+0000)
Subject: gnus-art.el (gnus-url-mailto): Unfold URLs before using them.
X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~107
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e91d0eb709bbceac93ad9418ba453d74d4221b0;p=emacs.git

gnus-art.el (gnus-url-mailto): Unfold URLs before using them.
nnheader.el (nnheader-update-marks-actions): Fix typo in last checkin.
shr-color.el: Require cl when compiling.
---

diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f1340c6593d..93dd22ff45b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,10 @@
 2010-11-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+	* nnheader.el (nnheader-update-marks-actions): Fix typo in last
+	checkin.
+
+	* gnus-art.el (gnus-url-mailto): Unfold URLs before using them.
+
 	* nnimap.el (nnimap-request-set-mark): Add is "+", not "-".
 
 	* gnus-sum.el (gnus-summary-push-marks-to-backend): Use 'set instead of
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 53d82cadb8b..8d8aaa0e36e 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -8146,6 +8146,7 @@ url is put as the `gnus-button-url' overlay property on the button."
 
 (defun gnus-url-mailto (url)
   ;; Send mail to someone
+  (setq url (replace-regexp-in-string "\n" " " url))
   (when (string-match "mailto:/*\\(.*\\)" url)
     (setq url (substring url (match-beginning 1) nil)))
   (let (to args subject func)
diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el
index d34229a467d..cc2706eaf2a 100644
--- a/lisp/gnus/nnheader.el
+++ b/lisp/gnus/nnheader.el
@@ -1089,12 +1089,12 @@ See `find-file-noselect' for the arguments."
 	       mark
 	       (cond
 		((eq what 'add)
-		 (gnus-range-add (cdr (assoc mark backend-marks)) range)
-		 ((eq what 'del)
-		  (gnus-remove-from-range
-		   (cdr (assoc mark backend-marks)) range))
-		 ((eq what 'set)
-		  range)))
+		 (gnus-range-add (cdr (assoc mark backend-marks)) range))
+		((eq what 'del)
+		 (gnus-remove-from-range
+		  (cdr (assoc mark backend-marks)) range))
+		((eq what 'set)
+		 range))
 	       backend-marks)))))
   backend-marks)