aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-02-24 01:36:41 +0000
committerMiles Bader2005-02-24 01:36:41 +0000
commitd8d9feaf6cd5a609e36f7e72c1de9490dcbeede7 (patch)
tree24f189ece3aeb8f9cfeb1a0422854927a1650204
parent1ff56495788f79262ed64540eebb81083e571369 (diff)
downloademacs-d8d9feaf6cd5a609e36f7e72c1de9490dcbeede7.tar.gz
emacs-d8d9feaf6cd5a609e36f7e72c1de9490dcbeede7.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-17
Replace embedded control characters with octal escapes 2005-02-24 Miles Bader <miles@gnu.org> * lisp/international/mule.el (auto-coding-regexp-alist) (ctext-pre-write-conversion): Replace embedded control characters with octal escapes; this prevents diff from thinking the file is binary.
-rw-r--r--lisp/ChangeLog.unicode7
-rw-r--r--lisp/international/mule.el4
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog.unicode b/lisp/ChangeLog.unicode
index 4b21ba2503e..afe74a32d4b 100644
--- a/lisp/ChangeLog.unicode
+++ b/lisp/ChangeLog.unicode
@@ -1,3 +1,10 @@
12005-02-24 Miles Bader <miles@gnu.org>
2
3 * international/mule.el (auto-coding-regexp-alist)
4 (ctext-pre-write-conversion): Replace embedded control characters
5 with octal escapes; this prevents diff from thinking the file is
6 binary.
7
12005-02-12 Miles Bader <miles@gnu.org> 82005-02-12 Miles Bader <miles@gnu.org>
2 9
3 * version.el (emacs-version): Change to "23.0.0". 10 * version.el (emacs-version): Change to "23.0.0".
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 93e64e447c0..13e3539c3f0 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1482,7 +1482,7 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place."
1482 (save-excursion 1482 (save-excursion
1483 (goto-char last-pos) 1483 (goto-char last-pos)
1484 (insert (string-to-multibyte 1484 (insert (string-to-multibyte
1485 (format "\e%%/%d%c%c%s" 1485 (format "\e%%/%d%c%c%s\002"
1486 noctets 1486 noctets
1487 (+ (/ len 128) 128) 1487 (+ (/ len 128) 128)
1488 (+ (% len 128) 128) 1488 (+ (% len 128) 128)
@@ -1526,7 +1526,7 @@ and the contents of `file-coding-system-alist'."
1526 1526
1527(defcustom auto-coding-regexp-alist 1527(defcustom auto-coding-regexp-alist
1528 '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion) 1528 '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion)
1529 ("\\`;ELC 1529 ("\\`;ELC\024\0\0\0" . emacs-mule)) ; Emacs 20-compiled
1530 "Alist of patterns vs corresponding coding systems. 1530 "Alist of patterns vs corresponding coding systems.
1531Each element looks like (REGEXP . CODING-SYSTEM). 1531Each element looks like (REGEXP . CODING-SYSTEM).
1532A file whose first bytes match REGEXP is decoded by CODING-SYSTEM on reading. 1532A file whose first bytes match REGEXP is decoded by CODING-SYSTEM on reading.