aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-10-31 19:21:42 -0700
committerGlenn Morris2010-10-31 19:21:42 -0700
commited1d182dca102a63ee4bbdd4d2d3d37817c31ba6 (patch)
tree27a9f42d458773817a4b3082ff5056f47c273c54
parent85a45a691bc035cb4e4c2620e9722aa1c622e948 (diff)
downloademacs-ed1d182dca102a63ee4bbdd4d2d3d37817c31ba6.tar.gz
emacs-ed1d182dca102a63ee4bbdd4d2d3d37817c31ba6.zip
* lisp/gnus/mm-util.el (mm-string-to-multibyte): Simplify.
-rw-r--r--lisp/gnus/ChangeLog14
-rw-r--r--lisp/gnus/mm-util.el17
2 files changed, 12 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 741ddc3d960..cd87019dd14 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,7 @@
12010-11-01 Glenn Morris <rgm@gnu.org> 12010-11-01 Glenn Morris <rgm@gnu.org>
2 2
3 * mm-util.el (mm-string-to-multibyte): Simplify.
4
3 * shr.el (declare-function): Add compat stub. 5 * shr.el (declare-function): Add compat stub.
4 (url-cache-create-filename): Declare. 6 (url-cache-create-filename): Declare.
5 (mm-disable-multibyte, widget-convert-button): Autoload. 7 (mm-disable-multibyte, widget-convert-button): Autoload.
@@ -662,12 +664,12 @@
662 664
663 * nnimap.el (gnutls-negotiate): Silence the byte compiler. 665 * nnimap.el (gnutls-negotiate): Silence the byte compiler.
664 666
665 * gnus-art.el, gnus-cache.el, gnus-fun.el, gnus-group.el, 667 * gnus-art.el, gnus-cache.el, gnus-fun.el, gnus-group.el:
666 gnus-picon.el, gnus-spec.el, gnus-sum.el, gnus-util.el, gnus.el, 668 * gnus-picon.el, gnus-spec.el, gnus-sum.el, gnus-util.el, gnus.el:
667 mail-source.el, message.el, mm-bodies.el, mm-decode.el, mm-extern.el, 669 * mail-source.el, message.el, mm-bodies.el, mm-decode.el, mm-extern.el:
668 mm-util.el, mm-view.el, mml-smime.el, mml.el, mml1991.el, mml2015.el, 670 * mm-util.el, mm-view.el, mml-smime.el, mml.el, mml1991.el, mml2015.el:
669 nnfolder.el, nnheader.el, nnmail.el, nnmaildir.el, nnrss.el, nntp.el, 671 * nnfolder.el, nnheader.el, nnmail.el, nnmaildir.el, nnrss.el, nntp.el:
670 rfc1843.el, sieve-manage.el, smime.el, spam.el: 672 * rfc1843.el, sieve-manage.el, smime.el, spam.el:
671 Fix comment for declare-function. 673 Fix comment for declare-function.
672 674
6732010-10-11 Lars Magne Ingebrigtsen <larsi@gnus.org> 6752010-10-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index b16e1d9556b..b06615cb61f 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -202,19 +202,10 @@ to the contents of the accessible portion of the buffer."
202 (defalias 'mm-decode-coding-region 'decode-coding-region) 202 (defalias 'mm-decode-coding-region 'decode-coding-region)
203 (defalias 'mm-encode-coding-region 'encode-coding-region))) 203 (defalias 'mm-encode-coding-region 'encode-coding-region)))
204 204
205;; `string-to-multibyte' is available only in Emacs 22.1 or greater. 205;; `string-to-multibyte' is available only in Emacs.
206(defalias 'mm-string-to-multibyte 206(defalias 'mm-string-to-multibyte (if (featurep 'xemacs)
207 (cond 207 'identity
208 ((featurep 'xemacs) 208 'string-to-multibyte))
209 'identity)
210 ((fboundp 'string-to-multibyte)
211 'string-to-multibyte)
212 (t
213 (lambda (string)
214 "Return a multibyte string with the same individual chars as STRING."
215 (mapconcat
216 (lambda (ch) (mm-string-as-multibyte (char-to-string ch)))
217 string "")))))
218 209
219;; `char-or-char-int-p' is an XEmacs function, not available in Emacs. 210;; `char-or-char-int-p' is an XEmacs function, not available in Emacs.
220(eval-and-compile 211(eval-and-compile