APPROVE COMMIT 21.5
Mostly a personal convenience in practice, but I think it's a useful
interface at times, similar to Gnus "washing" but useful outside of
the MUA.  The similar base64-{de,en}code-region are interactive.  I've
had this in my miscellaneous workspace for years, and it's the only
one left now.
Will revert if anybody thinks it's pointless bloat or something. :-)
Index: src/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.930
diff -u -U0 -r1.930 ChangeLog
--- src/ChangeLog	25 Mar 2006 11:27:43 -0000	1.930
+++ src/ChangeLog	26 Mar 2006 12:54:42 -0000
@@ -0,0 +1,5 @@
+2006-03-24  Stephen J. Turnbull  <stephen(a)xemacs.org>
+
+	* file-coding.c (decode-coding-region, encode-coding-region):
+	Convert to interactive commands, and adjust docstrings.
+
Index: src/file-coding.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/file-coding.c,v
retrieving revision 1.51
diff -u -r1.51 file-coding.c
--- src/file-coding.c	27 Feb 2006 16:29:25 -0000	1.51
+++ src/file-coding.c	26 Mar 2006 12:54:50 -0000
@@ -2288,13 +2288,14 @@
   }
 }
 
-DEFUN ("decode-coding-region", Fdecode_coding_region, 3, 4, 0, /*
+DEFUN ("decode-coding-region", Fdecode_coding_region, 3, 4,
+       "*r\nzDecode from coding system: \ni", /*
 Decode the text between START and END which is encoded in CODING-SYSTEM.
 This is useful if you've read in encoded text from a file without decoding
 it (e.g. you read in a JIS-formatted file but used the `binary' or
 `no-conversion' coding system, so that it shows up as "^[$B!<!+^[(B").
 Return length of decoded text.
-BUFFER defaults to the current buffer if unspecified.
+BUFFER defaults to the current buffer if unspecified, and when interactive.
 */
        (start, end, coding_system, buffer))
 {
@@ -2302,11 +2303,12 @@
 				      CODING_DECODE);
 }
 
-DEFUN ("encode-coding-region", Fencode_coding_region, 3, 4, 0, /*
+DEFUN ("encode-coding-region", Fencode_coding_region, 3, 4,
+       "*r\nzEncode to coding system: \ni", /*
 Encode the text between START and END using CODING-SYSTEM.
 This will, for example, convert Japanese characters into stuff such as
-"^[$B!<!+^[(B" if you use the JIS encoding.  Return length of encoded
-text.  BUFFER defaults to the current buffer if unspecified.
+"^[$B!<!+^[(B" if you use the JIS encoding.  Return length of encoded text.
+BUFFER defaults to the current buffer if unspecified, and when interactive.
 */
        (start, end, coding_system, buffer))
 {
-- 
Institute of Policy and Planning Sciences     
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
 My nostalgia for Icon makes me forget about any of the bad things.  I don't
have much nostalgia for Perl, so its faults I remember.  Scott Gilbert c.l.py