diff options
| author | Miles Bader | 2006-11-27 00:37:36 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-11-27 00:37:36 +0000 |
| commit | e8f0f70dc99e40ec0de937368f21572da975926c (patch) | |
| tree | e998d13aefb04ab0ab5074ff048b13e4441382b6 | |
| parent | e2eef56d5622385c5ef42e0fbb1367887d9a3b89 (diff) | |
| download | emacs-e8f0f70dc99e40ec0de937368f21572da975926c.tar.gz emacs-e8f0f70dc99e40ec0de937368f21572da975926c.zip | |
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 168)
- Update from CVS
2006-11-21 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/mm-util.el (mm-string-to-multibyte): Alias to identity in XEmacs.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-527
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 19 |
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2d3b4868b7e..68c82da1c6b 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -14,6 +14,10 @@ | |||
| 14 | (gnus-valid-select-methods, total-expire, gnus-summary-line-format) | 14 | (gnus-valid-select-methods, total-expire, gnus-summary-line-format) |
| 15 | (gnus-group-read-only-p): Fix space/tab mixup in docstrings. | 15 | (gnus-group-read-only-p): Fix space/tab mixup in docstrings. |
| 16 | 16 | ||
| 17 | 2006-11-21 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 18 | |||
| 19 | * mm-util.el (mm-string-to-multibyte): Alias to identity in XEmacs. | ||
| 20 | |||
| 17 | 2006-11-18 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> | 21 | 2006-11-18 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> |
| 18 | 22 | ||
| 19 | * mm-uu.el (mm-uu-pgp-signed-extract-1): Make last fix more thorough | 23 | * mm-uu.el (mm-uu-pgp-signed-extract-1): Make last fix more thorough |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 05c37a54e74..10cd78f71d9 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -92,12 +92,6 @@ | |||
| 92 | ;; (string-to-multibyte s) ~= (decode-coding-string s 'binary) | 92 | ;; (string-to-multibyte s) ~= (decode-coding-string s 'binary) |
| 93 | ;; (string-make-multibyte s) ~= (decode-coding-string s locale-coding-system) | 93 | ;; (string-make-multibyte s) ~= (decode-coding-string s locale-coding-system) |
| 94 | (string-as-multibyte . identity) | 94 | (string-as-multibyte . identity) |
| 95 | (string-to-multibyte | ||
| 96 | . (lambda (string) | ||
| 97 | "Return a multibyte string with the same individual chars as string." | ||
| 98 | (mapconcat | ||
| 99 | (lambda (ch) (mm-string-as-multibyte (char-to-string ch))) | ||
| 100 | string ""))) | ||
| 101 | (multibyte-string-p . ignore) | 95 | (multibyte-string-p . ignore) |
| 102 | (insert-byte . insert-char) | 96 | (insert-byte . insert-char) |
| 103 | (multibyte-char-to-unibyte . identity)))) | 97 | (multibyte-char-to-unibyte . identity)))) |
| @@ -128,6 +122,19 @@ This is a compatibility function for different Emacsen." | |||
| 128 | (setq start (- (length string) tail)))) | 122 | (setq start (- (length string) tail)))) |
| 129 | string)))) | 123 | string)))) |
| 130 | 124 | ||
| 125 | (defalias 'mm-string-to-multibyte | ||
| 126 | (cond | ||
| 127 | ((featurep 'xemacs) | ||
| 128 | 'identity) | ||
| 129 | ((fboundp 'string-to-multibyte) | ||
| 130 | 'string-to-multibyte) | ||
| 131 | (t | ||
| 132 | (lambda (string) | ||
| 133 | "Return a multibyte string with the same individual chars as string." | ||
| 134 | (mapconcat | ||
| 135 | (lambda (ch) (mm-string-as-multibyte (char-to-string ch))) | ||
| 136 | string ""))))) | ||
| 137 | |||
| 131 | (eval-and-compile | 138 | (eval-and-compile |
| 132 | (defalias 'mm-char-or-char-int-p | 139 | (defalias 'mm-char-or-char-int-p |
| 133 | (cond | 140 | (cond |