diff options
| author | Kenichi Handa | 2007-11-19 06:28:45 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-11-19 06:28:45 +0000 |
| commit | 7d06be9c3cb75977e8638a411c3a33fbab8d0ebe (patch) | |
| tree | f74f640a5444c2c89348ae75ff3cd6073126c217 | |
| parent | ff41001492f817cbc2e9bc2bc35222c29092421e (diff) | |
| download | emacs-7d06be9c3cb75977e8638a411c3a33fbab8d0ebe.tar.gz emacs-7d06be9c3cb75977e8638a411c3a33fbab8d0ebe.zip | |
(utf-7-imap-post-read-conversion)
(utf-7-imap-pre-write-conversion): New functions.
| -rw-r--r-- | lisp/international/utf-7.el | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lisp/international/utf-7.el b/lisp/international/utf-7.el index dc66c79c686..251c4b01c30 100644 --- a/lisp/international/utf-7.el +++ b/lisp/international/utf-7.el | |||
| @@ -36,14 +36,6 @@ | |||
| 36 | 36 | ||
| 37 | ;;; Code: | 37 | ;;; Code: |
| 38 | 38 | ||
| 39 | ;; (define-coding-system 'utf-7-imap | ||
| 40 | ;; "UTF-7 encoding of Unicode, IMAP version (RFC 2060)" | ||
| 41 | ;; :coding-type 'utf-8 | ||
| 42 | ;; :mnemonic ?u | ||
| 43 | ;; :charset-list '(unicode) | ||
| 44 | ;; :pre-write-conversion 'utf-7-imap-pre-write-conversion | ||
| 45 | ;; :post-read-conversion 'utf-7-imap-post-read-conversion) | ||
| 46 | |||
| 47 | (defun utf-7-decode (len imap) | 39 | (defun utf-7-decode (len imap) |
| 48 | "Decode LEN bytes of UTF-7 at point. | 40 | "Decode LEN bytes of UTF-7 at point. |
| 49 | IMAP non-nil means use the IMAP version." | 41 | IMAP non-nil means use the IMAP version." |
| @@ -76,8 +68,9 @@ IMAP non-nil means use the IMAP version." | |||
| 76 | (defun utf-7-post-read-conversion (len) | 68 | (defun utf-7-post-read-conversion (len) |
| 77 | (utf-7-decode len nil)) | 69 | (utf-7-decode len nil)) |
| 78 | 70 | ||
| 79 | ;; (defun utf-7-imap-post-read-conversion (len) | 71 | ;;;###autoload |
| 80 | ;; (utf-7-decode len t)) | 72 | (defun utf-7-imap-post-read-conversion (len) |
| 73 | (utf-7-decode len t)) | ||
| 81 | 74 | ||
| 82 | (defun utf-7-encode (from to imap) | 75 | (defun utf-7-encode (from to imap) |
| 83 | "Encode bytes between FROM and TO to UTF-7. | 76 | "Encode bytes between FROM and TO to UTF-7. |
| @@ -125,8 +118,9 @@ ESC and SKIP-CHARS are adjusted for the normal and IMAP versions." | |||
| 125 | (defun utf-7-pre-write-conversion (from to) | 118 | (defun utf-7-pre-write-conversion (from to) |
| 126 | (utf-7-encode from to nil)) | 119 | (utf-7-encode from to nil)) |
| 127 | 120 | ||
| 128 | ;; (defun utf-7-imap-pre-write-conversion (from to) | 121 | ;;;###autoload |
| 129 | ;; (utf-7-encode from to t)) | 122 | (defun utf-7-imap-pre-write-conversion (from to) |
| 123 | (utf-7-encode from to t)) | ||
| 130 | 124 | ||
| 131 | (provide 'utf-7) | 125 | (provide 'utf-7) |
| 132 | 126 | ||