changeset 3302:3d54e5f2dfb0

[xemacs-hg @ 2006-03-26 13:05:14 by stephent] Make {en,de}code-coding-region interactive commands. <877j6hnyuj.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Sun, 26 Mar 2006 13:05:17 +0000
parents abb6e10c1d05
children 619edf713d55
files src/ChangeLog src/file-coding.c
diffstat 2 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Mar 25 22:51:19 2006 +0000
+++ b/src/ChangeLog	Sun Mar 26 13:05:17 2006 +0000
@@ -1,3 +1,8 @@
+2006-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	* file-coding.c (decode-coding-region, encode-coding-region):
+	Convert to interactive commands, and adjust docstrings.
+
 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
 
 	* regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
--- a/src/file-coding.c	Sat Mar 25 22:51:19 2006 +0000
+++ b/src/file-coding.c	Sun Mar 26 13:05:17 2006 +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))
 {