[gnus git] branch master updated: m0-13-95-g24f8bda =1= mm-url.el (mm-url-form-encode-xwfu): Allow argument CHUNK to be nil (Bug#21881)

Katsumi Yamaoka <[email protected]> Wed, 11 Nov 2015 23:57:11 +0100
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  24f8bdab921a0876873c5d61eb7e7fe38833f64f (commit)
      from  4c7b58391d57065c5c87cea9f9d7741a5809066d (commit)


- Log -----------------------------------------------------------------
commit 24f8bdab921a0876873c5d61eb7e7fe38833f64f
Author: Eli Zaretskii <[email protected]>
Date:   Wed Nov 11 22:56:54 2015 +0000

    mm-url.el (mm-url-form-encode-xwfu): Allow argument CHUNK to be nil (Bug#21881)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5722b2e..057c343 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-11  Eli Zaretskii  <[email protected]>
+
+	* mm-url.el (mm-url-form-encode-xwfu): Allow argument CHUNK to be nil.
+	(Bug#21881)
+
 2015-11-08  Michael Sperber  <[email protected]>
 
 	* gnus-sum.el (gnus-summary-backend-map): Bind B-backspace to
diff --git a/lisp/mm-url.el b/lisp/mm-url.el
index 6d5f2a3..ecc5ac4 100644
--- a/lisp/mm-url.el
+++ b/lisp/mm-url.el
@@ -392,6 +392,7 @@ spaces.  Die Die Die."
   (if (consp chunk)
       (setq chunk (cdr chunk)))
 
+  (if chunk
       (mapconcat
        (lambda (char)
 	 (cond
@@ -402,7 +403,7 @@ spaces.  Die Die Die."
 				(if (fboundp 'find-coding-systems-string)
 				    (car (find-coding-systems-string chunk))
 				  buffer-file-coding-system))
-   ""))
+       "")))
 
 (defun mm-url-encode-www-form-urlencoded (pairs)
   "Return PAIRS encoded for forms."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    5 +++++
 lisp/mm-url.el |   23 ++++++++++++-----------
 2 files changed, 17 insertions(+), 11 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project