Merge from emacs--devo--0
authorMiles Bader <miles@gnu.org>
Tue, 5 Sep 2006 02:54:22 +0000 (02:54 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 5 Sep 2006 02:54:22 +0000 (02:54 +0000)
Patches applied:

 * emacs--devo--0  (patch 414-422)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 128-130)

   - Update from CVS
   - Merge from emacs--devo--0

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-108

26 files changed:
1  2 
etc/HELLO
etc/NEWS
lisp/ChangeLog
lisp/cus-start.el
lisp/gnus/rfc2047.el
lisp/international/quail.el
lisp/mail/sendmail.el
lisp/simple.el
lisp/startup.el
lisp/term/mac-win.el
src/ChangeLog
src/Makefile.in
src/buffer.c
src/buffer.h
src/casefiddle.c
src/coding.c
src/editfns.c
src/fns.c
src/indent.c
src/insdel.c
src/lisp.h
src/macterm.c
src/marker.c
src/minibuf.c
src/window.c
src/xdisp.c

diff --cc etc/HELLO
+++ b/etc/HELLO
@@@ -1,12 -1,12 +1,12 @@@
  This is a list of ways to say hello in various languages.
  
  Non-ASCII examples:
-   Europe: \e,A!\e(BHola!, Hyv\e,Add\e(B p\e,Ad\e(Biv\e,Add\e(B, Gr\e,A|_\e(B Gott, Bon\e,Cu\e(Bu, Dobr\e,B}\e(B den, Tere p\e,Ad\e(Bevast
-           Cze\e,B6f\e(B!, \e,FCei\\e(B \e,Fsar\e(B, \e,L7T`PRabRcYbU\e(B!\e$,1J2J0J;J0J@JOJ=J1J0\e(B
+   Europe: \e,A!\e(BHola!, Gr\e,A|_\e(B Gott, Hyv\e,Add\e(B p\e,Ad\e(Biv\e,Add\e(B, Tere \e,Au\e(Bhtust, Bon\e,Cu\e(Bu
+           Cze\e,B6f\e(B!, Dobr\e,B}\e(B den, \e,L7T`PRabRcYbU\e(B!, \e,FCei\\e(B \e,Fsar\e(B\e$,1J2J0J;J0J@JOJ=J1J0\e(B
    Africa: \e$(3!A!,!>\e(B
    Midd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C\e(B, \e$(0*/=(\e(B, \e$B$3$s$K$A$O\e(B, \e$(C>H3gGO<<?d\e(B
    Misc: E\e,C6\e(Bo\e,C~\e(Ban\e,Cx\e(Bo \e,Cf\e(Biu\e,C<\e(Ba\e,C}\e(Bde, \e$,2(3(1('('(5\e(B, \e$,1x \e(B p \e$,1x(\e(B world \e$,1s"\e(B hello p  \e$,2!a\e(B
    CJK variety: GB(\e$AT*Fx\e(B,\e$A?*7"\e(B), BIG5(\e$(0&x86\e(B,\e$(0DeBv\e(B), JIS(\e$B855$\e(B,\e$B3+H/\e(B), KSC(\e$(Cj*Q(\e(B,\e$(CKR[!\e(B)
diff --cc etc/NEWS
Simple merge
diff --cc lisp/ChangeLog
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/simple.el
Simple merge
diff --cc lisp/startup.el
Simple merge
@@@ -1337,14 -1287,19 +1337,19 @@@ correspoinding TextEncodingBase value.
                     (find-coding-systems-string string)))
        (setq coding-system
            (coding-system-change-eol-conversion coding-system 'mac))
-       (when (and (eq system-type 'darwin)
-                (eq coding-system 'japanese-shift-jis-mac))
-       (setq encoding mac-text-encoding-mac-japanese-basic-variant)
-       (setq string (subst-char-in-string ?\\ ?\x80 string))
-       (subst-char-in-string ?\¥ ?\x5c string t))
-       (setq data (mac-code-convert-string
-                 (encode-coding-string string coding-system)
-                 (or encoding coding-system) nil)))
+       (let ((str string))
+       (when (and (eq system-type 'darwin)
+                  (eq coding-system 'japanese-shift-jis-mac))
+         (setq encoding mac-text-encoding-mac-japanese-basic-variant)
+         (setq str (subst-char-in-string ?\\ ?\x80 str))
 -        (subst-char-in-string ?\\e(J\\e(B ?\x5c str t)
++        (subst-char-in-string ?\¥ ?\x5c str t)
+         ;; ASCII-only?
+         (if (string-match "\\`[\x00-\x7f]*\\'" str)
+             (setq str nil)))
+       (and str
+            (setq data (mac-code-convert-string
+                        (encode-coding-string str coding-system)
+                        (or encoding coding-system) nil)))))
      (or data (encode-coding-string string (if (eq (byteorder) ?B)
                                              'utf-16be-mac
                                            'utf-16le-mac)))))
diff --cc src/ChangeLog
Simple merge
diff --cc src/Makefile.in
Simple merge
diff --cc src/buffer.c
Simple merge
diff --cc src/buffer.h
Simple merge
Simple merge
diff --cc src/coding.c
@@@ -7455,13 -6650,16 +7455,14 @@@ detect_coding_system (src, src_chars, s
    return (highest ? XCAR (val) : val);
  }
  
 +
  DEFUN ("detect-coding-region", Fdetect_coding_region, Sdetect_coding_region,
         2, 3, 0,
 -       doc: /* Detect how the byte sequence in the region is encoded.
 -Return a list of possible coding systems used on decoding a byte
 -sequence containing the bytes in the region between START and END when
 -the coding system `undecided' is specified.  The list is ordered by
 -priority decided in the current language environment.
 +       doc: /* Detect coding system of the text in the region between START and END.
 +Return a list of possible coding systems ordered by priority.
  
- If only ASCII characters are found, it returns a list of single element
+ If only ASCII characters are found (except for such ISO-2022 control
+ characters ISO-2022 as ESC), it returns a list of single element
  `undecided' or its subsidiary coding system according to a detected
  end-of-line format.
  
@@@ -7494,10 -6700,14 +7495,11 @@@ highest priority.  */
  
  DEFUN ("detect-coding-string", Fdetect_coding_string, Sdetect_coding_string,
         1, 2, 0,
 -       doc: /* Detect how the byte sequence in STRING is encoded.
 -Return a list of possible coding systems used on decoding a byte
 -sequence containing the bytes in STRING when the coding system
 -`undecided' is specified.  The list is ordered by priority decided in
 -the current language environment.
 +       doc: /* Detect coding system of the text in STRING.
 +Return a list of possible coding systems ordered by priority.
  
- If only ASCII characters are found, it returns a list of single element
+ If only ASCII characters are found (except for such ISO-2022 control
+ characters ISO-2022 as ESC), it returns a list of single element
  `undecided' or its subsidiary coding system according to a detected
  end-of-line format.
  
diff --cc src/editfns.c
@@@ -2982,7 -2897,7 +2982,7 @@@ It returns the number of characters cha
    pos = XINT (start);
    pos_byte = CHAR_TO_BYTE (pos);
    end_pos = XINT (end);
-   modify_region (current_buffer, pos, end_pos);
 -  modify_region (current_buffer, pos, XINT (end), 0);
++  modify_region (current_buffer, pos, end_pos, 0);
  
    cnt = 0;
    for (; pos < end_pos; )
diff --cc src/fns.c
Simple merge
diff --cc src/indent.c
Simple merge
diff --cc src/insdel.c
Simple merge
diff --cc src/lisp.h
Simple merge
diff --cc src/macterm.c
Simple merge
diff --cc src/marker.c
Simple merge
diff --cc src/minibuf.c
Simple merge
diff --cc src/window.c
Simple merge
diff --cc src/xdisp.c
Simple merge