Mercurial > emacs
comparison lisp/gnus/qp.el @ 90104:a01e7a9f1659
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-14
Update unicode-branch version numbers and ChangeLog file names
2005-02-12 Miles Bader <miles@gnu.org>
* etc/TODO, etc/PROBLEMS, etc/NEWS: Replace references to Emacs version "22"
with "23".
2005-02-12 Miles Bader <miles@gnu.org>
* lisp/version.el (emacs-version): Change to "23.0.0".
* lisp/descr-text.el (describe-char-unidata-list):
Replace references to Emacs version "22" with "23".
* lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header)
(byte-compile-insert-header): Likewise.
* lisp/international/mule.el (charset-list, set-coding-priority)
(ignore-relative-composition): Likewise.
* lisp/international/mule-util.el (detect-coding-with-priority): Likewise.
* lisp/international/mule-diag.el: Likewise.
* lisp/international/mule-cmds.el (language-info-custom-alist): Likewise.
* lisp/international/codepage.el (codepage-setup): Likewise.
2005-02-13 Miles Bader <miles@gnu.org>
Rename unicode-branch-specific ChangeLog files to
"ChangeLog.unicode" from "ChangeLog.22"
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 14 Feb 2005 03:40:07 +0000 |
parents | cce1c0ee76ee |
children | 146c086df160 |
comparison
equal
deleted
inserted
replaced
90103:3ebd9bdb4fe5 | 90104:a01e7a9f1659 |
---|---|
1 ;;; qp.el --- Quoted-Printable functions | 1 ;;; qp.el --- Quoted-Printable functions |
2 | 2 |
3 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
6 ;; Keywords: mail, extensions | 6 ;; Keywords: mail, extensions |
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
100 If `mm-use-ultra-safe-encoding' is set, fold lines unconditionally and | 100 If `mm-use-ultra-safe-encoding' is set, fold lines unconditionally and |
101 encode lines starting with \"From\"." | 101 encode lines starting with \"From\"." |
102 (interactive "r") | 102 (interactive "r") |
103 (save-excursion | 103 (save-excursion |
104 (goto-char from) | 104 (goto-char from) |
105 (if (fboundp 'string-to-multibyte) ; Emacs 22 | 105 (if (fboundp 'string-to-multibyte) ; Emacs 23 |
106 (if (re-search-forward (string-to-multibyte "[^\x0-\x7f\x80-\xff]") | 106 (if (re-search-forward (string-to-multibyte "[^\x0-\x7f\x80-\xff]") |
107 to t) | 107 to t) |
108 ;; Fixme: This is somewhat misleading. | 108 ;; Fixme: This is somewhat misleading. |
109 (error "Multibyte character in QP encoding region")) | 109 (error "Multibyte character in QP encoding region")) |
110 (if (re-search-forward (mm-string-as-multibyte "[^\0-\377]") to t) | 110 (if (re-search-forward (mm-string-as-multibyte "[^\0-\377]") to t) |
120 (goto-char (point-min)) | 120 (goto-char (point-min)) |
121 (while (and (skip-chars-forward class) | 121 (while (and (skip-chars-forward class) |
122 (not (eobp))) | 122 (not (eobp))) |
123 (insert | 123 (insert |
124 (prog1 | 124 (prog1 |
125 ;; To unibyte in case of Emacs 22 eight-bit. | 125 ;; To unibyte in case of Emacs 23 eight-bit. |
126 (format "=%02X" (mm-multibyte-char-to-unibyte (char-after))) | 126 (format "=%02X" (mm-multibyte-char-to-unibyte (char-after))) |
127 (delete-char 1)))) | 127 (delete-char 1)))) |
128 ;; Encode white space at the end of lines. | 128 ;; Encode white space at the end of lines. |
129 (goto-char (point-min)) | 129 (goto-char (point-min)) |
130 (while (re-search-forward "[ \t]+$" nil t) | 130 (while (re-search-forward "[ \t]+$" nil t) |