]> code.delx.au - gnu-emacs/commitdiff
(Fdeclare_equiv_charset): Fix docstring.
authorKenichi Handa <handa@m17n.org>
Wed, 7 Jan 2004 12:50:15 +0000 (12:50 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 7 Jan 2004 12:50:15 +0000 (12:50 +0000)
src/ChangeLog
src/charset.c

index 95000060b069000e6d8e37479acb12ea5126713b..be56024fa04d7bb6ccaf39a1a2371a29900ab0cb 100644 (file)
@@ -1,5 +1,7 @@
 2004-01-07  Kenichi Handa  <handa@m17n.org>
 
+       * charset.c (Fdeclare_equiv_charset): Fix docstring.
+
        * fontset.c (fontset_ref_via_base): Fix previous change.
 
 2004-01-07  Kim F. Storm  <storm@cua.dk>
index 701521393529179cf947ba37a16497255b0445ed..48382a44bd64a271e8561b6cebeb828df1cbafe4 100644 (file)
@@ -760,17 +760,20 @@ return nil.  */)
 
 DEFUN ("declare-equiv-charset", Fdeclare_equiv_charset, Sdeclare_equiv_charset,
        4, 4, 0,
-       doc: /* Declare a charset of DIMENSION, CHARS, FINAL-CHAR is the same as CHARSET.
-CHARSET should be defined by `defined-charset' in advance.  */)
-     (dimension, chars, final_char, charset_symbol)
-     Lisp_Object dimension, chars, final_char, charset_symbol;
+       doc: /* Declare an equivalent charset for ISO-2022 decoding.
+
+On decoding by an ISO-2022 base coding system, when a charset
+specified by DIMENSION, CHARS, and FINAL-CHAR is designated, behave as
+if CHARSET is designated instead.  */)
+     (dimension, chars, final_char, charset)
+     Lisp_Object dimension, chars, final_char, charset;
 {
-  int charset;
+  int charset_id;
 
   CHECK_NUMBER (dimension);
   CHECK_NUMBER (chars);
   CHECK_NUMBER (final_char);
-  CHECK_SYMBOL (charset_symbol);
+  CHECK_SYMBOL (charset);
 
   if (XINT (dimension) != 1 && XINT (dimension) != 2)
     error ("Invalid DIMENSION %d, it should be 1 or 2", XINT (dimension));
@@ -778,10 +781,10 @@ CHARSET should be defined by `defined-charset' in advance.  */)
     error ("Invalid CHARS %d, it should be 94 or 96", XINT (chars));
   if (XINT (final_char) < '0' || XFASTINT (final_char) > '~')
     error ("Invalid FINAL-CHAR %c, it should be `0'..`~'", XINT (chars));
-  if ((charset = get_charset_id (charset_symbol)) < 0)
-    error ("Invalid charset %s", SDATA (SYMBOL_NAME (charset_symbol)));
+  if ((charset_id = get_charset_id (charset)) < 0)
+    error ("Invalid charset %s", SDATA (SYMBOL_NAME (charset)));
 
-  ISO_CHARSET_TABLE (dimension, chars, final_char) = charset;
+  ISO_CHARSET_TABLE (dimension, chars, final_char) = charset_id;
   return Qnil;
 }